W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2014

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

From: <bugzilla@jessica.w3.org>
Date: Mon, 06 Jan 2014 04:29:03 +0000
To: www-dom@w3.org
Message-ID: <bug-24210-4009@http.www.w3.org/Bugs/Public/>

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

Quoting Victor's description from Bug #24208:

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

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

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

Blink and WebKit do not yet handle this case, but I'm working on it.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 6 January 2014 04:29:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:22 UTC