Child elements not added to <template> elements
cdfa opened this issue · 3 comments
Elm fails to construct HTML <template> elements, probably because you're supposed to call appendChild and such on the element's content property instead of the element itself.
Example:
import Html exposing (..)
view =
node "template" [] [
p [] [ text "Test" ]
]This will result in a <template> element with an empty #document-fragment in Firefox (109.0.1). In Chrome (110.0.5481.100) the p gets added outside of the #document-fragment, which isn't right either.
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.
Might be more accurate to open this issue in elm/virtual-dom or elm/html instead of elm/core
Ah, I forgot that elm/virtual-dom also contained kernel code. I will reopen the issue there. Thanks :)