[whatwg/dom] Make element and attribute names behave like the HTML parser (#449)

@dominiccooney has started gathering data on this in Blink, so I wanted to help the process along by preparing a spec PR. We should not merge this yet.

The biggest open question, which we could use some help on, is what to do with the -NS variants, createElementNS and createAttributeNS/setAttributeNS.

One idea I thought of is that "validate and extract" should delegate to the HTML validate-and-canonicalize algorithms if the namespace passed in is the HTML namespace.

Another idea is that we should just leave them alone. But I think the same frameworks that are asking for this change for HTML elements probably also want it for SVG elements. (I'm surprised SVG elements care what namespace their attributes are in...)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/449

-- Commit Summary --

  * Make element and attribute names behave like the HTML parser

-- File Changes --

    M dom.bs (94)

-- Patch Links --

https://github.com/whatwg/dom/pull/449.patch
https://github.com/whatwg/dom/pull/449.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/449

Received on Wednesday, 26 April 2017 16:34:10 UTC