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

bug: first <template> element on root index page is malformed #5990

Open
3 tasks done
nwhittaker opened this issue Sep 23, 2024 · 1 comment
Open
3 tasks done

bug: first <template> element on root index page is malformed #5990

nwhittaker opened this issue Sep 23, 2024 · 1 comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted

Comments

@nwhittaker
Copy link

Prerequisites

Stencil Version

4.21.0

Current Behavior

On the root index.html page, the first <template> element appears to be replaced by its shadow root -- or is collapsed with its parent element in some way.

Screenshot 2024-09-23 at 12 13 49 PM

Expected Behavior

The first <template> element appears in the DOM the same as the other <template> elements.

Screenshot 2024-09-23 at 12 25 50 PM

System Info

System: node 20.17.0
    Platform: darwin (23.6.0)
   CPU Model: Apple M1 Max (10 cpus)
    Compiler: ~/stencil-component/node_modules/@stencil/core/compiler/stencil.js
       Build: 1724698030
     Stencil: 4.21.0 🐷
  TypeScript: 5.5.3
      Rollup: 2.56.3
      Parse5: 7.1.2
      jQuery: 4.0.0-pre
      Terser: 5.31.1

Steps to Reproduce

  1. Checkout the GitHub repo and switch to the @stencil-core/index-template-el branch.
  2. Run npm i and npm start.
  3. Visit http://localhost:3333/ in Chrome.
  4. Open Chrome's devtools and inspect the DOM to see the <template> elements.

Code Reproduction URL

https://github.com/nwhittaker/stencil-component

Additional Information

Possibly related to #5979.

@ionitron-bot ionitron-bot bot added the triage label Sep 23, 2024
@nwhittaker nwhittaker changed the title bug: first <template> element on root index page becomes malformed bug: first <template> element on root index page is malformed Sep 23, 2024
@christian-bromann christian-bromann added Bug: Validated This PR or Issue is verified to be a bug within Stencil and removed triage labels Sep 23, 2024
@christian-bromann
Copy link
Member

Thanks for raising the issue and providing a reproduction case. Our team is currently battling a lot of competing priorities so we can't say for sure when we will be able to look into this. If you have capacities available we would appreciate a pull request with a fix to this. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Validated This PR or Issue is verified to be a bug within Stencil Help Wanted
Projects
None yet
Development

No branches or pull requests

2 participants