-
Notifications
You must be signed in to change notification settings - Fork 12k
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
"Invalid self-closing element in index HTML file" error when using SVG animate in said index.html file since Angular 18 #28502
Comments
The `<animate>` tag, used for SVG animations, was incorrectly treated as a non-self-closing tag by the Angular build process. This resulted in errors during the build, as the parser expected a closing `</animate>` tag even when unnecessary. Closes angular#28502
The `<animate>` tag, used for SVG animations, was incorrectly treated as a non-self-closing tag by the Angular build process. This resulted in errors during the build, as the parser expected a closing `</animate>` tag even when unnecessary. Closes #28502
It's still giving error for below tags used in index.html. Should I open a new issue for this? feFlood |
Seems there are many other SVG tags as per, https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood I guess we need to add all these? Shall I take it up and add? |
@alan-agius4 Added new tags and created a PR, #28510 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build, serve
Is this a regression?
The previous version in which this bug was not present was
17.x.x
Description
When fixing this issue #27702 it seems like the 'animate' tag was forgotten.
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate
So when using an svg with an animate tag inside index.hml there is an error in the build.
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
No
The text was updated successfully, but these errors were encountered: