[Webkit-unassigned] [Bug 30992] New: Node.isDefaultNamespace doesn't convert empty strings to null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 1 05:43:21 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=30992

           Summary: Node.isDefaultNamespace doesn't convert empty strings
                    to null
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nanto at moon.email.ne.jp


Node.isDefaultNamespace('') and Node.isDefaultNamespcae(null) can return
different values although DOM3 Core says "In programming languages where empty
strings can be differentiated from null, empty strings, when given as a
namespace URI, are converted to null."
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Namespaces-Considerations

To reproduce, execute the following JavaScript code:
document.implementation.createDocument(null, 'root',
null).isDefaultNamespace('')

Expected: true
Actual: false

Confirmed on WebKit-r50095

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



More information about the webkit-unassigned mailing list