mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #419 from piranha/svg-attrs
svg properties -> attributes Fixes #190
This commit is contained in:
@@ -33,8 +33,8 @@ var DefaultDOMPropertyConfig = {
|
||||
/**
|
||||
* Standard Properties
|
||||
*/
|
||||
accessKey: null,
|
||||
accept: null,
|
||||
accessKey: null,
|
||||
action: null,
|
||||
allowFullScreen: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
|
||||
allowTransparency: MUST_USE_ATTRIBUTE,
|
||||
@@ -77,12 +77,12 @@ var DefaultDOMPropertyConfig = {
|
||||
multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||||
name: null,
|
||||
pattern: null,
|
||||
placeholder: null,
|
||||
poster: null,
|
||||
preload: null,
|
||||
placeholder: null,
|
||||
radioGroup: null,
|
||||
rel: null,
|
||||
readOnly: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
|
||||
rel: null,
|
||||
required: HAS_BOOLEAN_VALUE,
|
||||
role: MUST_USE_ATTRIBUTE,
|
||||
rowSpan: null,
|
||||
@@ -110,40 +110,46 @@ var DefaultDOMPropertyConfig = {
|
||||
/**
|
||||
* SVG Properties
|
||||
*/
|
||||
cx: MUST_USE_PROPERTY,
|
||||
cy: MUST_USE_PROPERTY,
|
||||
d: MUST_USE_PROPERTY,
|
||||
fill: MUST_USE_PROPERTY,
|
||||
fx: MUST_USE_PROPERTY,
|
||||
fy: MUST_USE_PROPERTY,
|
||||
points: MUST_USE_PROPERTY,
|
||||
r: MUST_USE_PROPERTY,
|
||||
stroke: MUST_USE_PROPERTY,
|
||||
strokeLinecap: MUST_USE_PROPERTY,
|
||||
strokeWidth: MUST_USE_PROPERTY,
|
||||
transform: MUST_USE_PROPERTY,
|
||||
x: MUST_USE_PROPERTY,
|
||||
x1: MUST_USE_PROPERTY,
|
||||
x2: MUST_USE_PROPERTY,
|
||||
version: MUST_USE_PROPERTY,
|
||||
viewBox: MUST_USE_PROPERTY,
|
||||
y: MUST_USE_PROPERTY,
|
||||
y1: MUST_USE_PROPERTY,
|
||||
y2: MUST_USE_PROPERTY,
|
||||
spreadMethod: MUST_USE_PROPERTY,
|
||||
offset: MUST_USE_PROPERTY,
|
||||
stopColor: MUST_USE_PROPERTY,
|
||||
stopOpacity: MUST_USE_PROPERTY,
|
||||
gradientUnits: MUST_USE_PROPERTY,
|
||||
gradientTransform: MUST_USE_PROPERTY
|
||||
cx: MUST_USE_ATTRIBUTE,
|
||||
cy: MUST_USE_ATTRIBUTE,
|
||||
d: MUST_USE_ATTRIBUTE,
|
||||
fill: MUST_USE_ATTRIBUTE,
|
||||
fx: MUST_USE_ATTRIBUTE,
|
||||
fy: MUST_USE_ATTRIBUTE,
|
||||
gradientTransform: MUST_USE_ATTRIBUTE,
|
||||
gradientUnits: MUST_USE_ATTRIBUTE,
|
||||
offset: MUST_USE_ATTRIBUTE,
|
||||
points: MUST_USE_ATTRIBUTE,
|
||||
r: MUST_USE_ATTRIBUTE,
|
||||
rx: MUST_USE_ATTRIBUTE,
|
||||
ry: MUST_USE_ATTRIBUTE,
|
||||
spreadMethod: MUST_USE_ATTRIBUTE,
|
||||
stopColor: MUST_USE_ATTRIBUTE,
|
||||
stopOpacity: MUST_USE_ATTRIBUTE,
|
||||
stroke: MUST_USE_ATTRIBUTE,
|
||||
strokeLinecap: MUST_USE_ATTRIBUTE,
|
||||
strokeWidth: MUST_USE_ATTRIBUTE,
|
||||
transform: MUST_USE_ATTRIBUTE,
|
||||
version: MUST_USE_ATTRIBUTE,
|
||||
viewBox: MUST_USE_ATTRIBUTE,
|
||||
x1: MUST_USE_ATTRIBUTE,
|
||||
x2: MUST_USE_ATTRIBUTE,
|
||||
x: MUST_USE_ATTRIBUTE,
|
||||
y1: MUST_USE_ATTRIBUTE,
|
||||
y2: MUST_USE_ATTRIBUTE,
|
||||
y: MUST_USE_ATTRIBUTE
|
||||
},
|
||||
DOMAttributeNames: {
|
||||
className: 'class',
|
||||
gradientTransform: 'gradientTransform',
|
||||
gradientUnits: 'gradientUnits',
|
||||
htmlFor: 'for',
|
||||
spreadMethod: 'spreadMethod',
|
||||
stopColor: 'stop-color',
|
||||
stopOpacity: 'stop-opacity',
|
||||
strokeLinecap: 'stroke-linecap',
|
||||
strokeWidth: 'stroke-width',
|
||||
stopColor: 'stop-color',
|
||||
stopOpacity: 'stop-opacity'
|
||||
viewBox: 'viewBox'
|
||||
},
|
||||
DOMPropertyNames: {
|
||||
autoCapitalize: 'autocapitalize',
|
||||
|
||||
Reference in New Issue
Block a user