5 ms·
You can tell custom elements what they are using the „is“ attribute or by extending the appropriate HTMLElement class if you define the custom element via JS.
by rasso 2y ago
You can tell custom elements what they are using the „is“ attribute or by extending the appropriate HTMLElement class if you define the custom element via JS.
- hnthrowaway121 2y agoThat seems like quite a hoop/footgun if you are only having devs do this for CSS reasons.