In a web component, can this throw? class MyComponent extends HTMLElement { constructor() { super(); this.constructed = true; } connectedCallback() { if (!this.constructed) throw 'Lifecycle design is important' } }
I mean...if you think it'll get @cramforce an answer sooner -- I'm in a @w3ctag meeting discussing conflict resolution process across SDOs -- 
-
-
Spec says that `connectedCallback()` is called when a shadow-including root is part of the document. This can happen in several ways; either synchronous upgrade (thanks Apple! "Thapple". *sigh*) or addition to the document (think `appendChild(el)`): https://dom.spec.whatwg.org/#connected
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.