Bug 16713 - locate a namespace returns value of no-namespace xmlns="" attribute
locate a namespace returns value of no-namespace xmlns="" attribute
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: DOM
unspecified
PC All
: P2 normal
: ---
Assigned To: Anne
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-12 11:42 UTC by Simon Pieters
Modified: 2012-05-15 12:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters 2012-04-12 11:42:45 UTC
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#locate-a-namespace

"or whose namespace prefix is null and local name is "xmlns"" maybe we should ignore xmlns attributes in no namespace.

var elm = document.createElementNS('foo', 'x:y');
elm.setAttribute('xmlns', 'bar'); // no-namespace attribute
elm.lookupNamespaceURI(null); // bar per spec
Comment 1 Anne 2012-04-12 11:47:23 UTC
We should probably just check for the XMLNS namespace instead then.