From bd575eb7c82ce867b1e0763d1c86d2c826a35172 Mon Sep 17 00:00:00 2001 From: Matt Harrison Date: Mon, 6 Jan 2014 21:48:40 +0000 Subject: [PATCH] Updated getMarkupWrap.js to include the new SVG elements --- src/vendor/core/getMarkupWrap.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vendor/core/getMarkupWrap.js b/src/vendor/core/getMarkupWrap.js index 2b21b275e1..439c19199d 100644 --- a/src/vendor/core/getMarkupWrap.js +++ b/src/vendor/core/getMarkupWrap.js @@ -36,11 +36,15 @@ var shouldWrap = { // Force wrapping for SVG elements because if they get created inside a
, // they will be initialized in the wrong namespace (and will not display). 'circle': true, + 'defs': true, 'g': true, 'line': true, + 'linearGradient': true, 'path': true, 'polyline': true, + 'radialGradient': true, 'rect': true, + 'stop': true, 'text': true }; @@ -72,11 +76,15 @@ var markupWrap = { 'th': trWrap, 'circle': svgWrap, + 'defs': svgWrap, 'g': svgWrap, 'line': svgWrap, + 'linearGradient': svgWrap, 'path': svgWrap, 'polyline': svgWrap, + 'radialGradient': svgWrap, 'rect': svgWrap, + 'stop': svgWrap, 'text': svgWrap };