Re: [webcomponents] Define the behavior for sync element creation when a custom element constructor does various bad things (#412)

In https://github.com/w3c/webcomponents/commit/70ec265b9ca766836d22bd76f6062b7d66e67950 I implemented all of the checks discussed here, with the following slight tweaks:

- Instead of checking instanceof in some way, I just do a shallow [[Prototype]] check.
- Instead of checking prefix, I have the element construction algorithm actually set the supplied prefix automatically for you. This allows `document.createElement(HTML_NS, "foo:x-tag")` to work and give an element with prefix `foo` and local name `x-tag`, just like `document.createElement(HTML_NS, "foo:p")` works.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/412#issuecomment-199412020

Received on Monday, 21 March 2016 18:22:45 UTC