From c50dbb0ec1942345cde3abc7ccf1895e1db24474 Mon Sep 17 00:00:00 2001 From: Jon Beebe Date: Thu, 8 May 2014 07:16:28 -0500 Subject: [PATCH] Adds svg pattern and mask components --- src/browser/ReactDOM.js | 6 +++--- vendor/fbtransform/transforms/xjs.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/browser/ReactDOM.js b/src/browser/ReactDOM.js index 2749da4dbc9f5..789d9199f5d67 100644 --- a/src/browser/ReactDOM.js +++ b/src/browser/ReactDOM.js @@ -184,7 +184,9 @@ var ReactDOM = mapObject({ g: false, line: false, linearGradient: false, + mask: false, path: false, + pattern: false, polygon: false, polyline: false, radialGradient: false, @@ -192,9 +194,7 @@ var ReactDOM = mapObject({ stop: false, svg: false, text: false, - tspan: false, - mask: false, - pattern: false + tspan: false }, createDOMComponentClass); var injection = { diff --git a/vendor/fbtransform/transforms/xjs.js b/vendor/fbtransform/transforms/xjs.js index acac965f87b9b..66a8fb13cb247 100644 --- a/vendor/fbtransform/transforms/xjs.js +++ b/vendor/fbtransform/transforms/xjs.js @@ -92,6 +92,7 @@ var knownTags = { map: true, mark: true, marquee: true, + mask: false, menu: true, menuitem: true, meta: true, @@ -106,6 +107,7 @@ var knownTags = { p: true, param: true, path: true, + pattern: false, polygon: true, polyline: true, pre: true,