[Webkit-unassigned] [Bug 15949] New: localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 12 01:49:35 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=15949

           Summary: localName should be null for all nodes except
                    ELEMENT_NODE and ATTRIBUTE_NODE
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sjoerd at backbase.com


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..)


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list