Added itemRef and itemId for complete microdata support.

This commit is contained in:
Brian Holt
2015-02-02 17:17:04 -08:00
parent 63c3461af7
commit ea67a1d436
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ 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).
- `itemProp itemScope itemType itemRef itemId` 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.
+4 -2
View File
@@ -164,11 +164,13 @@ var HTMLDOMPropertyConfig = {
// keyboard hints.
autoCapitalize: null,
autoCorrect: null,
// itemProp, itemScope, itemType are for Microdata support. See
// http://schema.org/docs/gs.html
// itemProp, itemScope, itemType, itemType, itemId are for
// Microdata support. See http://schema.org/docs/gs.html
itemProp: MUST_USE_ATTRIBUTE,
itemScope: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
itemType: MUST_USE_ATTRIBUTE,
itemId: MUST_USE_ATTRIBUTE,
itemRef: MUST_USE_ATTRIBUTE,
// property is supported for OpenGraph in meta tags.
property: null
},