[html5] r4140 - [giow] (0) Microdata: Rename .content to .itemValue and make it more useful.

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 14 04:35:36 PDT 2009


Author: ianh
Date: 2009-10-14 04:35:35 -0700 (Wed, 14 Oct 2009)
New Revision: 4140

Modified:
   complete.html
   index
   source
   vocabs-index
Log:
[giow] (0) Microdata: Rename .content to .itemValue and make it more useful.

Modified: complete.html
===================================================================
--- complete.html	2009-10-14 11:05:03 UTC (rev 4139)
+++ complete.html	2009-10-14 11:35:35 UTC (rev 4140)
@@ -6166,7 +6166,7 @@
 typedef sequence<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
 
 interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span> {
-  readonly attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-contents title=dom-PropertyNodeList-contents>contents</a>;
+  readonly attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-values title=dom-PropertyNodeList-values>values</a>;
 };</pre>
 
   <dl class=domintro><dt><var title="">collection</var> . <code title=dom-HTMLPropertyCollection-length><a href=#dom-htmlpropertycollection-length>length</a></code></dt>
@@ -6194,7 +6194,7 @@
     <p>Returns a <code><a href=#propertynodelist>PropertyNodeList</a></code> object containing any elements that add a property named <var title="">name</var>.</p>
    </dd>
 
-   <dt><var title="">propertyNodeList</var> . <code title=dom-PropertyNodeList-contents><a href=#dom-propertynodelist-contents>contents</a></code></dt>
+   <dt><var title="">propertyNodeList</var> . <code title=dom-PropertyNodeList-values><a href=#dom-propertynodelist-values>values</a></code></dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
    </dd>
@@ -6240,12 +6240,11 @@
   from the <code>NodeList</code> interface must behave as they would
   on a <code>NodeList</code> object.</p>
 
-  <p>The <dfn id=dom-propertynodelist-contents title=dom-PropertyNodeList-contents><code>contents</code></dfn>
+  <p>The <dfn id=dom-propertynodelist-values title=dom-PropertyNodeList-values><code>values</code></dfn>
   IDL attribute on the <code><a href=#propertynodelist>PropertyNodeList</a></code> object, on
   getting, must return a newly constructed array whose values are the
-  values obtained from the <code title=dom-content><a href=#dom-content>content</a></code>
-  DOM property of each of the elements represented by the object, in
-  <a href=#tree-order>tree order</a>.</p>
+  values obtained from the <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> DOM property of each of the
+  elements represented by the object, in <a href=#tree-order>tree order</a>.</p>
 
   </div>
 
@@ -7726,7 +7725,7 @@
            attribute DOMString <a href=#dom-itemid title=dom-itemId>itemId</a>;
   [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
   readonly attribute <a href=#htmlpropertycollection>HTMLPropertyCollection</a> <a href=#dom-properties title=dom-properties>properties</a>;
-           attribute DOMString <a href=#dom-content title=dom-content>content</a>;
+           attribute any <a href=#dom-itemvalue title=dom-itemValue>itemValue</a>;
 
   // <a href=#editing>user interaction</a>
            attribute boolean <a href=#dom-hidden title=dom-hidden>hidden</a>;
@@ -11080,6 +11079,7 @@
 <pre class=idl>interface <dfn id=htmlmetaelement>HTMLMetaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-meta-name title=dom-meta-name>name</a>;
            attribute DOMString <a href=#dom-meta-httpequiv title=dom-meta-httpEquiv>httpEquiv</a>;
+           attribute DOMString <a href=#dom-meta-content title=dom-meta-content>content</a>;
 };</pre>
    </dd>
   </dl><p>The <code><a href=#meta>meta</a></code> element <a href=#represents>represents</a> various
@@ -11138,8 +11138,8 @@
 
   <div class=impl>
 
-  <p>The <dfn id=dom-meta-name title=dom-meta-name><code>name</code></dfn> IDL
-  attribute must <a href=#reflect>reflect</a> the content attribute of the
+  <p>The <dfn id=dom-meta-name title=dom-meta-name><code>name</code></dfn> and <dfn id=dom-meta-content title=dom-meta-content><code>content</code></dfn> IDL attributes
+  must <a href=#reflect>reflect</a> the respective content attributes of the
   same name. The IDL attribute <dfn id=dom-meta-httpequiv title=dom-meta-httpEquiv><code>httpEquiv</code></dfn> must
   <a href=#reflect>reflect</a> the content attribute <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code>.</p>
 
@@ -44453,8 +44453,8 @@
   return an object with a list of the elements that add properties
   with that name.</p>
 
-  <p>Each element that adds a property also has a <code title=dom-content><a href=#dom-content>content</a></code> IDL attribute that returns its
-  value.
+  <p>Each element that adds a property also has a <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> IDL attribute that returns
+  its value.</p>
 
   <div class=example>
 
@@ -44471,8 +44471,8 @@
   name in this way, actually returns a <code><a href=#propertynodelist>PropertyNodeList</a></code>
   object with all the matching properties. The
   <code><a href=#propertynodelist>PropertyNodeList</a></code> object can be used to obtained all the
-  values at once using <em>its</em> <code title=dom-PropertyNodeList-contents><a href=#dom-propertynodelist-contents>contents</a></code> attribute,
-  which returns an array of all the values.</p>
+  values at once using <em>its</em> <code title=dom-PropertyNodeList-values><a href=#dom-propertynodelist-values>values</a></code> attribute, which
+  returns an array of all the values.</p>
 
   <div class=example>
 
@@ -44481,7 +44481,7 @@
    item and then lists all its values.</p>
 
    <pre>var cat = document.getItems('org.example.animals.cat')[0];
-var colors = cat.properties['com.example.color'].contents;
+var colors = cat.properties['com.example.color'].values;
 var result;
 if (colors.length == 0) {
   result = 'Color unknown.';
@@ -44910,13 +44910,16 @@
 
    </dd>
 
-   <dt><var title="">element</var> . <code title=dom-content><a href=#dom-content>content</a></code> [ = <var title="">value</var> ]</dt>
+   <dt><var title="">element</var> . <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> [ = <var title="">value</var> ]</dt>
 
    <dd>
 
     <p>Returns the element's <a href=#concept-property-value title=concept-property-value>value</a>.</p>
 
-    <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>.</p>
+    <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>. Setting the <a href=#concept-property-value title=concept-property-value>value</a> when the element has
+    no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute or when
+    the element's value is an <a href=#concept-item title=concept-item>item</a>
+    throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
 
    </dd>
 
@@ -44948,11 +44951,24 @@
   on which the attribute was invoked, while that element is an <a href=#concept-item title=concept-item>item</a>, and matches nothing the rest of
   the time.</p>
 
-  <p>The <dfn id=dom-content title=dom-content><code>content</code></dfn> IDL
+  <p>The <dfn id=dom-itemvalue title=dom-itemValue><code>itemValue</code></dfn> IDL
   attribute's behavior depends on the element, as follows:</p>
 
-  <dl><dt>If the element is a <code><a href=#meta>meta</a></code> element</dt>
+  <dl><dt>If the element has no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute</dt>
 
+   <dd><p>The attribute must return null on getting and must throw an
+   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on setting.</p>
+
+
+   <dt>If the element has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
+
+   <dd><p>The attribute must return the element itself on getting and
+   must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on
+   setting.</p>
+
+
+   <dt>If the element is a <code><a href=#meta>meta</a></code> element</dt>
+
    <dd><p>The attribute must act as it would if it was <a href=#reflect title=reflect>reflecting</a> the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> content
    attribute.</dd>
 
@@ -44985,11 +45001,18 @@
    <dd><p>The attribute must act the same as the element's
    <code>textContent</code> attribute.</dd>
 
-  </dl></div>
+  </dl><p>When the <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> IDL
+  attribute is <a href=#reflect title=reflect>reflecting</a> a content
+  attribute or acting like the element's <code>textContent</code>
+  attribute, the user agent must, on setting, convert the new value to
+  the IDL <code title="">DOMString</code> value before using it
+  according to the mappings described above.</p>
 
+  </div>
 
 
 
+
   <h3 id=microdata-vocabularies><span class=secno>5.4 </span>Microdata vocabularies</h3>
 
 
@@ -47498,7 +47521,7 @@
     calendar += 'UID:' + node.itemId + '\r\n';
   for (var propIndex = 0; propIndex < node.properties.length; propIndex += 1) {
     var prop = node.properties[propIndex];
-    var value = prop.contents;
+    var value = prop.itemValue;
     var parameters = '';
     if (prop.localName == 'time') {
       value = value.replace(/[:-]/g, '');

Modified: index
===================================================================
--- index	2009-10-14 11:05:03 UTC (rev 4139)
+++ index	2009-10-14 11:35:35 UTC (rev 4140)
@@ -5995,7 +5995,7 @@
 typedef sequence<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
 
 interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span> {
-  readonly attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-contents title=dom-PropertyNodeList-contents>contents</a>;
+  readonly attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-values title=dom-PropertyNodeList-values>values</a>;
 };</pre>
 
   <dl class=domintro><dt><var title="">collection</var> . <code title=dom-HTMLPropertyCollection-length><a href=#dom-htmlpropertycollection-length>length</a></code></dt>
@@ -6023,7 +6023,7 @@
     <p>Returns a <code><a href=#propertynodelist>PropertyNodeList</a></code> object containing any elements that add a property named <var title="">name</var>.</p>
    </dd>
 
-   <dt><var title="">propertyNodeList</var> . <code title=dom-PropertyNodeList-contents><a href=#dom-propertynodelist-contents>contents</a></code></dt>
+   <dt><var title="">propertyNodeList</var> . <code title=dom-PropertyNodeList-values><a href=#dom-propertynodelist-values>values</a></code></dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
    </dd>
@@ -6069,12 +6069,11 @@
   from the <code>NodeList</code> interface must behave as they would
   on a <code>NodeList</code> object.</p>
 
-  <p>The <dfn id=dom-propertynodelist-contents title=dom-PropertyNodeList-contents><code>contents</code></dfn>
+  <p>The <dfn id=dom-propertynodelist-values title=dom-PropertyNodeList-values><code>values</code></dfn>
   IDL attribute on the <code><a href=#propertynodelist>PropertyNodeList</a></code> object, on
   getting, must return a newly constructed array whose values are the
-  values obtained from the <code title=dom-content><a href=#dom-content>content</a></code>
-  DOM property of each of the elements represented by the object, in
-  <a href=#tree-order>tree order</a>.</p>
+  values obtained from the <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> DOM property of each of the
+  elements represented by the object, in <a href=#tree-order>tree order</a>.</p>
 
   </div>
 
@@ -7555,7 +7554,7 @@
            attribute DOMString <a href=#dom-itemid title=dom-itemId>itemId</a>;
   [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
   readonly attribute <a href=#htmlpropertycollection>HTMLPropertyCollection</a> <a href=#dom-properties title=dom-properties>properties</a>;
-           attribute DOMString <a href=#dom-content title=dom-content>content</a>;
+           attribute any <a href=#dom-itemvalue title=dom-itemValue>itemValue</a>;
 
   // <a href=#editing>user interaction</a>
            attribute boolean <a href=#dom-hidden title=dom-hidden>hidden</a>;
@@ -10909,6 +10908,7 @@
 <pre class=idl>interface <dfn id=htmlmetaelement>HTMLMetaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
            attribute DOMString <a href=#dom-meta-name title=dom-meta-name>name</a>;
            attribute DOMString <a href=#dom-meta-httpequiv title=dom-meta-httpEquiv>httpEquiv</a>;
+           attribute DOMString <a href=#dom-meta-content title=dom-meta-content>content</a>;
 };</pre>
    </dd>
   </dl><p>The <code><a href=#meta>meta</a></code> element <a href=#represents>represents</a> various
@@ -10967,8 +10967,8 @@
 
   <div class=impl>
 
-  <p>The <dfn id=dom-meta-name title=dom-meta-name><code>name</code></dfn> IDL
-  attribute must <a href=#reflect>reflect</a> the content attribute of the
+  <p>The <dfn id=dom-meta-name title=dom-meta-name><code>name</code></dfn> and <dfn id=dom-meta-content title=dom-meta-content><code>content</code></dfn> IDL attributes
+  must <a href=#reflect>reflect</a> the respective content attributes of the
   same name. The IDL attribute <dfn id=dom-meta-httpequiv title=dom-meta-httpEquiv><code>httpEquiv</code></dfn> must
   <a href=#reflect>reflect</a> the content attribute <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code>.</p>
 
@@ -44282,8 +44282,8 @@
   return an object with a list of the elements that add properties
   with that name.</p>
 
-  <p>Each element that adds a property also has a <code title=dom-content><a href=#dom-content>content</a></code> IDL attribute that returns its
-  value.
+  <p>Each element that adds a property also has a <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> IDL attribute that returns
+  its value.</p>
 
   <div class=example>
 
@@ -44300,8 +44300,8 @@
   name in this way, actually returns a <code><a href=#propertynodelist>PropertyNodeList</a></code>
   object with all the matching properties. The
   <code><a href=#propertynodelist>PropertyNodeList</a></code> object can be used to obtained all the
-  values at once using <em>its</em> <code title=dom-PropertyNodeList-contents><a href=#dom-propertynodelist-contents>contents</a></code> attribute,
-  which returns an array of all the values.</p>
+  values at once using <em>its</em> <code title=dom-PropertyNodeList-values><a href=#dom-propertynodelist-values>values</a></code> attribute, which
+  returns an array of all the values.</p>
 
   <div class=example>
 
@@ -44310,7 +44310,7 @@
    item and then lists all its values.</p>
 
    <pre>var cat = document.getItems('org.example.animals.cat')[0];
-var colors = cat.properties['com.example.color'].contents;
+var colors = cat.properties['com.example.color'].values;
 var result;
 if (colors.length == 0) {
   result = 'Color unknown.';
@@ -44739,13 +44739,16 @@
 
    </dd>
 
-   <dt><var title="">element</var> . <code title=dom-content><a href=#dom-content>content</a></code> [ = <var title="">value</var> ]</dt>
+   <dt><var title="">element</var> . <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> [ = <var title="">value</var> ]</dt>
 
    <dd>
 
     <p>Returns the element's <a href=#concept-property-value title=concept-property-value>value</a>.</p>
 
-    <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>.</p>
+    <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>. Setting the <a href=#concept-property-value title=concept-property-value>value</a> when the element has
+    no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute or when
+    the element's value is an <a href=#concept-item title=concept-item>item</a>
+    throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
 
    </dd>
 
@@ -44777,11 +44780,24 @@
   on which the attribute was invoked, while that element is an <a href=#concept-item title=concept-item>item</a>, and matches nothing the rest of
   the time.</p>
 
-  <p>The <dfn id=dom-content title=dom-content><code>content</code></dfn> IDL
+  <p>The <dfn id=dom-itemvalue title=dom-itemValue><code>itemValue</code></dfn> IDL
   attribute's behavior depends on the element, as follows:</p>
 
-  <dl><dt>If the element is a <code><a href=#meta>meta</a></code> element</dt>
+  <dl><dt>If the element has no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute</dt>
 
+   <dd><p>The attribute must return null on getting and must throw an
+   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on setting.</p>
+
+
+   <dt>If the element has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
+
+   <dd><p>The attribute must return the element itself on getting and
+   must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on
+   setting.</p>
+
+
+   <dt>If the element is a <code><a href=#meta>meta</a></code> element</dt>
+
    <dd><p>The attribute must act as it would if it was <a href=#reflect title=reflect>reflecting</a> the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> content
    attribute.</dd>
 
@@ -44814,10 +44830,17 @@
    <dd><p>The attribute must act the same as the element's
    <code>textContent</code> attribute.</dd>
 
-  </dl></div>
+  </dl><p>When the <code title=dom-itemValue><a href=#dom-itemvalue>itemValue</a></code> IDL
+  attribute is <a href=#reflect title=reflect>reflecting</a> a content
+  attribute or acting like the element's <code>textContent</code>
+  attribute, the user agent must, on setting, convert the new value to
+  the IDL <code title="">DOMString</code> value before using it
+  according to the mappings described above.</p>
 
+  </div>
 
 
+
   <div class=impl>
 
   <h3 id=converting-html-to-other-formats><span class=secno>5.4 </span>Converting HTML to other formats</h3>

Modified: source
===================================================================
--- source	2009-10-14 11:05:03 UTC (rev 4139)
+++ source	2009-10-14 11:35:35 UTC (rev 4140)
@@ -5838,7 +5838,7 @@
 typedef sequence<any> <dfn>PropertyValueArray</dfn>;
 
 interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {
-  readonly attribute <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-contents">contents</span>;
+  readonly attribute <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-values">values</span>;
 };</pre>
 
   <dl class="domintro">
@@ -5868,7 +5868,7 @@
     <p>Returns a <code>PropertyNodeList</code> object containing any elements that add a property named <var title="">name</var>.</p>
    </dd>
 
-   <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-contents">contents</code></dt>
+   <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-values">values</code></dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
    </dd>
@@ -5929,12 +5929,12 @@
   on a <code>NodeList</code> object.</p>
 
   <p>The <dfn
-  title="dom-PropertyNodeList-contents"><code>contents</code></dfn>
+  title="dom-PropertyNodeList-values"><code>values</code></dfn>
   IDL attribute on the <code>PropertyNodeList</code> object, on
   getting, must return a newly constructed array whose values are the
-  values obtained from the <code title="dom-content">content</code>
-  DOM property of each of the elements represented by the object, in
-  <span>tree order</span>.</p>
+  values obtained from the <code
+  title="dom-itemValue">itemValue</code> DOM property of each of the
+  elements represented by the object, in <span>tree order</span>.</p>
 
   </div>
 
@@ -7639,7 +7639,7 @@
            attribute DOMString <span title="dom-itemId">itemId</span>;
   [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span title="dom-itemProp">itemProp</span>;
   readonly attribute <span>HTMLPropertyCollection</span> <span title="dom-properties">properties</span>;
-           attribute DOMString <span title="dom-content">content</span>;
+           attribute any <span title="dom-itemValue">itemValue</span>;
 
   // <span>user interaction</span>
            attribute boolean <span title="dom-hidden">hidden</span>;
@@ -11454,6 +11454,7 @@
 <pre class="idl">interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-meta-name">name</span>;
            attribute DOMString <span title="dom-meta-httpEquiv">httpEquiv</span>;
+           attribute DOMString <span title="dom-meta-content">content</span>;
 };</pre>
    </dd>
   </dl>
@@ -11523,8 +11524,9 @@
 
   <div class="impl">
 
-  <p>The <dfn title="dom-meta-name"><code>name</code></dfn> IDL
-  attribute must <span>reflect</span> the content attribute of the
+  <p>The <dfn title="dom-meta-name"><code>name</code></dfn> and <dfn
+  title="dom-meta-content"><code>content</code></dfn> IDL attributes
+  must <span>reflect</span> the respective content attributes of the
   same name. The IDL attribute <dfn
   title="dom-meta-httpEquiv"><code>httpEquiv</code></dfn> must
   <span>reflect</span> the content attribute <code
@@ -49468,8 +49470,8 @@
   with that name.</p>
 
   <p>Each element that adds a property also has a <code
-  title="dom-content">content</code> IDL attribute that returns its
-  value.
+  title="dom-itemValue">itemValue</code> IDL attribute that returns
+  its value.</p>
 
   <div class="example">
 
@@ -49487,8 +49489,8 @@
   object with all the matching properties. The
   <code>PropertyNodeList</code> object can be used to obtained all the
   values at once using <em>its</em> <code
-  title="dom-PropertyNodeList-contents">contents</code> attribute,
-  which returns an array of all the values.</p>
+  title="dom-PropertyNodeList-values">values</code> attribute, which
+  returns an array of all the values.</p>
 
   <div class="example">
 
@@ -49497,7 +49499,7 @@
    item and then lists all its values.</p>
 
    <pre>var cat = document.getItems('org.example.animals.cat')[0];
-var colors = cat.properties['com.example.color'].contents;
+var colors = cat.properties['com.example.color'].values;
 var result;
 if (colors.length == 0) {
   result = 'Color unknown.';
@@ -50008,7 +50010,7 @@
 
    </dd>
 
-   <dt><var title="">element</var> . <code title="dom-content">content</code> [ = <var title="">value</var> ]</dt>
+   <dt><var title="">element</var> . <code title="dom-itemValue">itemValue</code> [ = <var title="">value</var> ]</dt>
 
    <dd>
 
@@ -50016,7 +50018,11 @@
     title="concept-property-value">value</span>.</p>
 
     <p>Can be set, to change the element's <span
-    title="concept-property-value">value</span>.</p>
+    title="concept-property-value">value</span>. Setting the <span
+    title="concept-property-value">value</span> when the element has
+    no <code title="attr-itemprop">itemprop</code> attribute or when
+    the element's value is an <span title="concept-item">item</span>
+    throws an <code>INVALID_ACCESS_ERR</code> exception.</p>
 
    </dd>
 
@@ -50057,11 +50063,24 @@
   title="concept-item">item</span>, and matches nothing the rest of
   the time.</p>
 
-  <p>The <dfn title="dom-content"><code>content</code></dfn> IDL
+  <p>The <dfn title="dom-itemValue"><code>itemValue</code></dfn> IDL
   attribute's behavior depends on the element, as follows:</p>
 
   <dl>
 
+   <dt>If the element has no <code title="attr-itemprop">itemprop</code> attribute</dt>
+
+   <dd><p>The attribute must return null on getting and must throw an
+   <code>INVALID_ACCESS_ERR</code> exception on setting.</p>
+
+
+   <dt>If the element has an <code title="attr-itemscope">itemscope</code> attribute</dt>
+
+   <dd><p>The attribute must return the element itself on getting and
+   must throw an <code>INVALID_ACCESS_ERR</code> exception on
+   setting.</p>
+
+
    <dt>If the element is a <code>meta</code> element</dt>
 
    <dd><p>The attribute must act as it would if it was <span
@@ -50109,6 +50128,13 @@
 
   </dl> 
 
+  <p>When the <code title="dom-itemValue">itemValue</code> IDL
+  attribute is <span title="reflect">reflecting</span> a content
+  attribute or acting like the element's <code>textContent</code>
+  attribute, the user agent must, on setting, convert the new value to
+  the IDL <code title="">DOMString</code> value before using it
+  according to the mappings described above.</p>
+
   </div>
 
 
@@ -53313,7 +53339,7 @@
     calendar += 'UID:' + node.itemId + '\r\n';
   for (var propIndex = 0; propIndex < node.properties.length; propIndex += 1) {
     var prop = node.properties[propIndex];
-    var value = prop.contents;
+    var value = prop.itemValue;
     var parameters = '';
     if (prop.localName == 'time') {
       value = value.replace(/[:-]/g, '');

Modified: vocabs-index
===================================================================
--- vocabs-index	2009-10-14 11:05:03 UTC (rev 4139)
+++ vocabs-index	2009-10-14 11:35:35 UTC (rev 4140)
@@ -47,7 +47,7 @@
 
   <header class="head"><p><a class="logo" href="http://www.whatwg.org/" rel="home"><img alt="WHATWG" src="/images/logo"></a></p>
    <hgroup><h1>Microdata Vocabularies: vCard, vEvent, and works</h1>
-    <h2 class="no-num no-toc">Draft Standard — 9 October 2009</h2>
+    <h2 class="no-num no-toc">Draft Standard — 14 October 2009</h2>
    </hgroup><p>You can take part in this work. <a href="http://www.whatwg.org/mailing-list">Join the working group's discussion list.</a></p>
    <dl><dt>This specification:</dt>
     <dd><a href="http://www.whatwg.org/specs/web-apps/current-work/">http://www.whatwg.org/specs/web-apps/current-work/</a></dd>
@@ -2627,7 +2627,7 @@
     calendar += 'UID:' + node.itemId + '\r\n';
   for (var propIndex = 0; propIndex < node.properties.length; propIndex += 1) {
     var prop = node.properties[propIndex];
-    var value = prop.contents;
+    var value = prop.itemValue;
     var parameters = '';
     if (prop.localName == 'time') {
       value = value.replace(/[:-]/g, '');




More information about the Commit-Watchers mailing list