Skip to content

Commit

Permalink
[] (0) Rename PropertyNodeList.content to .contents to avoid confusio…
Browse files Browse the repository at this point in the history
…n with HTMLElement.content.

git-svn-id: http://svn.whatwg.org/webapps@3435 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 17, 2009
1 parent 12049e7 commit 3524fa8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions index
Expand Up @@ -5830,7 +5830,7 @@ interface <dfn id=htmlpropertycollection-0>HTMLPropertyCollection</dfn> {
typedef sequence&lt;any&gt; <dfn id=propertyvaluearray>PropertyValueArray</dfn>;

interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span> {
attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-content title=dom-PropertyNodeList-content>content</a>;
attribute <a href=#propertyvaluearray>PropertyValueArray</a> <a href=#dom-propertynodelist-contents title=dom-PropertyNodeList-contents>contents</a>;
};</pre>

<dl class=domintro><dt><var title="">collection</var> . <code title=dom-HTMLPropertyCollection-length><a href=#dom-htmlpropertycollection-length>length</a></code></dt>
Expand All @@ -5857,7 +5857,7 @@ interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span
<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> . <var title="">content</var></dt>
<dt><var title="">propertyNodeList</var> . <code title=dom-PropertyNodeList-contents><a href=#dom-propertynodelist-contents>contents</a></code></dt>
<dd>
<p>Returns an array of the various values that the relevant elements have.</p>
</dd>
Expand Down Expand Up @@ -5903,7 +5903,7 @@ interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span
inherited from the <code>NodeList</code> interface must behave as
they would on a <code>NodeList</code> object.</p>

<p>The <dfn id=dom-propertynodelist-content title=dom-PropertyNodeList-content><code>content</code></dfn> DOM
<p>The <dfn id=dom-propertynodelist-contents title=dom-PropertyNodeList-contents><code>contents</code></dfn> DOM
attribute on the <code><a href=#propertynodelist>PropertyNodeList</a></code> object, on getting,
must return a newly constructed <code>DOMStringArray</code> 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
Expand Down Expand Up @@ -41331,8 +41331,8 @@ alert('Hello ' + user.properties['net.example.name'][0].content + '!');</pre>
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-content><a href=#dom-propertynodelist-content>content</a></code> attribute, which
returns an array of all the values.</p>
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>

<div class=example>

Expand All @@ -41341,7 +41341,7 @@ alert('Hello ' + user.properties['net.example.name'][0].content + '!');</pre>
item and then lists all its values.</p>

<pre>var cat = getItems('com.example.feline')[0];
var colors = cat.properties['com.example.color'].content;
var colors = cat.properties['com.example.color'].contents;
var result;
if (colors.length == 0) {
result = 'Color unknown.';
Expand Down Expand Up @@ -43442,7 +43442,7 @@ document.body.appendChild(outer);</pre>
var calendar = 'BEGIN:VCALENDAR\r\nPRODID:HTML\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\nDTSTAMP:' + stampString + '\r\n';
for (var propIndex = 0; propIndex &lt; node.properties.length; propIndex += 1) {
var prop = node.properties[propIndex];
var value = prop.content;
var value = prop.contents;
var parameters = '';
if (prop.localName == 'time') {
value = value.replace(/[:-]/g, '');
Expand Down
14 changes: 7 additions & 7 deletions source
Expand Up @@ -5684,7 +5684,7 @@ interface <dfn>HTMLPropertyCollection</dfn> {
typedef sequence&lt;any> <dfn>PropertyValueArray</dfn>;

interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {
attribute <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-content">content</span>;
attribute <span>PropertyValueArray</span> <span title="dom-PropertyNodeList-contents">contents</span>;
};</pre>

<dl class="domintro">
Expand Down Expand Up @@ -5713,7 +5713,7 @@ interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {
<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> . <var title="">content</var></dt>
<dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-contents">contents</code></dt>
<dd>
<p>Returns an array of the various values that the relevant elements have.</p>
</dd>
Expand Down Expand Up @@ -5774,7 +5774,7 @@ interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {
they would on a <code>NodeList</code> object.</p>

<p>The <dfn
title="dom-PropertyNodeList-content"><code>content</code></dfn> DOM
title="dom-PropertyNodeList-contents"><code>contents</code></dfn> DOM
attribute on the <code>PropertyNodeList</code> object, on getting,
must return a newly constructed <code>DOMStringArray</code> whose
values are the values obtained from the <code
Expand Down Expand Up @@ -46523,8 +46523,8 @@ alert('Hello ' + user.properties['net.example.name'][0].content + '!');</pre>
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-content">content</code> attribute, which
returns an array of all the values.</p>
title="dom-PropertyNodeList-contents">contents</code> attribute,
which returns an array of all the values.</p>

<div class="example">

Expand All @@ -46533,7 +46533,7 @@ alert('Hello ' + user.properties['net.example.name'][0].content + '!');</pre>
item and then lists all its values.</p>

<pre>var cat = getItems('com.example.feline')[0];
var colors = cat.properties['com.example.color'].content;
var colors = cat.properties['com.example.color'].contents;
var result;
if (colors.length == 0) {
result = 'Color unknown.';
Expand Down Expand Up @@ -49043,7 +49043,7 @@ document.body.appendChild(outer);</pre>
var calendar = 'BEGIN:VCALENDAR\r\nPRODID:HTML\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\nDTSTAMP:' + stampString + '\r\n';
for (var propIndex = 0; propIndex &lt; node.properties.length; propIndex += 1) {
var prop = node.properties[propIndex];
var value = prop.content;
var value = prop.contents;
var parameters = '';
if (prop.localName == 'time') {
value = value.replace(/[:-]/g, '');
Expand Down

0 comments on commit 3524fa8

Please sign in to comment.