@samitouri / QOS-React-2 / commits / ea67a1d436

Added itemRef and itemId for complete microdata support.

Brian Holt committed Feb 2, 2015 at 17:16 UTC ea67a1d436d58af10a8158c8d768b5986687d461
2 files changed +5 -3
docs/docs/ref-04-tags-and-attributes.md
+1 -1
@@ -69,7 +69,7 @@ In addition, the following non-standard attributes are supported:
69
70 - `autoCapitalize autoCorrect` for Mobile Safari.
71 - `property` for [Open Graph](http://ogp.me/) meta tags.
72 -- `itemProp itemScope itemType` for [HTML5 microdata](http://schema.org/docs/gs.html).
72 +- `itemProp itemScope itemType itemRef itemId` for [HTML5 microdata](http://schema.org/docs/gs.html).
73
74 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.
75
src/browser/ui/dom/HTMLDOMPropertyConfig.js
+4 -2
@@ -164,11 +164,13 @@ var HTMLDOMPropertyConfig = {
164 // keyboard hints.
165 autoCapitalize: null,
166 autoCorrect: null,
167 - // itemProp, itemScope, itemType are for Microdata support. See
168 - // http://schema.org/docs/gs.html
167 + // itemProp, itemScope, itemType, itemType, itemId are for
168 + // Microdata support. See http://schema.org/docs/gs.html
169 itemProp: MUST_USE_ATTRIBUTE,
170 itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
171 itemType: MUST_USE_ATTRIBUTE,
172 + itemId: MUST_USE_ATTRIBUTE,
173 + itemRef: MUST_USE_ATTRIBUTE,
174 // property is supported for OpenGraph in meta tags.
175 property: null
176 },