Skip to content

Commit 8274184

Browse files
committed
fix(@angular/build): add animate to valid self-closing elements
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)
1 parent ca28ec7 commit 8274184

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const VALID_SELF_CLOSING_TAGS = new Set([
2323
'track',
2424
'wbr',
2525
/** SVG tags */
26+
'animate',
2627
'circle',
2728
'ellipse',
2829
'line',

0 commit comments

Comments
 (0)