Updated getMarkupWrap.js to include the new SVG elements
Matt Harrison committed
Jan 6, 2014 at 21:48 UTC
bd575eb7c82ce867b1e0763d1c86d2c826a35172
1 file changed
+8
src/vendor/core/getMarkupWrap.js
+8
@@ -36,11 +36,15 @@ var shouldWrap = {
36
// Force wrapping for SVG elements because if they get created inside a <div>,
37
// they will be initialized in the wrong namespace (and will not display).
38
'circle': true,
39
+ 'defs': true,
40
'g': true,
41
'line': true,
42
+ 'linearGradient': true,
43
'path': true,
44
'polyline': true,
45
+ 'radialGradient': true,
46
'rect': true,
47
+ 'stop': true,
48
'text': true
49
};
50
@@ -72,11 +76,15 @@ var markupWrap = {
76
'th': trWrap,
77
78
'circle': svgWrap,
79
+ 'defs': svgWrap,
80
'g': svgWrap,
81
'line': svgWrap,
82
+ 'linearGradient': svgWrap,
83
'path': svgWrap,
84
'polyline': svgWrap,
85
+ 'radialGradient': svgWrap,
86
'rect': svgWrap,
87
+ 'stop': svgWrap,
88
'text': svgWrap
89
};
90