W3C home > Mailing lists > Public > public-html-commits@w3.org > May 2011

html5/md Overview.html,1.125,1.126

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 06 May 2011 19:42:21 +0000
To: public-html-commits@w3.org
Message-Id: <E1QIQur-0007Ki-T1@lionel-hutz.w3.org>
Update of /sources/public/html5/md
In directory hutz:/tmp/cvs-serv28170

Modified Files:
	Overview.html 
Log Message:
sequence<T> is not to be used for IDL attributes, so change .values to a method (whatwg r6101)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/md/Overview.html,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- Overview.html	4 May 2011 23:38:11 -0000	1.125
+++ Overview.html	6 May 2011 19:42:19 -0000	1.126
@@ -340,7 +340,7 @@
 
    <h1>HTML Microdata</h1>
    <h2 class="no-num no-toc" id="generatedID"></h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-4-may-2011">Editor's Draft 4 May 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-6-may-2011">Editor's Draft 6 May 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/microdata/">http://www.w3.org/TR/microdata/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -471,7 +471,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 4 May 2011 Editor's Draft.
+  This specification is the 6 May 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -583,7 +583,7 @@
 typedef sequence&lt;any&gt; <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-values" title="dom-PropertyNodeList-values">values</a>;
+  <a href="#propertyvaluearray">PropertyValueArray</a> <a href="#dom-propertynodelist-getvalues" title="dom-PropertyNodeList-getValues">getValues</a>();
 };</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length">length</code></dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
@@ -609,7 +609,7 @@
     <p>Returns a <code>DOMStringList</code> with the <a href="#property-names">property names</a> of the elements in the collection.</p>
    </dd>
 
-   <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-values"><a href="#dom-propertynodelist-values">values</a></code></dt>
+   <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-getVlues">getValues</code>()</dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
    </dd>
@@ -643,11 +643,12 @@
   from the <code>NodeList</code> interface must behave as they would
   on a <code>NodeList</code> object.</p>
 
-  <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-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>
+  <p>The <dfn id="dom-propertynodelist-getvalues" title="dom-PropertyNodeList-getValues"><code>getValues</code></dfn>
+  method the <code><a href="#propertynodelist">PropertyNodeList</a></code> object must return a newly
+  constructed array whose values are the 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><h2 id="introduction"><span class="secno">2 </span>Introduction</h2><h3 id="overview"><span class="secno">2.1 </span>Overview</h3><p><i>This section is non-normative.</i><p>Sometimes, it is desirable to annotate content with specific
   machine-readable labels, e.g. to allow generic scripts to provide
@@ -953,15 +954,15 @@
   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 obtain all the
-  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.<div class="example">
+  values at once using <em>its</em> <code title="dom-PropertyNodeList-getValues"><a href="#dom-propertynodelist-getvalues">getValues</a></code> method,
+  which returns an array of all the values.<div class="example">
 
    <p>In an earlier example, a "http://example.org/animals#cat" item had two
    "http://example.com/color" values. This script looks up the first such
    item and then lists all its values.</p>
 
    <pre>var cat = document.getItems('http://example.org/animals#cat')[0];
-var colors = cat.properties['http://example.com/color'].values;
+var colors = cat.properties['http://example.com/color'].getValues();
 var result;
 if (colors.length == 0) {
   result = 'Color unknown.';
Received on Friday, 6 May 2011 19:42:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 6 May 2011 19:42:23 GMT