Re: [w3c/webcomponents] Move the check for HTMLElement and its subclass from customElements.define to construction timing (#541)

Seeing the above example, it also occurs to me that: a) any given custom element is likely to be used more than once on a page and b) its definition will often be loaded asynchronously, so when @domenic's case (1) occurs, it'll probably occur *many* times.

That is, if an author passes an invalid constructor to `customElements.define()`, they might suddenly see 10 or 20 error events on `window` show up at once. That doesn’t seem so great.

-- 
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/541#issuecomment-239554922

Received on Friday, 12 August 2016 20:43:46 UTC