mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #1032 from fforw/master
Additional SVG tag and attribute names
This commit is contained in:
@@ -184,7 +184,8 @@ var ReactDOM = mapObject({
|
||||
rect: false,
|
||||
stop: false,
|
||||
svg: false,
|
||||
text: false
|
||||
text: false,
|
||||
tspan: false
|
||||
}, createDOMComponentClass);
|
||||
|
||||
var injection = {
|
||||
|
||||
@@ -38,6 +38,7 @@ var SVGDOMPropertyConfig = {
|
||||
gradientUnits: MUST_USE_ATTRIBUTE,
|
||||
offset: MUST_USE_ATTRIBUTE,
|
||||
points: MUST_USE_ATTRIBUTE,
|
||||
preserveAspectRatio: MUST_USE_ATTRIBUTE,
|
||||
r: MUST_USE_ATTRIBUTE,
|
||||
rx: MUST_USE_ATTRIBUTE,
|
||||
ry: MUST_USE_ATTRIBUTE,
|
||||
@@ -45,6 +46,7 @@ var SVGDOMPropertyConfig = {
|
||||
stopColor: MUST_USE_ATTRIBUTE,
|
||||
stopOpacity: MUST_USE_ATTRIBUTE,
|
||||
stroke: MUST_USE_ATTRIBUTE,
|
||||
strokeDasharray: MUST_USE_ATTRIBUTE,
|
||||
strokeLinecap: MUST_USE_ATTRIBUTE,
|
||||
strokeWidth: MUST_USE_ATTRIBUTE,
|
||||
textAnchor: MUST_USE_ATTRIBUTE,
|
||||
@@ -61,9 +63,11 @@ var SVGDOMPropertyConfig = {
|
||||
DOMAttributeNames: {
|
||||
gradientTransform: 'gradientTransform',
|
||||
gradientUnits: 'gradientUnits',
|
||||
preserveAspectRatio: 'preserveAspectRatio',
|
||||
spreadMethod: 'spreadMethod',
|
||||
stopColor: 'stop-color',
|
||||
stopOpacity: 'stop-opacity',
|
||||
strokeDasharray: 'stroke-dasharray',
|
||||
strokeLinecap: 'stroke-linecap',
|
||||
strokeWidth: 'stroke-width',
|
||||
textAnchor: 'text-anchor',
|
||||
|
||||
Vendored
+1
@@ -143,6 +143,7 @@ var knownTags = {
|
||||
title: true,
|
||||
tr: true,
|
||||
track: true,
|
||||
tspan: true,
|
||||
u: true,
|
||||
ul: true,
|
||||
'var': true,
|
||||
|
||||
Reference in New Issue
Block a user