Skip to content

Commit 713401f

Browse files
committed
Merge pull request facebook#5736 from gaearon/document-svg-passthrough
Document changes in facebook#5714
2 parents 53dabe7 + feb4c48 commit 713401f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

docs/docs/ref-04-tags-and-attributes.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here
7878

7979
### SVG Attributes
8080

81-
```
82-
clipPath cx cy d dx dy fill fillOpacity fontFamily
83-
fontSize fx fy gradientTransform gradientUnits markerEnd
84-
markerMid markerStart offset opacity patternContentUnits
85-
patternUnits points preserveAspectRatio r rx ry spreadMethod
86-
stopColor stopOpacity stroke strokeDasharray strokeLinecap
87-
strokeOpacity strokeWidth textAnchor transform version
88-
viewBox x1 x2 x xlinkActuate xlinkArcrole xlinkHref xlinkRole
89-
xlinkShow xlinkTitle xlinkType xmlBase xmlLang xmlSpace y1 y2 y
90-
```
81+
Any attributes passed to SVG tags are passed through without changes.
82+
83+
React used to support special camelCase aliases for certain SVG attributes, such as `clipPath`. If you use them now you'll see a deprecation warning. These aliases will be removed in the next version in favor of their real names from the SVG specification, such as `clip-path`. Attributes that have a camelCase name in the spec, such as `gradientTransform`, will keep their names.

0 commit comments

Comments
 (0)