RESOLVED DUPLICATE of bug 17060 15949
localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE
https://bugs.webkit.org/show_bug.cgi?id=15949
Summary localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE
Sjoerd Mulder
Reported 2007-11-12 01:49:35 PST
According to the specifications: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSLocalN Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null. But webkit returns: '#text' for CDATA_SECTION_NODE (huh?) '#text' for TEXT_NODE '#comment' for COMMENT_NODE '' for DOCUMENT_NODE didnt test this for other 'exotic' node types (PROCESSING_INSTRUCTION_NODE etc..)
Attachments
Testcase (755 bytes, text/html)
2007-11-12 01:51 PST, Sjoerd Mulder
no flags
Sjoerd Mulder
Comment 1 2007-11-12 01:51:13 PST
Created attachment 17198 [details] Testcase
Robert Blaut
Comment 2 2008-03-02 03:53:27 PST
The test case in the latest Webkit r30667 works properly. In all 4 tested case returned value is "null'. I change the bug report from UNCONFIRMED to WORKSFORME.
Alexey Proskuryakov
Comment 3 2008-03-03 05:00:38 PST
Reopening to close a duplicate of bug 17060.
Alexey Proskuryakov
Comment 4 2008-03-03 05:01:03 PST
*** This bug has been marked as a duplicate of 17060 ***
Lucas Forschler
Comment 5 2019-02-06 09:04:12 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.