We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The static node optimization (#2781) seems to have introduced a regression for SVGs. Minimal repro:
<!-- component.html --> <template> <svg> <g> <path></path> <path></path> </g> </svg> </template>
This compiles to:
const $fragment1 = parseFragment`<svg${3}><g${3}><path${3}><path${3}></g></svg>`;
Which renders to HTML as:
<svg> <g> <path> <path></path> </path> </g> </svg>
Note that the <path>s were treated as siblings in the source, but they're rendering as parent-child in the output.
<path>
W-11320628
The text was updated successfully, but these errors were encountered:
fix(template-compiler): fix static optimization on SVGs
d3fc873
Fixes #2897
1c2dfbb
Successfully merging a pull request may close this issue.
Description
The static node optimization (#2781) seems to have introduced a regression for SVGs. Minimal repro:
This compiles to:
Which renders to HTML as:
Note that the
<path>
s were treated as siblings in the source, but they're rendering as parent-child in the output.W-11320628
The text was updated successfully, but these errors were encountered: