Skip to content

Conversation

alan-agius4
Copy link
Collaborator

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

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
@alan-agius4 alan-agius4 requested a review from clydin September 26, 2024 13:04
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Sep 26, 2024
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 26, 2024
@alan-agius4 alan-agius4 merged commit dd49949 into angular:main Sep 26, 2024
34 checks passed
@alan-agius4
Copy link
Collaborator Author

The changes were merged into the following branches: main, 18.2.x

@alan-agius4 alan-agius4 deleted the animate-self-closing branch September 26, 2024 13:19
@nosaku
Copy link
Contributor

nosaku commented Sep 26, 2024

Hi @alan-agius4, I still get error for "fe..." elements like feFlood etc. I commented in the issue also but it is closed. There are many other SVG tags which are valid self-closing and can be used in index.html

https://developer.mozilla.org/en-US/docs/Web/SVG/Element

I guess all of these need to be in the file?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Invalid self-closing element in index HTML file" error when using SVG animate in said index.html file since Angular 18

3 participants