re-hookup innerHTML for HTMLTemplateElement
rafaelw opened this issue · 2 comments
rafaelw commented
Removing it was a mistake. If template parses special, it needs to serialize special a well (they should be symmetric).
It's fine that appendChild, etc... have different behavior. The goal here is that template contents serialize but aren't in the parent/child hierarchy.
ajklein commented
Note that we already handle serialization correctly, so it's only setting HTMLTemplateElement.innerHTML that currently does the "wrong" thing. The special serialization behavior is handled by code in MarkupAccumulator::serializeNodesWithNamespaces.