WebReflection / document-register-element

A stand-alone working lightweight version of the W3C Custom Elements specification
ISC License
1.13k stars 116 forks source link

Is the ::slotted() selector supported? #133

Closed trusktr closed 6 years ago

trusktr commented 6 years ago

I haven't tried yet, I don't have a polyfilled env disposable ATM.

If not, is it planned?

WebReflection commented 6 years ago

From the living standard:

The slot element defines a slot. It is typically used in a shadow tree. A slot element represents its assigned nodes, if any, and its contents otherwise.

This polyfill has nothing to do with Shadow DOM, which is a different part of the WebComponents specification.

trusktr commented 6 years ago

Oops. Wrong place indeed, I posted too fast. Is there a ShadowDOM polyfill that you recommend most?

trusktr commented 6 years ago

(you didn't need to look up a quote, I know ShadowDOM is not Custom Elements, I was just not thinking 😂)

WebReflection commented 6 years ago

Is there a ShadowDOM polyfill that you recommend most?

It's unpolyfillable, so my best answer is: don't polyfill it.

I know ShadowDOM is not Custom Elements

maybe others following this repo were not clear about it too