[w3c/webcomponents] A custom element should be marked as "failed" if a constructor returns a wrong object (#561)

Step 10 of [upgrading an element](https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element):
> If `SameValue(constructResult.[[value]], element)` is false, then throw an "`InvalidStateError`" `DOMException` and terminate these steps.
should also set the custom element state to "failed" so that we don't try to upgrade it again.

-- 
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/561

Received on Saturday, 3 September 2016 03:44:03 UTC