[html5] r6916 - [e] (0) s/raised/thrown/ for consistency with DOM Core Affected topics: Canvas, [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Jan 25 14:50:51 PST 2012


Author: ianh
Date: 2012-01-25 14:50:50 -0800 (Wed, 25 Jan 2012)
New Revision: 6916

Modified:
   complete.html
   index
   source
Log:
[e] (0) s/raised/thrown/ for consistency with DOM Core
Affected topics: Canvas, DOM APIs, HTML, Video and Audio, Web Workers

Modified: complete.html
===================================================================
--- complete.html	2012-01-25 22:49:03 UTC (rev 6915)
+++ complete.html	2012-01-25 22:50:50 UTC (rev 6916)
@@ -3954,12 +3954,12 @@
     <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
@@ -31350,7 +31350,7 @@
   <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
@@ -33695,7 +33695,7 @@
   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
@@ -35347,9 +35347,9 @@
   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 <color>
+  <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 <color>
   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 <color> value. If multiple stops are added at the same
@@ -35384,9 +35384,9 @@
   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>
 
@@ -37307,7 +37307,7 @@
   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>
@@ -38845,7 +38845,7 @@
   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
@@ -38868,7 +38868,7 @@
   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>
@@ -38895,7 +38895,7 @@
   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>
@@ -68040,7 +68040,7 @@
 
       <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>
@@ -68069,7 +68069,7 @@
       <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>
 
@@ -69862,7 +69862,7 @@
   <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>
 
@@ -76409,7 +76409,7 @@
       <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>

Modified: index
===================================================================
--- index	2012-01-25 22:49:03 UTC (rev 6915)
+++ index	2012-01-25 22:50:50 UTC (rev 6916)
@@ -3954,12 +3954,12 @@
     <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
@@ -31350,7 +31350,7 @@
   <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
@@ -33695,7 +33695,7 @@
   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
@@ -35347,9 +35347,9 @@
   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 <color>
+  <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 <color>
   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 <color> value. If multiple stops are added at the same
@@ -35384,9 +35384,9 @@
   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>
 
@@ -37307,7 +37307,7 @@
   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>
@@ -38845,7 +38845,7 @@
   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
@@ -38868,7 +38868,7 @@
   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>
@@ -38895,7 +38895,7 @@
   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>
@@ -68040,7 +68040,7 @@
 
       <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>
@@ -68069,7 +68069,7 @@
       <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>
 
@@ -69862,7 +69862,7 @@
   <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>
 
@@ -76409,7 +76409,7 @@
       <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>

Modified: source
===================================================================
--- source	2012-01-25 22:49:03 UTC (rev 6915)
+++ source	2012-01-25 22:50:50 UTC (rev 6916)
@@ -2918,12 +2918,12 @@
     attribute that is a floating point number type (<code
     title="">double</code>) is assigned an Infinity or Not-a-Number
     (NaN) value, a <code>NotSupportedError</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>NotSupportedError</code> exception must be raised.</p>
+    <code>NotSupportedError</code> exception must be thrown.</p>
 
     <p>When this specification requires a user agent to <dfn>create a
     <code>Date</code> object</dfn> representing a particular time, the
@@ -34207,7 +34207,7 @@
   <code title="event-MediaController-volumechange">volumechange</code>
   at the <code>MediaController</code>. If the new value is outside the
   range 0.0 to 1.0 inclusive, then, on setting, an
-  <code>IndexSizeError</code> exception must be raised instead.</p>
+  <code>IndexSizeError</code> exception must be thrown instead.</p>
 
   <p>The <dfn
   title="dom-MediaController-muted"><code>muted</code></dfn>
@@ -39193,7 +39193,7 @@
   volume of any audio portions of the <span>media element</span> 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>IndexSizeError</code>
-  exception must be raised instead.</p>
+  exception must be thrown instead.</p>
 
   <p>The <dfn title="dom-media-muted"><code>muted</code></dfn>
   attribute must return true if the audio output is muted and false
@@ -41137,10 +41137,10 @@
   method on the <code>CanvasGradient</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>IndexSizeError</code> exception must be raised. If the <var
+  <code>IndexSizeError</code> exception must be thrown. If the <var
   title="">color</var> cannot be <span>parsed as a CSS <color>
   value</span>, then a <code>SyntaxError</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 <color> value. If multiple stops are added at the same
@@ -41188,9 +41188,9 @@
   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>NotSupportedError</code> exception must be raised. If either
+  <code>NotSupportedError</code> exception must be thrown. If either
   of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code>IndexSizeError</code> exception must be raised. Otherwise,
+  <code>IndexSizeError</code> exception must be thrown. Otherwise,
   the method must return a radial <code>CanvasGradient</code>
   initialized with the two specified circles.</p>
 
@@ -43500,7 +43500,7 @@
   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
+  paragraphs, cause an exception to be thrown, the <code
   title="dom-context-2d-putImageData">putImageData()</code> method
   must act as follows:</p>
 
@@ -45311,7 +45311,7 @@
   value must be inserted as the first node of the <code>table</code>
   element. If the new value is not a <code>caption</code> element,
   then a <code>HierarchyRequestError</code> DOM exception must be
-  raised instead.</p>
+  thrown instead.</p>
 
   <p>The <dfn
   title="dom-table-createCaption"><code>createCaption()</code></dfn>
@@ -45336,7 +45336,7 @@
   element nor a <code>colgroup</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>thead</code> element, then a
-  <code>HierarchyRequestError</code> DOM exception must be raised
+  <code>HierarchyRequestError</code> DOM exception must be thrown
   instead.</p>
 
   <p>The <dfn
@@ -45365,7 +45365,7 @@
   element, a <code>colgroup</code> element, nor a <code>thead</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>tfoot</code> element, then
-  a <code>HierarchyRequestError</code> DOM exception must be raised
+  a <code>HierarchyRequestError</code> DOM exception must be thrown
   instead.</p>
 
   <p>The <dfn
@@ -79574,7 +79574,7 @@
       <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>
 
@@ -79604,7 +79604,7 @@
       <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>
 
@@ -81680,7 +81680,7 @@
   <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>
 
@@ -88590,7 +88590,7 @@
       <code>SyntaxError</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




More information about the Commit-Watchers mailing list