From 8e985f547ad7578601af98859f7a572cd5ba8086 Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Mon, 30 Jan 2017 14:50:16 -0500 Subject: [PATCH 1/2] Add foreignObject to isSVG list; Fix for #4813 --- src/platforms/web/util/element.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/web/util/element.js b/src/platforms/web/util/element.js index 8e69c7d105c..188d3081916 100644 --- a/src/platforms/web/util/element.js +++ b/src/platforms/web/util/element.js @@ -25,9 +25,9 @@ export const isHTMLTag = makeMap( // this map is intentionally selective, only covering SVG elements that may // contain child elements. export const isSVG = makeMap( - 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,' + + 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,foreignObject,' + 'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' + - 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view', + 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view,', true ) From 8d3df0949c18b8044bab9b7bcf1cd11f94e9d001 Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Mon, 30 Jan 2017 14:53:53 -0500 Subject: [PATCH 2/2] Remove extra comma, alphabetize --- src/platforms/web/util/element.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/web/util/element.js b/src/platforms/web/util/element.js index 188d3081916..5d5a0057439 100644 --- a/src/platforms/web/util/element.js +++ b/src/platforms/web/util/element.js @@ -25,9 +25,9 @@ export const isHTMLTag = makeMap( // this map is intentionally selective, only covering SVG elements that may // contain child elements. export const isSVG = makeMap( - 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,foreignObject,' + - 'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' + - 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view,', + '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', true )