From 2648e811e7c71e8a68d1eb418d7dcdae42ebf9ff Mon Sep 17 00:00:00 2001 From: nosaku Date: Thu, 26 Sep 2024 19:00:12 -0500 Subject: [PATCH] fix(@angular/build): add few more SVG elements animateMotion, animateTransform, and feBlend etc. to valid self-closing elements (cherry picked from commit ecfb2b261356946d5f4a653f90c0b78db4ef519c) --- .../index-file/valid-self-closing-tags.ts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) 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 a67eedf21f30..84a534582ce4 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,8 +24,35 @@ export const VALID_SELF_CLOSING_TAGS = new Set([ 'wbr', /** SVG tags */ 'animate', + 'animateMotion', + 'animateTransform', 'circle', 'ellipse', + 'feBlend', + 'feColorMatrix', + 'feComponentTransfer', + 'feComposite', + 'feConvolveMatrix', + 'feDiffuseLighting', + 'feDisplacementMap', + 'feDistantLight', + 'feDropShadow', + 'feFlood', + 'feFuncA', + 'feFuncB', + 'feFuncG', + 'feFuncR', + 'feGaussianBlur', + 'feImage', + 'feMerge', + 'feMergeNode', + 'feMorphology', + 'feOffset', + 'fePointLight', + 'feSpecularLighting', + 'feSpotLight', + 'feTile', + 'feTurbulence', 'line', 'path', 'polygon',