Skip to content

Commit dd49949

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
1 parent c6dd469 commit dd49949

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
@@ -24,6 +24,7 @@ export const VALID_SELF_CLOSING_TAGS = new Set([
2424
'wbr',
2525

2626
/** SVG tags */
27+
'animate',
2728
'circle',
2829
'ellipse',
2930
'line',

0 commit comments

Comments
 (0)