
Loading…
Template stamping doesn't work in custom element light DOM #2010
nomego
commented
Owner
sorvell
commented
I can confirm this issue. Here's a simple test and a workaround:
http://jsbin.com/vagugufowi/1/edit (see the //workaround comment)
We'll try to get this fixed by the next release.
nomego
commented
Thank you, and thanks for the workaround.
It would be semantically more accurate to append to the light DOM with consideration of the content.
Also, it's good if this process works the same way for native and custom elements.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Considering the following code:
Appending this to the light DOM won't work:
This will only render the template tag with the content within and data-binding placeholders emptied.
The
dom-changeevent will actually fire and informs me that theattached()callback stuff of thedom-bindelement actually have been run.But stamping fails and moving the content outside the template never happens.
Tries with
dom-templateand manualstamp()also failed.It actually needs to be in the local DOM:
Is this a bug or by design?
Could not find any documentation on this.