Browse Source

Update supported elements and properties [skip ci]

main
Paul O’Shannessy 11 years ago
parent
commit
93749173a9
  1. 37
      docs/ref-04-tags-and-attributes.md

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

@ -19,11 +19,11 @@ The following HTML elements are supported:
a abbr address area article aside audio b base bdi bdo big blockquote body br a abbr address area article aside audio b base bdi bdo big blockquote body br
button canvas caption cite code col colgroup data datalist dd del details dfn button canvas caption cite code col colgroup data datalist dd del details dfn
div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6
head header hr html i iframe img input ins kbd keygen label legend li link head header hr html i iframe img input ins kbd keygen label legend li link main
main map mark menu menuitem meta meter nav noscript object ol optgroup option map mark menu menuitem meta meter nav noscript object ol optgroup option output
output p param pre progress q rp rt ruby s samp script section select small p param pre progress q rp rt ruby s samp script section select small source
source span strong style sub summary sup table tbody td textarea tfoot th span strong style sub summary sup table tbody td textarea tfoot th thead time
thead time title tr track u ul var video wbr title tr track u ul var video wbr
``` ```
### SVG elements ### SVG elements
@ -31,8 +31,8 @@ thead time title tr track u ul var video wbr
The following SVG elements are supported: The following SVG elements are supported:
``` ```
circle defs ellipse g line linearGradient path polygon polyline radialGradient rect circle defs ellipse g line linearGradient mask path pattern polygon polyline
stop svg text radialGradient rect stop svg text tspan
``` ```
You may also be interested in [react-art](https://github.com/facebook/react-art), a drawing library for React that can render to Canvas, SVG, or VML (for IE8). You may also be interested in [react-art](https://github.com/facebook/react-art), a drawing library for React that can render to Canvas, SVG, or VML (for IE8).
@ -55,13 +55,14 @@ These standard attributes are supported:
``` ```
accept accessKey action allowFullScreen allowTransparency alt async accept accessKey action allowFullScreen allowTransparency alt async
autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked
className colSpan cols content contentEditable contextMenu controls data className cols colSpan content contentEditable contextMenu controls coords
dateTime defer dir disabled draggable encType form formNoValidate frameBorder crossOrigin data dateTime defer dir disabled download draggable encType form
height hidden href htmlFor httpEquiv icon id label lang list loop max formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon
maxLength method min multiple name noValidate pattern placeholder poster id label lang list loop max maxLength mediaGroup method min multiple muted name
preload radioGroup readOnly rel required role rowSpan rows sandbox scope noValidate pattern placeholder poster preload radioGroup readOnly rel required
scrollLeft scrollTop seamless selected size span spellCheck src srcDoc step role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless
style tabIndex target title type value width wmode selected shape size span spellCheck src srcDoc srcSet start step style tabIndex
target title type useMap value width wmode
``` ```
In addition, the following non-standard attributes are supported: In addition, the following non-standard attributes are supported:
@ -75,7 +76,9 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here
### SVG Attributes ### SVG Attributes
``` ```
cx cy d dx dy fill fx fy gradientTransform gradientUnits offset points r rx ry cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform
spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth textAnchor transform gradientUnits markerEnd markerMid markerStart offset opacity
version viewBox x1 x2 x y1 y2 y patternContentUnits patternUnits points preserveAspectRatio r rx ry
spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap
strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y
``` ```

Loading…
Cancel
Save