Re: [w3c/webcomponents] How to define APIs only for custom element authors (#758)

> Does it have different semantics as the constructor?
> Can an attribute be added there?

That's a good point. We don't allow DOM mutation in a custom element constructor (See step 6.1.4-7 of [**create an element**](https://dom.spec.whatwg.org/#concept-create-element). If we kick the callback inside **create an element** steps, we should prevent the callback from DOM mutation in order to avoid breaking createElement() semantics.




-- 
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/758#issuecomment-428116367

Received on Tuesday, 9 October 2018 09:02:18 UTC