Add support for Element.getAttributeNames(): - https://dom.spec.whatwg.org/#dom-element-getattributenames Firefox already supports this, Chrome does not yet.
Created attachment 284836 [details] Patch
Comment on attachment 284836 [details] Patch Clearing flags on attachment: 284836 Committed r203852: <http://trac.webkit.org/changeset/203852>
All reviewed patches have been landed. Closing bug.
Comment on attachment 284836 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=284836&action=review > Source/WebCore/dom/Element.cpp:505 > + if (!hasAttributes()) > + return attributesVector; Is this an important optimization?
Comment on attachment 284836 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=284836&action=review >> Source/WebCore/dom/Element.cpp:505 >> + return attributesVector; > > Is this an important optimization? It has the benefit of checking that elementData is not null or the call to attributesIterator() below would crash.