Skip to content

Child elements not added to <template> elements #185

Description

@cdfa

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions