Skip to content

Commit

Permalink
[e] (0) Cross-ref instances of 'the method of the same name'.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20042
Affected topics: DOM APIs, HTML, Workers

git-svn-id: http://svn.whatwg.org/webapps@7692 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 5, 2013
1 parent 2c01f93 commit 474e0b0
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 77 deletions.
65 changes: 37 additions & 28 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 4 February 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 February 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -4029,7 +4029,9 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface</li>
<li><dfn id=text><code>Text</code></dfn> interface</li>

<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface, and the terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn></li>
<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface</li>
<li><dfn id=dom-htmlcollection-item title=dom-HTMLCollection-item><code>item()</code> method</dfn>
<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn></li>

<li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface</li>
<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface</li>
Expand Down Expand Up @@ -8662,7 +8664,7 @@ <h5 id=htmlallcollection-0><span class=secno>2.7.2.1 </span>HTMLAllCollection</h
legacy <code title=dom-document-all><a href=#dom-document-all>document.all</a></code> attribute.</p>

<pre class=idl>interface <dfn id=htmlallcollection>HTMLAllCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
// inherits <span title=dom-HTMLCollection-length>length</span> and <span title=dom-HTMLCollection-item>item</span>(unsigned long index)
// inherits <span title=dom-HTMLCollection-length>length</span> and <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>(unsigned long index)
object? <a href=#dom-htmlallcollection-item-string title=dom-HTMLAllCollection-item-string>item</a>(DOMString name);
legacycaller getter object? <a href=#dom-htmlallcollection-nameditem title=dom-HTMLAllCollection-namedItem>namedItem</a>(DOMString name); // overrides inherited namedItem()
<a href=#htmlallcollection>HTMLAllCollection</a> <a href=#dom-htmlallcollection-tags title=dom-HTMLAllCollection-tags>tags</a>(DOMString tagName);
Expand All @@ -8673,7 +8675,7 @@ <h5 id=htmlallcollection-0><span class=secno>2.7.2.1 </span>HTMLAllCollection</h
<p>Returns the number of elements in the collection.</p>
</dd>

<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item>item</code>(<var title="">index</var>)</dt>
<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item><a href=#dom-htmlcollection-item>item</a></code>(<var title="">index</var>)</dt>
<dt><var title="">collection</var>[<var title="">index</var>]</dt>
<dt><var title="">collection</var>(<var title="">index</var>)</dt>
<dd>
Expand Down Expand Up @@ -8752,7 +8754,7 @@ <h5 id=htmlformcontrolscollection-0><span class=secno>2.7.2.2 </span>HTMLFormCon
<code><a href=#the-fieldset-element>fieldset</a></code> elements.</p>

<pre class=idl>interface <dfn id=htmlformcontrolscollection>HTMLFormControlsCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
// inherits <span title=dom-HTMLCollection-length>length</span> and <span title=dom-HTMLCollection-item>item</span>()
// inherits <span title=dom-HTMLCollection-length>length</span> and <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>()
legacycaller getter object? <a href=#dom-htmlformcontrolscollection-nameditem title=dom-HTMLFormControlsCollection-namedItem>namedItem</a>(DOMString name); // overrides inherited namedItem()
};

Expand All @@ -8765,7 +8767,7 @@ <h5 id=htmlformcontrolscollection-0><span class=secno>2.7.2.2 </span>HTMLFormCon
<p>Returns the number of elements in the collection.</p>
</dd>

<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item>item</code>(<var title="">index</var>)</dt>
<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item><a href=#dom-htmlcollection-item>item</a></code>(<var title="">index</var>)</dt>
<dt><var title="">collection</var>[<var title="">index</var>]</dt>
<dt><var title="">collection</var>(<var title="">index</var>)</dt>
<dd>
Expand Down Expand Up @@ -8849,7 +8851,7 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.3 </span>HTMLOptionsColle
attributes and methods that manipulate that element's descendants.</p>

<pre class=idl>interface <dfn id=htmloptionscollection>HTMLOptionsCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
// inherits <span title=dom-HTMLCollection-item>item</span>()
// inherits <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>()
attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>; // overrides inherited length
legacycaller getter object? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // overrides inherited namedItem()
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);
Expand All @@ -8865,7 +8867,7 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.3 </span>HTMLOptionsColle
<p>When set to a greater number, adds new blank <code><a href=#the-option-element>option</a></code> elements to that container.</p>
</dd>

<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item>item</code>(<var title="">index</var>)</dt>
<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item><a href=#dom-htmlcollection-item>item</a></code>(<var title="">index</var>)</dt>
<dt><var title="">collection</var>[<var title="">index</var>]</dt>
<dt><var title="">collection</var>(<var title="">index</var>)</dt>
<dd>
Expand Down Expand Up @@ -9005,7 +9007,7 @@ <h5 id=htmlpropertiescollection-0><span class=secno>2.7.2.4 </span>HTMLPropertie
<a href=#concept-item title=concept-item>item</a> in the <a href=#microdata>microdata</a> model.</p>

<pre class=idl>interface <dfn id=htmlpropertiescollection>HTMLPropertiesCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
// inherits <span title=dom-HTMLCollection-length>length</span> and <span title=dom-HTMLCollection-item>item</span>()
// inherits <span title=dom-HTMLCollection-length>length</span> and <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>()
getter <a href=#propertynodelist>PropertyNodeList</a>? <a href=#dom-htmlpropertiescollection-nameditem title=dom-HTMLPropertiesCollection-namedItem>namedItem</a>(DOMString name); // overrides inherited namedItem()
readonly attribute DOMString[] <a href=#dom-htmlpropertiescollection-names title=dom-HTMLPropertiesCollection-names>names</a>;
};
Expand All @@ -9021,7 +9023,7 @@ <h5 id=htmlpropertiescollection-0><span class=secno>2.7.2.4 </span>HTMLPropertie
<p>Returns the number of elements in the collection.</p>
</dd>

<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item>item</code>(<var title="">index</var>)</dt>
<dt><var title="">element</var> = <var title="">collection</var> . <code title=dom-HTMLCollection-item><a href=#dom-htmlcollection-item>item</a></code>(<var title="">index</var>)</dt>
<dt><var title="">collection</var>[<var title="">index</var>]</dt>
<dd>
<p>Returns the element with index <var title="">index</var> from the collection. The items are sorted in <a href=#tree-order>tree order</a>.</p>
Expand Down Expand Up @@ -52109,11 +52111,12 @@ <h4 id=the-select-element><span class=secno>4.10.9 </span>The <dfn><code>select<
number of nodes <a href=#represented-by-the-collection title="represented by the collection">represented</a> by the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection. On setting, it must act like the attribute
of the same name on the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection.</p>

<!--CLEANUP-->
<p>The <dfn id=dom-select-item title=dom-select-item><code>item(<var title="">index</var>)</code></dfn> method must
return the value returned by the method of the same name on the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection, when invoked with the same argument.</p>
return the value returned by <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>the method of the same name</a> on the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection, when invoked with the same argument.</p>

<p>The <dfn id=dom-select-nameditem title=dom-select-namedItem><code>namedItem(<var title="">name</var>)</code></dfn>
method must return the value returned by the method of the same name on the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection, when invoked with the same argument.</p>
method must return the value returned by <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>the method of the same name</a> on the <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection, when invoked with the same argument.</p>

<p>When the user agent is to <dfn id=dom-htmlselectelement-setter title=dom-HTMLSelectElement-setter>set the value of a new
indexed property</dfn> for a given property index <var title="">index</var> to a new value <var title="">value</var>, it must instead <a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>set the value
Expand Down Expand Up @@ -81093,7 +81096,6 @@ <h5 id=the-workerglobalscope-common-interface><span class=secno>9.2.1.1 </span>T
<code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location></a></code> attribute.</p>



<h5 id=dedicated-workers-and-the-dedicatedworkerglobalscope-interface><span class=secno>9.2.1.2 </span>Dedicated workers and the <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> interface</h5>

<pre class=idl>interface <dfn id=dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</dfn> : <a href=#workerglobalscope>WorkerGlobalScope</a> {
Expand All @@ -81116,14 +81118,18 @@ <h5 id=dedicated-workers-and-the-dedicatedworkerglobalscope-interface><span clas
<p>All messages received by that port must immediately be retargeted
at the <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> object.</p>

<p>The <dfn id=dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage><code>postMessage()</code></dfn><!--
and <dfn
title="dom-DedicatedWorkerGlobalScope-startConversation"><code>startConversation()</code></dfn>-->
method<!--s (startConversation)--> on
<code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> objects must act as if, when
invoked, it<!--/they (startConversation)--> immediately invoked the
method of the same name on the port, with the same arguments, and
returned the same return value.</p>
<p>The <dfn id=dom-dedicatedworkerglobalscope-postmessage title=dom-DedicatedWorkerGlobalScope-postMessage><code>postMessage()</code></dfn>
method on <code><a href=#dedicatedworkerglobalscope>DedicatedWorkerGlobalScope</a></code> objects must act as if, when invoked, it
immediately invoked <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>the method of the same name</a>
on the port, with the same arguments, and returned the same return value.</p>

<!--
<p>Similarly, the <dfn
title="dom-DedicatedWorkerGlobalScope-startConversation"><code>startConversation()</code></dfn>
method on <code>DedicatedWorkerGlobalScope</code> objects must act as if, when invoked, it
immediately invoked <span title="dom-MessagePort-startConversation">the method of the same
name</span> on the port, with the same arguments, and returned the same return value.</p>
-->

<p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
Expand Down Expand Up @@ -81692,13 +81698,16 @@ <h5 id=the-abstractworker-abstract-interface><span class=secno>9.2.6.1 </span>Th
<p>All messages received by that port must immediately be retargeted
at the <code><a href=#worker>Worker</a></code> object.</p>

<p>The <dfn id=dom-worker-postmessage title=dom-Worker-postMessage><code>postMessage()</code></dfn><!--
and <dfn
title="dom-Worker-startConversation"><code>startConversation()</code></dfn>-->
method<!--s (startConversation)--> on <code><a href=#worker>Worker</a></code> objects
must act as if, when invoked, it<!--/they (startConversation)-->
immediately invoked the method of the same name on the port, with
the same arguments, and returned the same return value.</p>
<p>The <dfn id=dom-worker-postmessage title=dom-Worker-postMessage><code>postMessage()</code></dfn> method on
<code><a href=#worker>Worker</a></code> objects must act as if, when invoked, it immediately invoked <a href=#dom-messageport-postmessage title=dom-MessagePort-postMessage>the method of the same name</a> on the port, with the same
arguments, and returned the same return value.</p>

<!--
<p>Similarly, the <dfn title="dom-Worker-startConversation"><code>startConversation()</code></dfn>
method on <code>Worker</code> objects must act as if, when invoked, it immediately invoked <span
title="dom-MessagePort-startConversation">the method of the same name</span> on the port, with the
same arguments, and returned the same return value.</p>
-->

<div class=example>

Expand Down
Loading

0 comments on commit 474e0b0

Please sign in to comment.