From 3574e60867b5833e94f20d3ce433c304f1d187ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 8 Jan 2016 17:15:21 -0800 Subject: [PATCH] [docs] Updated supported attrs --- docs/docs/ref-04-tags-and-attributes.md | 46 +++++++++++++++---------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 7af3d0f1d951b..09eac46a48ee8 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -18,11 +18,11 @@ The following HTML elements are supported: 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 dialog 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 -main map mark menu menuitem meta meter nav noscript object ol optgroup option -output p param picture pre progress q rp rt ruby s samp script section select -small source span strong style sub summary sup table tbody td textarea tfoot th -thead time title tr track u ul var video wbr +h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li +link main map mark menu menuitem meta meter nav noscript object ol optgroup +option output p param picture pre progress q rp rt ruby s samp script section +select small source span strong style sub summary sup table tbody td textarea +tfoot th thead time title tr track u ul var video wbr ``` ### SVG elements @@ -30,8 +30,8 @@ thead time title tr track u ul var video wbr The following SVG elements are supported: ``` -circle clipPath defs ellipse g line linearGradient mask path pattern polygon polyline -radialGradient rect stop svg text tspan +circle clipPath defs ellipse g image line linearGradient mask path pattern +polygon polyline 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). @@ -53,24 +53,32 @@ These standard attributes are supported: ``` accept acceptCharset accessKey action allowFullScreen allowTransparency alt -async autoComplete autoFocus autoPlay capture cellPadding cellSpacing charSet -challenge checked classID className cols colSpan content contentEditable contextMenu -controls coords crossOrigin data dateTime defer dir disabled download draggable -encType form formAction formEncType formMethod formNoValidate formTarget frameBorder -headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode -keyParams keyType label lang list loop low manifest marginHeight marginWidth max -maxLength media mediaGroup method min minLength multiple muted name noValidate open -optimum pattern placeholder poster preload radioGroup readOnly rel required role -rows rowSpan sandbox scope scoped scrolling seamless selected shape size sizes -span spellCheck src srcDoc srcSet start step style summary tabIndex target title -type useMap value width wmode wrap +async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge +charSet checked classID className colSpan cols content contentEditable +contextMenu controls coords crossOrigin data dateTime default defer dir +disabled download draggable encType form formAction formEncType formMethod +formNoValidate formTarget frameBorder headers height hidden high href hrefLang +htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label +lang list loop low manifest marginHeight marginWidth max maxLength media +mediaGroup method min minLength multiple muted name noValidate nonce open +optimum pattern placeholder poster preload radioGroup readOnly rel required +reversed role rowSpan rows sandbox scope scoped scrolling seamless selected +shape size sizes span spellCheck src srcDoc srcLang srcSet start step style +summary tabIndex target title type useMap value width wmode wrap +``` + +These RDFa attributes are supported (several RDFa attributes overlap with standard HTML attributes and thus are excluded from this list): + +``` +about datatype inlist prefix property resource typeof vocab ``` In addition, the following non-standard attributes are supported: - `autoCapitalize autoCorrect` for Mobile Safari. -- `property` for [Open Graph](http://ogp.me/) meta tags. +- `color` for `` in Safari. - `itemProp itemScope itemType itemRef itemID` for [HTML5 microdata](http://schema.org/docs/gs.html). +- `security` for older versions of Internet Explorer. - `unselectable` for Internet Explorer. - `results autoSave` for WebKit/Blink input fields of type `search`.