Open caridy opened 5 years ago
What's the update regarding this issue? Thanks,
@jbverger that is WIP, you can follow along via PR #1594. This is kinda supposed to be transparent for most users, I wonder what kind of issues are you facing?
I try to create WC from LWC with customElements.define('my-cmp', buildCustomElementConstructor(MyCmp)). In synthetic-shadow, when I'm using slot, the slotchange event is not triggered. I will watch the PR #1594. Thanks for your help,
@jbverger got it. with native shadow it should work fine though, if that's a possibility for you.
As today, slotting is done by the engine. As part of the full separation between engine and synthetic shadow, we should move the slotting and allocation of slotted elements into the polyfill, and remove all that logic from engine.
This process is not trivial, but it is required to support full interoperability with vanilla and 3rd party compiled web components.
ShadyDOM has a dummy implementation of this process, may be worth reviewing it.
Note: our current implementation has some semantic issues as well that should be resolved with this: