This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16713 - locate a namespace returns value of no-namespace xmlns="" attribute
Summary: locate a namespace returns value of no-namespace xmlns="" attribute
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-12 11:42 UTC by Simon Pieters
Modified: 2012-05-15 12:13 UTC (History)
2 users (show)

See Also:


Attachments

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.