[html5] r6101 - [giow] (0) sequence<T> is not to be used for IDL attributes, so change .values t [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri May 6 12:42:16 PDT 2011
Author: ianh
Date: 2011-05-06 12:42:12 -0700 (Fri, 06 May 2011)
New Revision: 6101
Modified:
complete.html
index
source
Log:
[giow] (0) sequence<T> is not to be used for IDL attributes, so change .values to a method
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12286
Modified: complete.html
===================================================================
--- complete.html 2011-05-06 19:34:47 UTC (rev 6100)
+++ complete.html 2011-05-06 19:42:12 UTC (rev 6101)
@@ -7874,7 +7874,7 @@
typedef sequence<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <a href=#nodelist>NodeList</a> {
- 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><a href=#dom-htmlcollection-length>length</a></code></dt>
@@ -7902,7 +7902,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>
@@ -7936,11 +7936,12 @@
from the <code><a href=#nodelist>NodeList</a></code> interface must behave as they would
on a <code><a href=#nodelist>NodeList</a></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>
@@ -55570,8 +55571,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 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.</p>
+ 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.</p>
<div class=example>
@@ -55580,7 +55581,7 @@
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.';
Modified: index
===================================================================
--- index 2011-05-06 19:34:47 UTC (rev 6100)
+++ index 2011-05-06 19:42:12 UTC (rev 6101)
@@ -7899,7 +7899,7 @@
typedef sequence<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <a href=#nodelist>NodeList</a> {
- 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><a href=#dom-htmlcollection-length>length</a></code></dt>
@@ -7927,7 +7927,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>
@@ -7961,11 +7961,12 @@
from the <code><a href=#nodelist>NodeList</a></code> interface must behave as they would
on a <code><a href=#nodelist>NodeList</a></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>
@@ -55598,8 +55599,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 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.</p>
+ 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.</p>
<div class=example>
@@ -55608,7 +55609,7 @@
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.';
Modified: source
===================================================================
--- source 2011-05-06 19:34:47 UTC (rev 6100)
+++ source 2011-05-06 19:42:12 UTC (rev 6101)
@@ -7817,7 +7817,7 @@
typedef sequence<any> <dfn>PropertyValueArray</dfn>;
interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {
- readonly attribute <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-values">values</span>;
+ <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-getValues">getValues</span>();
};</pre>
<dl class="domintro">
@@ -7847,7 +7847,7 @@
<p>Returns a <code>DOMStringList</code> with the <span>property names</span> of the elements in the collection.</p>
</dd>
- <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-values">values</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>
@@ -7892,12 +7892,12 @@
on a <code>NodeList</code> object.</p>
<p>The <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-itemValue">itemValue</code> DOM property of each of the
- elements represented by the object, in <span>tree order</span>.</p>
+ title="dom-PropertyNodeList-getValues"><code>getValues</code></dfn>
+ method the <code>PropertyNodeList</code> object must return a newly
+ constructed array whose values are the 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>
<!--END microdata-->
@@ -62775,8 +62775,8 @@
object with all the matching properties. The
<code>PropertyNodeList</code> object can be used to obtain all the
values at once using <em>its</em> <code
- title="dom-PropertyNodeList-values">values</code> attribute, which
- returns an array of all the values.</p>
+ title="dom-PropertyNodeList-getValues">getValues</code> method,
+ which returns an array of all the values.</p>
<div class="example">
@@ -62785,7 +62785,7 @@
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.';
More information about the Commit-Watchers
mailing list