Skip to content

Commit

Permalink
[e] (0) s/raised/thrown/ for consistency with DOM Core
Browse files Browse the repository at this point in the history
Affected topics: Canvas, DOM APIs, HTML, Video and Audio, Web Workers

git-svn-id: http://svn.whatwg.org/webapps@6916 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 25, 2012
1 parent 2e03ad0 commit 0bf93c0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
32 changes: 16 additions & 16 deletions complete.html
Expand Up @@ -3954,12 +3954,12 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
<p id=float-nan>Except where otherwise specified, if an IDL
attribute that is a floating point number type (<code title="">double</code>) is assigned an Infinity or Not-a-Number
(NaN) value, a <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be
raised.</p>
thrown.</p>

<p>Except where otherwise specified, if a method with an argument
that is a floating point number type (<code title="">double</code>)
is passed an Infinity or Not-a-Number (NaN) value, a
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised.</p>
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown.</p>

<p>When this specification requires a user agent to <dfn id=create-a-date-object>create a
<code>Date</code> object</dfn> representing a particular time, the
Expand Down Expand Up @@ -31350,7 +31350,7 @@ <h6 id=media-controllers><span class=secno>4.8.10.11.2 </span>Media controllers<
<code title=event-MediaController-volumechange><a href=#event-mediacontroller-volumechange>volumechange</a></code>
at the <code><a href=#mediacontroller>MediaController</a></code>. If the new value is outside the
range 0.0 to 1.0 inclusive, then, on setting, an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised instead.</p>
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown instead.</p>

<p>The <dfn id=dom-mediacontroller-muted title=dom-MediaController-muted><code>muted</code></dfn>
attribute, on getting, must return the
Expand Down Expand Up @@ -33695,7 +33695,7 @@ <h5 id=user-interface><span class=secno>4.8.10.13 </span>User interface</h5>
volume of any audio portions of the <a href=#media-element>media element</a> must
be set to the new value. If the new value is outside the range 0.0
to 1.0 inclusive, then, on setting, an <code><a href=#indexsizeerror>IndexSizeError</a></code>
exception must be raised instead.</p>
exception must be thrown instead.</p>

<p>The <dfn id=dom-media-muted title=dom-media-muted><code>muted</code></dfn>
attribute must return true if the audio output is muted and false
Expand Down Expand Up @@ -35347,9 +35347,9 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
method on the <code><a href=#canvasgradient>CanvasGradient</a></code> interface adds a new stop
to a gradient. If the <var title="">offset</var> is less than 0,
greater than 1, infinite, or NaN, then an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS &lt;color&gt;
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS &lt;color&gt;
value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code> exception must be
raised. Otherwise, the gradient must have a new stop placed, at
thrown. Otherwise, the gradient must have a new stop placed, at
offset <var title="">offset</var> relative to the whole gradient,
and with the color obtained by parsing <var title="">color</var> as
a CSS &lt;color&gt; value. If multiple stops are added at the same
Expand Down Expand Up @@ -35384,9 +35384,9 @@ <h6 id=colors-and-styles><span class=secno>4.8.11.1.4 </span>Colors and styles</
with origin (<var title="">x1</var>, <var title="">y1</var>) and
radius <var title="">r1</var>. The values are in coordinate space
units. If any of the arguments are infinite or NaN, a
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised. If either
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown. If either
of <var title="">r0</var> or <var title="">r1</var> are negative, an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. Otherwise,
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. Otherwise,
the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
initialized with the two specified circles.</p>

Expand Down Expand Up @@ -37307,7 +37307,7 @@ <h6 id=pixel-manipulation><span class=secno>4.8.11.1.11 </span><dfn>Pixel manipu
have the values 0, 0, the <code title=dom-imagedata-width><a href=#dom-imagedata-width>width</a></code> member of the <var title="">imagedata</var> structure, and the <code title=dom-imagedata-height><a href=#dom-imagedata-height>height</a></code> member of the <var title="">imagedata</var> structure, respectively.</p>

<p>When invoked with arguments that do not, per the last few
paragraphs, cause an exception to be raised, the <code title=dom-context-2d-putImageData><a href=#dom-context-2d-putimagedata>putImageData()</a></code> method
paragraphs, cause an exception to be thrown, the <code title=dom-context-2d-putImageData><a href=#dom-context-2d-putimagedata>putImageData()</a></code> method
must act as follows:</p>

<ol><li>
Expand Down Expand Up @@ -38845,7 +38845,7 @@ <h4 id=the-table-element><span class=secno>4.9.1 </span>The <dfn><code>table</co
value must be inserted as the first node of the <code><a href=#the-table-element>table</a></code>
element. If the new value is not a <code><a href=#the-caption-element>caption</a></code> element,
then a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be
raised instead.</p>
thrown instead.</p>

<p>The <dfn id=dom-table-createcaption title=dom-table-createCaption><code>createCaption()</code></dfn>
method must return the first <code><a href=#the-caption-element>caption</a></code> element child of
Expand All @@ -38868,7 +38868,7 @@ <h4 id=the-table-element><span class=secno>4.9.1 </span>The <dfn><code>table</co
element nor a <code><a href=#the-colgroup-element>colgroup</a></code> element, if any, or at the end
of the table if there are no such elements. If the new value is not
a <code><a href=#the-thead-element>thead</a></code> element, then a
<code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
<code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be thrown
instead.</p>

<p>The <dfn id=dom-table-createthead title=dom-table-createTHead><code>createTHead()</code></dfn>
Expand All @@ -38895,7 +38895,7 @@ <h4 id=the-table-element><span class=secno>4.9.1 </span>The <dfn><code>table</co
element, a <code><a href=#the-colgroup-element>colgroup</a></code> element, nor a <code><a href=#the-thead-element>thead</a></code>
element, if any, or at the end of the table if there are no such
elements. If the new value is not a <code><a href=#the-tfoot-element>tfoot</a></code> element, then
a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be thrown
instead.</p>

<p>The <dfn id=dom-table-createtfoot title=dom-table-createTFoot><code>createTFoot()</code></dfn>
Expand Down Expand Up @@ -68040,7 +68040,7 @@ <h4 id=javascript-protocol><span class=secno>7.1.5 </span><dfn title="javascript

<p>Let <var title="">result</var> be the return value of the
<i><a href=#initial-code-entry-point>initial code entry-point</a></i> of this <a href=#concept-script title=concept-script>script</a>. If an exception was
raised, let <var title="">result</var> be void instead. (The
thrown, let <var title="">result</var> be void instead. (The
result will be void also if <a href=#concept-bc-noscript title=concept-bc-noscript>scripting is disabled</a>.)</p>

<p>When it comes time to <a href="#set-the-document's-address">set the document's address</a>
Expand Down Expand Up @@ -68069,7 +68069,7 @@ <h4 id=javascript-protocol><span class=secno>7.1.5 </span><dfn title="javascript
<p>Let <var title="">result</var> be the return value of the
<i>initial code entry-point</i> of this <span
title="concept-script">script</span>. If an exception was
raised, let <var title="">result</var> be void instead. (The
thrown, let <var title="">result</var> be void instead. (The
result will be void also if <span
title="concept-bc-noscript">scripting is disabled</span>.)</p>

Expand Down Expand Up @@ -69862,7 +69862,7 @@ <h5 id=custom-handlers><span class=secno>7.5.1.2 </span>Custom scheme and conten
<p>The arguments to the methods have the following meanings and
corresponding implementation requirements. The requirements that
involve throwing exceptions must be processed in the order given
below, stopping at the first exception raised. (So the exceptions
below, stopping at the first exception thrown. (So the exceptions
for the first argument take precedence over the exceptions for the
second argument.)</p>

Expand Down Expand Up @@ -76409,7 +76409,7 @@ <h4 id=importing-scripts-and-libraries><span class=secno>9.3.1 </span>Importing
<code><a href=#syntaxerror>SyntaxError</a></code> exception and abort all these
steps. <a href=#refsECMA262>[ECMA262]</a></p>

<p>If an exception was raised or if the script was prematurely
<p>If an exception was thrown or if the script was prematurely
aborted, then abort all these steps, letting the exception or
aborting continue to be processed by the script that called the
<code title=dom-WorkerGlobalScope-importScripts><a href=#dom-workerglobalscope-importscripts>importScripts()</a></code>
Expand Down
32 changes: 16 additions & 16 deletions index
Expand Up @@ -3954,12 +3954,12 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p id=float-nan>Except where otherwise specified, if an IDL
attribute that is a floating point number type (<code title="">double</code>) is assigned an Infinity or Not-a-Number
(NaN) value, a <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be
raised.</p>
thrown.</p>

<p>Except where otherwise specified, if a method with an argument
that is a floating point number type (<code title="">double</code>)
is passed an Infinity or Not-a-Number (NaN) value, a
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised.</p>
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown.</p>

<p>When this specification requires a user agent to <dfn id=create-a-date-object>create a
<code>Date</code> object</dfn> representing a particular time, the
Expand Down Expand Up @@ -31350,7 +31350,7 @@ interface <dfn id=mediacontroller>MediaController</dfn> {
<code title=event-MediaController-volumechange><a href=#event-mediacontroller-volumechange>volumechange</a></code>
at the <code><a href=#mediacontroller>MediaController</a></code>. If the new value is outside the
range 0.0 to 1.0 inclusive, then, on setting, an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised instead.</p>
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown instead.</p>

<p>The <dfn id=dom-mediacontroller-muted title=dom-MediaController-muted><code>muted</code></dfn>
attribute, on getting, must return the
Expand Down Expand Up @@ -33695,7 +33695,7 @@ The General Relativistic Field Equations</pre>
volume of any audio portions of the <a href=#media-element>media element</a> must
be set to the new value. If the new value is outside the range 0.0
to 1.0 inclusive, then, on setting, an <code><a href=#indexsizeerror>IndexSizeError</a></code>
exception must be raised instead.</p>
exception must be thrown instead.</p>

<p>The <dfn id=dom-media-muted title=dom-media-muted><code>muted</code></dfn>
attribute must return true if the audio output is muted and false
Expand Down Expand Up @@ -35347,9 +35347,9 @@ idea from Mihai:
method on the <code><a href=#canvasgradient>CanvasGradient</a></code> interface adds a new stop
to a gradient. If the <var title="">offset</var> is less than 0,
greater than 1, infinite, or NaN, then an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS &lt;color&gt;
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS &lt;color&gt;
value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code> exception must be
raised. Otherwise, the gradient must have a new stop placed, at
thrown. Otherwise, the gradient must have a new stop placed, at
offset <var title="">offset</var> relative to the whole gradient,
and with the color obtained by parsing <var title="">color</var> as
a CSS &lt;color&gt; value. If multiple stops are added at the same
Expand Down Expand Up @@ -35384,9 +35384,9 @@ idea from Mihai:
with origin (<var title="">x1</var>, <var title="">y1</var>) and
radius <var title="">r1</var>. The values are in coordinate space
units. If any of the arguments are infinite or NaN, a
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised. If either
<code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown. If either
of <var title="">r0</var> or <var title="">r1</var> are negative, an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. Otherwise,
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. Otherwise,
the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
initialized with the two specified circles.</p>

Expand Down Expand Up @@ -37307,7 +37307,7 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
have the values 0, 0, the <code title=dom-imagedata-width><a href=#dom-imagedata-width>width</a></code> member of the <var title="">imagedata</var> structure, and the <code title=dom-imagedata-height><a href=#dom-imagedata-height>height</a></code> member of the <var title="">imagedata</var> structure, respectively.</p>

<p>When invoked with arguments that do not, per the last few
paragraphs, cause an exception to be raised, the <code title=dom-context-2d-putImageData><a href=#dom-context-2d-putimagedata>putImageData()</a></code> method
paragraphs, cause an exception to be thrown, the <code title=dom-context-2d-putImageData><a href=#dom-context-2d-putimagedata>putImageData()</a></code> method
must act as follows:</p>

<ol><li>
Expand Down Expand Up @@ -38845,7 +38845,7 @@ function AddCloud(data, x, y) { ... }</pre>
value must be inserted as the first node of the <code><a href=#the-table-element>table</a></code>
element. If the new value is not a <code><a href=#the-caption-element>caption</a></code> element,
then a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be
raised instead.</p>
thrown instead.</p>

<p>The <dfn id=dom-table-createcaption title=dom-table-createCaption><code>createCaption()</code></dfn>
method must return the first <code><a href=#the-caption-element>caption</a></code> element child of
Expand All @@ -38868,7 +38868,7 @@ function AddCloud(data, x, y) { ... }</pre>
element nor a <code><a href=#the-colgroup-element>colgroup</a></code> element, if any, or at the end
of the table if there are no such elements. If the new value is not
a <code><a href=#the-thead-element>thead</a></code> element, then a
<code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
<code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be thrown
instead.</p>

<p>The <dfn id=dom-table-createthead title=dom-table-createTHead><code>createTHead()</code></dfn>
Expand All @@ -38895,7 +38895,7 @@ function AddCloud(data, x, y) { ... }</pre>
element, a <code><a href=#the-colgroup-element>colgroup</a></code> element, nor a <code><a href=#the-thead-element>thead</a></code>
element, if any, or at the end of the table if there are no such
elements. If the new value is not a <code><a href=#the-tfoot-element>tfoot</a></code> element, then
a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be thrown
instead.</p>

<p>The <dfn id=dom-table-createtfoot title=dom-table-createTFoot><code>createTFoot()</code></dfn>
Expand Down Expand Up @@ -68040,7 +68040,7 @@ interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {

<p>Let <var title="">result</var> be the return value of the
<i><a href=#initial-code-entry-point>initial code entry-point</a></i> of this <a href=#concept-script title=concept-script>script</a>. If an exception was
raised, let <var title="">result</var> be void instead. (The
thrown, let <var title="">result</var> be void instead. (The
result will be void also if <a href=#concept-bc-noscript title=concept-bc-noscript>scripting is disabled</a>.)</p>

<p>When it comes time to <a href="#set-the-document's-address">set the document's address</a>
Expand Down Expand Up @@ -68069,7 +68069,7 @@ interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
<p>Let <var title="">result</var> be the return value of the
<i>initial code entry-point</i> of this <span
title="concept-script">script</span>. If an exception was
raised, let <var title="">result</var> be void instead. (The
thrown, let <var title="">result</var> be void instead. (The
result will be void also if <span
title="concept-bc-noscript">scripting is disabled</span>.)</p>

Expand Down Expand Up @@ -69862,7 +69862,7 @@ interface <dfn id=navigatorcontentutils>NavigatorContentUtils</dfn> {
<p>The arguments to the methods have the following meanings and
corresponding implementation requirements. The requirements that
involve throwing exceptions must be processed in the order given
below, stopping at the first exception raised. (So the exceptions
below, stopping at the first exception thrown. (So the exceptions
for the first argument take precedence over the exceptions for the
second argument.)</p>

Expand Down Expand Up @@ -76409,7 +76409,7 @@ interface <dfn id=workerutils>WorkerUtils</dfn> {
<code><a href=#syntaxerror>SyntaxError</a></code> exception and abort all these
steps. <a href=#refsECMA262>[ECMA262]</a></p>

<p>If an exception was raised or if the script was prematurely
<p>If an exception was thrown or if the script was prematurely
aborted, then abort all these steps, letting the exception or
aborting continue to be processed by the script that called the
<code title=dom-WorkerGlobalScope-importScripts><a href=#dom-workerglobalscope-importscripts>importScripts()</a></code>
Expand Down

0 comments on commit 0bf93c0

Please sign in to comment.