-
Notifications
You must be signed in to change notification settings - Fork 492
Polyfill doesn't render shadow elements after custom element #717
Comments
I'm seeing this the other way around when the polyfill is enabled: "The polyfill won't show this text." is the only visible text in that case. That's what I'd expect in this situation anyways given that |
Hmm, Also, it's really strange that you're seeing the opposite behavior when using the polyfill. Anything else you can say about your repro setup that could be related? |
The spec for In any event, as described in the bug, I see only "This text will be visible." when opening the repro case under:
|
innerHTML is specified in https://w3c.github.io/DOM-Parsing/, which unfortunately hasn't seen much editorship recently. The issue to spec ShadowRoot's innerHTML there is w3c/DOM-Parsing#21 |
@bicknellr Two things:
|
Oh, I didn't consider the interaction with ShadyDOM here. |
It doesn't look like it's implemented there either. I lost my example setup but that's probably why we were seeing different results. |
@JanMiksovsky I have updated your JSBin to use the 2.0 version and I am no longer seeing this issue (https://jsbin.com/puhibaxoqu/edit?html,output) E.g. the output in Firefox and Chrome is the same, even after forcing the polyfills. Was this issue resolved for you? |
I can confirm that your updated JSBin looks good in both Firefox and Edge (the polyfilled browsers we care about), so this can be closed. |
Awesome, thanks for the confirmation. |
If an outer element contains an inner element, and the outer element has a shadow subtree that looks like:
The latest polyfill (v1.0.0-rc.5) won't render the indicated text. Native Shadow DOM implementations handle this fine. See https://jsbin.com/xakexe/edit?html,output.
The text was updated successfully, but these errors were encountered: