Bug 15949 - localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE
Summary: localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE
Status: RESOLVED DUPLICATE of bug 17060
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: All OS X 10.4
: P2 Normal
Assignee: Nobody
Keywords: HasReduction
Depends on:
Reported: 2007-11-12 01:49 PST by Sjoerd Mulder
Modified: 2019-02-06 09:04 PST (History)
3 users (show)

See Also:

Testcase (755 bytes, text/html)
2007-11-12 01:51 PST, Sjoerd Mulder
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sjoerd Mulder 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

didnt test this for other 'exotic' node types (PROCESSING_INSTRUCTION_NODE etc..)
Comment 1 Sjoerd Mulder 2007-11-12 01:51:13 PST
Created attachment 17198 [details]
Comment 2 Robert Blaut 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.
Comment 3 Alexey Proskuryakov 2008-03-03 05:00:38 PST
Reopening to close a duplicate of bug 17060.
Comment 4 Alexey Proskuryakov 2008-03-03 05:01:03 PST

*** This bug has been marked as a duplicate of 17060 ***
Comment 5 Lucas Forschler 2019-02-06 09:04:12 PST
Mass moving XML DOM bugs to the "DOM" Component.