Skip to content

Commit

Permalink
[e] (0) Try to clarify what this sections means and make it more cons…
Browse files Browse the repository at this point in the history
…istent with itself, WebIDL, and JS.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21658
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7876 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 31, 2013
1 parent 3a76c53 commit 8d040b3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
19 changes: 12 additions & 7 deletions complete.html
Expand Up @@ -256,7 +256,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 30 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 31 May 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 @@ -8046,15 +8046,15 @@ <h4 id=safe-passing-of-structured-data><span class=secno>2.7.6 </span>Safe passi
<p>The <var title="">input</var> value is an object. Jump to the
appropriate step below:</p>

<dl class=switch><dt>If <var title="">input</var> is a Boolean object</dt>
<dl class=switch><dt>If <var title="">input</var> is a <code>Boolean</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Boolean object with the same value as <var title="">input</var>.</dd>

<dt>If <var title="">input</var> is a Number object</dt>
<dt>If <var title="">input</var> is a <code>Number</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Number object with the same value as <var title="">input</var>.</dd>

<dt>If <var title="">input</var> is a String object</dt>
<dt>If <var title="">input</var> is a <code>String</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed String object with the same value as <var title="">input</var>.</dd>

Expand Down Expand Up @@ -8108,7 +8108,7 @@ <h4 id=safe-passing-of-structured-data><span class=secno>2.7.6 </span>Safe passi
<dd><p>...</p></dd>
-->

<dt>If <var title="">input</var> is an Array object</dt>
<dt>If <var title="">input</var> is an <code>Array</code> object</dt>

<dd>

Expand All @@ -8121,7 +8121,7 @@ <h4 id=safe-passing-of-structured-data><span class=secno>2.7.6 </span>Safe passi

</dd>

<dt>If <var title="">input</var> is an Object object</dt>
<dt>If <var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</dd>

Expand All @@ -8135,7 +8135,12 @@ <h4 id=safe-passing-of-structured-data><span class=secno>2.7.6 </span>Safe passi
<dd><p>Throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and abort
the overall <a href=#structured-clone>structured clone</a> algorithm.</dd>

</dl></li>
</dl><p>For the purposes of the algorithm above, an object is a particular type of object <var title="">class</var> if its [[Class]] internal property is equal to <var title="">class</var>.</p>

<p class=example>For example, "<var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object" if
<var title="">input</var>'s [[Class]] internal property is equal to the string "<code title="">Class</code>".</p>

</li>

<li><p>Add a mapping from <var title="">input</var> (the source
object) to <var title="">output</var> (the destination object) to
Expand Down
19 changes: 12 additions & 7 deletions index
Expand Up @@ -256,7 +256,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 30 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 31 May 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 @@ -8046,15 +8046,15 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>
<p>The <var title="">input</var> value is an object. Jump to the
appropriate step below:</p>

<dl class=switch><dt>If <var title="">input</var> is a Boolean object</dt>
<dl class=switch><dt>If <var title="">input</var> is a <code>Boolean</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Boolean object with the same value as <var title="">input</var>.</dd>

<dt>If <var title="">input</var> is a Number object</dt>
<dt>If <var title="">input</var> is a <code>Number</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Number object with the same value as <var title="">input</var>.</dd>

<dt>If <var title="">input</var> is a String object</dt>
<dt>If <var title="">input</var> is a <code>String</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed String object with the same value as <var title="">input</var>.</dd>

Expand Down Expand Up @@ -8108,7 +8108,7 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>
<dd><p>...</p></dd>
-->

<dt>If <var title="">input</var> is an Array object</dt>
<dt>If <var title="">input</var> is an <code>Array</code> object</dt>

<dd>

Expand All @@ -8121,7 +8121,7 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>

</dd>

<dt>If <var title="">input</var> is an Object object</dt>
<dt>If <var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</dd>

Expand All @@ -8135,7 +8135,12 @@ interface <dfn id=transferable>Transferable</dfn> { };</pre>
<dd><p>Throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and abort
the overall <a href=#structured-clone>structured clone</a> algorithm.</dd>

</dl></li>
</dl><p>For the purposes of the algorithm above, an object is a particular type of object <var title="">class</var> if its [[Class]] internal property is equal to <var title="">class</var>.</p>

<p class=example>For example, "<var title="">input</var> is an <code><a href=#the-object-element>Object</a></code> object" if
<var title="">input</var>'s [[Class]] internal property is equal to the string "<code title="">Class</code>".</p>

</li>

<li><p>Add a mapping from <var title="">input</var> (the source
object) to <var title="">output</var> (the destination object) to
Expand Down
18 changes: 13 additions & 5 deletions source
Expand Up @@ -7700,15 +7700,15 @@ interface <dfn>Transferable</dfn> { };</pre>

<dl class="switch">

<dt>If <var title="">input</var> is a Boolean object</dt>
<dt>If <var title="">input</var> is a <code>Boolean</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Boolean object with the same value as <var title="">input</var>.</p></dd>

<dt>If <var title="">input</var> is a Number object</dt>
<dt>If <var title="">input</var> is a <code>Number</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed Number object with the same value as <var title="">input</var>.</p></dd>

<dt>If <var title="">input</var> is a String object</dt>
<dt>If <var title="">input</var> is a <code>String</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed String object with the same value as <var title="">input</var>.</p></dd>

Expand Down Expand Up @@ -7770,7 +7770,7 @@ interface <dfn>Transferable</dfn> { };</pre>
<dd><p>...</p></dd>
-->

<dt>If <var title="">input</var> is an Array object</dt>
<dt>If <var title="">input</var> is an <code>Array</code> object</dt>

<dd>

Expand All @@ -7784,7 +7784,7 @@ interface <dfn>Transferable</dfn> { };</pre>

</dd>

<dt>If <var title="">input</var> is an Object object</dt>
<dt>If <var title="">input</var> is an <code>Object</code> object</dt>

<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</p></dd>

Expand All @@ -7800,6 +7800,14 @@ interface <dfn>Transferable</dfn> { };</pre>

</dl>

<p>For the purposes of the algorithm above, an object is a particular type of object <var
title="">class</var> if its [[Class]] internal property is equal to <var
title="">class</var>.</p>

<p class="example">For example, "<var title="">input</var> is an <code>Object</code> object" if
<var title="">input</var>'s [[Class]] internal property is equal to the string "<code
title="">Class</code>".</p>

</li>

<li><p>Add a mapping from <var title="">input</var> (the source
Expand Down

0 comments on commit 8d040b3

Please sign in to comment.