Bug 12486 - XPathNSResolver.lookupNamespaceURI should return null if no URI is found
Summary: XPathNSResolver.lookupNamespaceURI should return null if no URI is found
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks: 12450
  Show dependency treegraph
 
Reported: 2007-01-30 12:28 PST by Alexey Proskuryakov
Modified: 2007-01-30 14:45 PST (History)
0 users

See Also:


Attachments
proposed fix (2.77 KB, patch)
2007-01-30 12:31 PST, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-01-30 12:28:02 PST
Currently, null Strings are converted to empty ones. This makes W3C tests fail:
XPathNSResolver_lookupNamespaceURI_nist_dmstc
XPathNSResolver_lookupNamespaceURI_null

From the spec:
  Return Value 
  DOMString Returns the associated namespace URI or null if none is found.
Comment 1 Alexey Proskuryakov 2007-01-30 12:31:56 PST
Created attachment 12805 [details]
proposed fix
Comment 2 Darin Adler 2007-01-30 13:12:58 PST
Comment on attachment 12805 [details]
proposed fix

r=me
Comment 3 Sam Weinig 2007-01-30 14:45:39 PST
Landed in r19269.