Skip to content

Commit

Permalink
fix(@angular/build): add animate to valid self-closing elements
Browse files Browse the repository at this point in the history
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

(cherry picked from commit dd49949)
  • Loading branch information
alan-agius4 committed Sep 26, 2024
1 parent ca28ec7 commit 8274184
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const VALID_SELF_CLOSING_TAGS = new Set([
'track',
'wbr',
/** SVG tags */
'animate',
'circle',
'ellipse',
'line',
Expand Down

0 comments on commit 8274184

Please sign in to comment.