Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant