From bfcd4cac48a294da32a0bda0a82055c640aebac9 Mon Sep 17 00:00:00 2001 From: Brian Reavis Date: Wed, 7 May 2014 10:02:57 -0700 Subject: [PATCH] Use camelCase and declare MUST_USE_ATTRIBUTE. --- docs/docs/ref-04-tags-and-attributes.md | 2 +- src/browser/ui/dom/HTMLDOMPropertyConfig.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 3082f45da9..a90e3f5d98 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -57,7 +57,7 @@ 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 +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 diff --git a/src/browser/ui/dom/HTMLDOMPropertyConfig.js b/src/browser/ui/dom/HTMLDOMPropertyConfig.js index 8f4e6c32cd..9c5cdb5aa7 100644 --- a/src/browser/ui/dom/HTMLDOMPropertyConfig.js +++ b/src/browser/ui/dom/HTMLDOMPropertyConfig.js @@ -136,9 +136,9 @@ 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 - itemscope: HAS_BOOLEAN_VALUE, // Microdata: http://schema.org/docs/gs.html - itemtype: null, // Microdata: http://schema.org/docs/gs.html - itemprop: null // 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 }, DOMAttributeNames: { className: 'class',