From c363cdc26de5004c05a2532880d5e89d98f7a2d5 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 26 Sep 2024 13:03:13 +0000 Subject: [PATCH] fix(@angular/build): add `animate` to valid self-closing elements The `` 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 `` tag even when unnecessary. Closes #28502 --- .../build/src/utils/index-file/valid-self-closing-tags.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts b/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts index cf791bb47918..0e70d8e0760b 100644 --- a/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts +++ b/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts @@ -24,6 +24,7 @@ export const VALID_SELF_CLOSING_TAGS = new Set([ 'wbr', /** SVG tags */ + 'animate', 'circle', 'ellipse', 'line',