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

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

            Bug ID: 24208
           Summary: Please handle the case of XML attributes with
                    namespaces but no prefix
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Parsing and Serialization
          Assignee: travil@microsoft.com
          Reporter: costan@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

The DOM Core API setAttributeNS allows the creation of attributes that have a
non-null namespace URI, but no prefix.

A minimal example follows below.
var doc = (new DOMParser()).parseFromString("<test/>", "text/xml", null);
doc.documentElement.setAttributeNS("http://www.example.com/", "attr", "value");

The XML serialization algorithm specified below does not seem to handle this
case.
https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#dfn-concept-serialize-xml

(searching for "XML serialization of the attributes" shows the relevant
paragraph)

Firefox and Internet Explorer handle this case by generating prefixes for the
attributes.

Blink and WebKit do not yet handle this case, but I'm working on it.
http://crbug.com/248044

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

Received on Monday, 6 January 2014 00:49:25 UTC