From: Evan You Date: Mon, 21 Oct 2019 20:39:37 +0000 (-0400) Subject: feat: update svg tag list X-Git-Tag: v3.0.0-alpha.0~348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5023dff60cab98b4f8208c94ce18ae1fc85b2e73;p=thirdparty%2Fvuejs%2Fcore.git feat: update svg tag list --- diff --git a/packages/compiler-dom/src/tagConfig.ts b/packages/compiler-dom/src/tagConfig.ts index c11a1e1c3a..deb7be68de 100644 --- a/packages/compiler-dom/src/tagConfig.ts +++ b/packages/compiler-dom/src/tagConfig.ts @@ -11,14 +11,18 @@ const HTML_TAGS = 'option,output,progress,select,textarea,details,dialog,menu,menuitem,' + 'summary,content,element,shadow,template,blockquote,iframe,tfoot' -/** - * this list is intentionally selective, only covering SVG elements that may - * contain child elements. - */ +// https://developer.mozilla.org/en-US/docs/Web/SVG/Element const SVG_TAGS = - 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' + - 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' + - 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view' + 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' + + 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' + + 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' + + 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' + + 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' + + 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' + + 'foreignObject,g,hatch,hatchpath,image,line,lineGradient,marker,mask,' + + 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' + + 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' + + 'text,textPath,title,tspan,unknown,use,view' const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'