[Bug 24208] Please handle the case of XML attributes with namespaces but no prefix

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24208

Travis Leithead [MSFT] <travil@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Travis Leithead [MSFT] <travil@microsoft.com> ---
var doc = (new DOMParser()).parseFromString("<test
xmlns:a1='other'><child/></test>", "text/xml", null);
doc.documentElement.firstChild.setAttributeNS("http://www.example.com/",
"attr", "value");
doc.documentElement.firstChild.setAttributeNS("http://www.another.example.com/",
"attr", "value");

Firefox carefully manages the auto-generation of namespace numbering, so I'll
need to spec that.

var doc = (new DOMParser()).parseFromString("<test><child/></test>",
"text/xml", null);
doc.documentElement.firstChild.setAttributeNS("http://www.w3.org/2000/xmlns/",
"xmlns:test", "http://www.example.com/");
doc.documentElement.firstChild.setAttributeNS("http://www.example.com/",
"attr", "value");

This case falls down in IE--it doesn't seem to pickup the dynamically added
"text" prefix and perform the association. This case needs to be handled as
well.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 27 February 2014 19:05:11 UTC