Re: [w3ctag/design-reviews] [WebComponents] Custom state pseudo class (#428)

> @tkent-google and where would such method exist, if not in the `HTMLElement.prototype` ? Is it provided at runtime only once defined through `customElements` ? If so, don't you think it'll be a surprise to _not_ provide that for built-in extends, as all the entry points are identical?

`attachInternals()` exists on `HTMLElement` interface, and it raises `NotSupportedError` if it is called for non-custom elements.
https://html.spec.whatwg.org/C/#dom-attachinternals


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/428#issuecomment-566438226

Received on Tuesday, 17 December 2019 08:32:14 UTC