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..)
Created attachment 17198 [details] Testcase
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.
Reopening to close a duplicate of bug 17060.
*** This bug has been marked as a duplicate of 17060 ***
Mass moving XML DOM bugs to the "DOM" Component.