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

<template> html tag is rendered incorrectly #369

Open
nag5000 opened this issue Oct 31, 2021 · 0 comments
Open

<template> html tag is rendered incorrectly #369

nag5000 opened this issue Oct 31, 2021 · 0 comments

Comments

@nag5000
Copy link

nag5000 commented Oct 31, 2021

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.

@nag5000 nag5000 changed the title <template> html tag is rendered incorrectly (with empty content) <template> html tag is rendered incorrectly Nov 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant