Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

<template> html tag is rendered incorrectly #369

Open
@al3xnag

Description

@al3xnag

If <template> is rendered by glimmer, its content (DocumentFragment) results to be empty.
Tried on ember 3.18 (ember-twiddle), 3.28 (local), and try.glimmerjs.com.

Reproduction:

  1. Go to demo on https://try.glimmerjs.com/
  2. Inspect document.getElementById('a').content.children.
    Expected: HTMLCollection(2) [div, div]
    Actual: empty HTMLCollection []

I could be wrong, but it seems to me that glimmer renders <template> like a normal HTMLElement, doing templateElement.appendChild instead of templateElement.content.appendChild, or so.

Chrome:
2021-10-31_05-16

Firefox:
2021-10-31_05-28

Failing test: #370.

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