From f399b682012cddd382b9bea2cb736be8e64f5b8f Mon Sep 17 00:00:00 2001 From: Brian Reavis Date: Thu, 8 May 2014 23:25:10 -0700 Subject: [PATCH] Stylistic changes. --- docs/docs/ref-04-tags-and-attributes.md | 16 ++++++++++------ src/browser/ui/dom/HTMLDOMPropertyConfig.js | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index a90e3f5d98..6cb0b7939e 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -57,14 +57,18 @@ accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className colSpan cols content contentEditable contextMenu controls data dateTime defer dir disabled draggable encType form formNoValidate frameBorder -height hidden href htmlFor httpEquiv icon id itemProp itemScope itemType -label lang list loop max maxLength method min multiple name noValidate -pattern placeholder poster preload radioGroup readOnly rel required role -rowSpan rows sandbox scope scrollLeft scrollTop seamless selected size span -spellCheck src srcDoc step style tabIndex target title type value width wmode +height hidden href htmlFor httpEquiv icon id label lang list loop max +maxLength method min multiple name noValidate pattern placeholder poster +preload radioGroup readOnly rel required role rowSpan rows sandbox scope +scrollLeft scrollTop seamless selected size span spellCheck src srcDoc step +style tabIndex target title type value width wmode ``` -In addition, the non-standard `autoCapitalize` and `autoCorrect` attributes are supported for Mobile Safari, and the `property` attribute is supported for Open Graph `` tags. +In addition, the following non-standard attributes are supported: + +- `autoCapitalize autoCorrect` for Mobile Safari. +- `property` for [Open Graph](http://ogp.me/) meta tags. +- `itemProp itemScope itemType` for [HTML5 microdata](http://schema.org/docs/gs.html). There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here](/react/docs/special-non-dom-attributes.html)), used for directly inserting HTML strings into a component. diff --git a/src/browser/ui/dom/HTMLDOMPropertyConfig.js b/src/browser/ui/dom/HTMLDOMPropertyConfig.js index 9c5cdb5aa7..2309cf0783 100644 --- a/src/browser/ui/dom/HTMLDOMPropertyConfig.js +++ b/src/browser/ui/dom/HTMLDOMPropertyConfig.js @@ -135,10 +135,10 @@ var HTMLDOMPropertyConfig = { */ autoCapitalize: null, // Supported in Mobile Safari for keyboard hints autoCorrect: null, // Supported in Mobile Safari for keyboard hints - property: null, // Supports OG in meta tags + itemProp: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE, // Microdata: http://schema.org/docs/gs.html itemType: MUST_USE_ATTRIBUTE, // Microdata: http://schema.org/docs/gs.html - itemProp: MUST_USE_ATTRIBUTE // Microdata: http://schema.org/docs/gs.html + property: null // Supports OG in meta tags }, DOMAttributeNames: { className: 'class',