Skip to content

Commit 0201d8c

Browse files
zephraphyyx990803
authored andcommitted
Add foreignObject as a dedicated SVG element (fixes #4813) (#4926)
* Add foreignObject to isSVG list; Fix for #4813 * Remove extra comma, alphabetize
1 parent 97d36bc commit 0201d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/web/util/element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const isHTMLTag = makeMap(
2525
// this map is intentionally selective, only covering SVG elements that may
2626
// contain child elements.
2727
export const isSVG = makeMap(
28-
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,' +
29-
'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
28+
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
29+
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
3030
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
3131
true
3232
)

0 commit comments

Comments
 (0)