Re: [w3c/webcomponents] Custom Element - untrackable upgrade (#671)

After further investigation, it looks like the following is not even possible:

> Patching connectedCallback and attributeChangedCallback directly on the node feels wrong and it's a very dirty approach.

Not only those two callbacks are triggered indirectly with the node as context, even monkey-patching the Class, after it's registered, won't make the upgrade observable when a Custom Elements goes from a template to a live content.

In few words there's no work-around if not through timers/rAF/thenable checks.

-- 
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/671#issuecomment-332490443

Received on Wednesday, 27 September 2017 11:23:32 UTC