W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

[Bug 19431] New: Namespace of elements made via .createElement() in XML documents must be null

From: <bugzilla@jessica.w3.org>
Date: Wed, 10 Oct 2012 13:13:03 +0000
To: www-dom@w3.org
Message-ID: <bug-19431-4009@http.www.w3.org/Bugs/Public/>

          Priority: P2
            Bug ID: 19431
                CC: mike@w3.org, www-dom@w3.org
          Assignee: annevk@annevk.nl
           Summary: Namespace of elements made via .createElement() in XML
                    documents must be null
        QA Contact: public-webapps-bugzilla@w3.org
          Severity: minor
    Classification: Unclassified
                OS: All
          Reporter: ayg@aryeh.name
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: DOM
           Product: WebAppsWG

createElement() says "Return a new element with no attributes, namespace set to
the HTML namespace, local name set to localName, and node document set to the
context object."  But this test outputs "true" in all browsers:

data:text/html,<!DOCTYPE html>
document.documentElement.textContent = 
        .createDocument(null, "", null)
        .namespaceURI === null;

The namespace needs to be null if the context object is not an HTML document.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 10 October 2012 13:13:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:01 UTC