[html5] r6602 - [giow] (0) Exceptions DOM Core/WebIDL fix. Fixing http://www.w3.org/Bugs/Public/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 29 17:21:55 PDT 2011


Author: ianh
Date: 2011-09-29 17:21:53 -0700 (Thu, 29 Sep 2011)
New Revision: 6602

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Exceptions DOM Core/WebIDL fix.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13328

Modified: complete.html
===================================================================
--- complete.html	2011-09-29 23:57:18 UTC (rev 6601)
+++ complete.html	2011-09-30 00:21:53 UTC (rev 6602)
@@ -239,7 +239,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>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 29 September 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 30 September 2011</h2>
    </hgroup><dl><dt>Multiple-page version:</dt>
     <dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
     <dt>One-page version:</dt>
@@ -3805,50 +3805,39 @@
      <li>The algorithm to <dfn id=concept-node-clone title=concept-node-clone>clone</dfn> a <code><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext title=concept-node-clone-ext>cloning steps</dfn> used by tat algorithm</li>
      <li>The concept of <span>base URL change steps</span> and the definition of what happens when an element is <span>affected by a base URL change</span>.</li>
 
-    </ul><p>The following <code><a href=#domexception>DOMException</a></code> codes are defined in
-    the DOM Core specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
+    </ul><p>The term <dfn id=throw>throw</dfn> in this specification is used as
+    defined in the DOM Core specification. The following
+    <code><a href=#domexception>DOMException</a></code> types are defined in the DOM Core
+    specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
 
-    <ol class=brief><li value=1><dfn id=index_size_err><code>INDEX_SIZE_ERR</code></dfn></li>
-     <li value=2><dfn id=domstring_size_err><code>DOMSTRING_SIZE_ERR</code></dfn></li>
-     <li value=3><dfn id=hierarchy_request_err><code>HIERARCHY_REQUEST_ERR</code></dfn></li>
-     <li value=4><dfn id=wrong_document_err><code>WRONG_DOCUMENT_ERR</code></dfn></li>
-     <li value=5><dfn id=invalid_character_err><code>INVALID_CHARACTER_ERR</code></dfn></li>
-     <li value=6><dfn id=no_data_allowed_err><code>NO_DATA_ALLOWED_ERR</code></dfn></li>
-     <li value=7><dfn id=no_modification_allowed_err><code>NO_MODIFICATION_ALLOWED_ERR</code></dfn></li>
-     <li value=8><dfn id=not_found_err><code>NOT_FOUND_ERR</code></dfn></li>
-     <li value=9><dfn id=not_supported_err><code>NOT_SUPPORTED_ERR</code></dfn></li>
-     <li value=10><dfn id=inuse_attribute_err><code>INUSE_ATTRIBUTE_ERR</code></dfn></li>
-     <li value=11><dfn id=invalid_state_err><code>INVALID_STATE_ERR</code></dfn></li>
-     <li value=12><dfn id=syntax_err><code>SYNTAX_ERR</code></dfn></li>
-     <li value=13><dfn id=invalid_modification_err><code>INVALID_MODIFICATION_ERR</code></dfn></li>
-     <li value=14><dfn id=namespace_err><code>NAMESPACE_ERR</code></dfn></li>
-     <li value=15><dfn id=invalid_access_err><code>INVALID_ACCESS_ERR</code></dfn></li>
-     <li value=16><dfn id=validation_err><code>VALIDATION_ERR</code></dfn></li>
-     <li value=17><dfn id=type_mismatch_err><code>TYPE_MISMATCH_ERR</code></dfn></li>
-     <li value=18><dfn id=security_err><code>SECURITY_ERR</code></dfn></li>
-     <li value=19><dfn id=network_err><code>NETWORK_ERR</code></dfn></li>
-     <li value=20><dfn id=abort_err><code>ABORT_ERR</code></dfn></li>
-     <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li>
-     <li value=22><dfn id=quota_exceeded_err><code>QUOTA_EXCEEDED_ERR</code></dfn></li>
-     <li value=23><dfn id=timeout_err><code>TIMEOUT_ERR</code></dfn></li>
-     <li value=24><dfn id=invalid_node_type_err><code>INVALID_NODE_TYPE_ERR</code></dfn></li>
-     <li value=25><dfn id=data_clone_err><code>DATA_CLONE_ERR</code></dfn></li>
-  <!--
-     <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-     <li value="82"><dfn><code>SERIALIZE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-  -->
-    </ol><p>When this specification requires that a user agent <i>throw</i>
-    or <i>raise</i> an exception named using a code listed above, it
-    means that the user agent is required to create a
-    <code><a href=#domexception>DOMException</a></code> exception object configured to represent
-    the condition with the given code, then handle that object as a
-    thrown exception as defined in the JavaScript specification. <a href=#refsECMA262>[ECMA262]</a></p>
+    <ol class=brief><li value=1><dfn id=indexsizeerror><code>IndexSizeError</code></dfn></li>
+     <li value=3><dfn id=hierarchyrequesterror><code>HierarchyRequestError</code></dfn></li>
+     <li value=4><dfn id=wrongdocumenterror><code>WrongDocumentError</code></dfn></li>
+     <li value=5><dfn id=invalidcharactererror><code>InvalidCharacterError</code></dfn></li>
+     <li value=7><dfn id=nomodificationallowederror><code>NoModificationAllowedError</code></dfn></li>
+     <li value=8><dfn id=notfounderror><code>NotFoundError</code></dfn></li>
+     <li value=9><dfn id=notsupportederror><code>NotSupportedError</code></dfn></li>
+     <li value=11><dfn id=invalidstateerror><code>InvalidStateError</code></dfn></li>
+     <li value=12><dfn id=syntaxerror><code>SyntaxError</code></dfn></li>
+     <li value=13><dfn id=invalidmodificationerror><code>InvalidModificationError</code></dfn></li>
+     <li value=14><dfn id=namespaceerror><code>NamespaceError</code></dfn></li>
+     <li value=15><dfn id=invalidaccesserror><code>InvalidAccessError</code></dfn></li>
+     <li value=17><dfn id=typemismatcherror><code>TypeMismatchError</code></dfn></li>
+     <li value=18><dfn id=securityerror><code>SecurityError</code></dfn></li>
+     <li value=19><dfn id=networkerror><code>NetworkError</code></dfn></li>
+     <li value=20><dfn id=aborterror><code>AbortError</code></dfn></li>
+     <li value=21><dfn id=urlmismatcherror><code>URLMismatchError</code></dfn></li>
+     <li value=22><dfn id=quotaexceedederror><code>QuotaExceededError</code></dfn></li>
+     <li value=23><dfn id=timeouterror><code>TimeoutError</code></dfn></li>
+     <li value=24><dfn id=invalidnodetypeerror><code>InvalidNodeTypeError</code></dfn></li>
+     <li value=25><dfn id=datacloneerror><code>DataCloneError</code></dfn></li>
+    </ol><p class=example>For example, to <i>throw a
+    <code><a href=#timeouterror>TimeoutError</a></code> exception</i>, a user agent would
+    construct a <code><a href=#domexception>DOMException</a></code> object whose type was the
+    string "<code title="">TimeoutError</code>" (and whose code was
+    the number 23, for legacy reasons) and actually throw that object
+    as an exception.</p>
 
-    <p class=example>For example, to <i>throw a
-    <code><a href=#timeout_err>TIMEOUT_ERR</a></code> exception</i>, a user agent would
-    construct a <code><a href=#domexception>DOMException</a></code> object whose code was set to
-    23 and actually throw that object as an exception.</p>
-
     <p>The following features are defined in the DOM Events
     specification: <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
 
@@ -3919,13 +3908,13 @@
 
     <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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be
+    (NaN) value, a <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be
     raised.</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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised.</p>
 
    </dd>
 
@@ -8095,7 +8084,7 @@
   value, or if the attribute is absent, the default value must be
   returned instead, or −1 if there is no default value. On
   setting, if the value is negative, the user agent must throw an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. Otherwise, the given value
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise, the given value
   must be converted to the shortest possible string representing the
   number as a <a href=#valid-non-negative-integer>valid non-negative integer</a> and then that
   string must be used as the new content attribute value.</p>
@@ -8128,7 +8117,7 @@
   fails or returns an out of range value, or if the attribute is
   absent, the default value must be returned instead, or 1 if there is
   no default value. On setting, if the value is zero, the user agent
-  must throw an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. Otherwise, the
+  must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise, the
   given value must be converted to the shortest possible string
   representing the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a>
   and then that string must be used as the new content attribute
@@ -8502,7 +8491,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
+    <p>This method will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -8600,12 +8589,12 @@
   <ol><li><p>If <var title="">element</var> is an ancestor of the
    <code><a href=#the-select-element>select</a></code> element on which the
    <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw a
-   <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</li>
+   <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</li>
 
    <li><p>If <var title="">before</var> is an element, but that
    element isn't a descendant of the <code><a href=#the-select-element>select</a></code> element on
    which the <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw
-   a <code><a href=#not_found_err>NOT_FOUND_ERR</a></code> exception.</li>
+   a <code><a href=#notfounderror>NotFoundError</a></code> exception.</li>
 
    <li><p>If <var title="">element</var> and <var title="">before</var> are the same element, then return and abort
    these steps.</li>
@@ -8990,7 +8979,7 @@
 
      <dd><p>Let <var title="">output</var> be a newly constructed <code><a href=#filelist>FileList</a></code> object containing a list of newly constructed <code><a href=#file>File</a></code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</dd>
 
-<!--(when we add this, make sure to throw DATA_CLONE_ERR if these objects are already closed)
+<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
      <dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
 
      <dd><p>...</p></dd>
@@ -9020,7 +9009,7 @@
      <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code><a href=#function>Function</a></code>)</dt>
      <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-     <dd><p>Throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort
+     <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>
@@ -9320,8 +9309,8 @@
 
   <h4 id=security-document><span class=secno>3.1.2 </span>Security</h4>
 
-  <p id=security>User agents <span class=impl>must</span> raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any properties of a
+  <p id=security>User agents <span class=impl>must</span> throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
   <code><a href=#document>Document</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the <a href=#same-origin title="same
   origin">same</a> as the <code><a href=#document>Document</a></code>'s <a href=#effective-script-origin>effective
@@ -9384,7 +9373,7 @@
     context flag">sandboxed into a unique origin</a> (in an
     <code><a href=#the-iframe-element>iframe</a></code> with the <code title=attr-iframe-sandbox><a href=#attr-iframe-sandbox>sandbox</a></code> attribute) or the
     resource was labeled as <code><a href=#text/html-sandboxed>text/html-sandboxed</a></code>, a
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception will be thrown on getting and
+    <code><a href=#securityerror>SecurityError</a></code> exception will be thrown on getting and
     setting.</p>
    </dd>
 
@@ -9411,8 +9400,8 @@
   <a href=#cookie-free-document-object>cookie-free <code>Document</code> object</a>, then the user
   agent must return the empty string. Otherwise, if the
   <code><a href=#document>Document</a></code>'s <a href=#origin>origin</a> is not a
-  scheme/host/port tuple, the user agent must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception. Otherwise, the user agent must
+  scheme/host/port tuple, the user agent must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception. Otherwise, the user agent must
   first <a href=#obtain-the-storage-mutex>obtain the storage mutex</a> and then return the
   cookie-string for <a href="#the-document's-address">the document's address</a> for a
   "non-HTTP" API, <a href=#decoded-as-utf-8,-with-error-handling>decoded as UTF-8, with error handling</a>.
@@ -9422,7 +9411,7 @@
   <code>Document</code> object</a>, then the user agent must do
   nothing. Otherwise, if the <code><a href=#document>Document</a></code>'s
   <a href=#origin>origin</a> is not a scheme/host/port tuple, the user agent
-  must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception. Otherwise, the
+  must throw a <code><a href=#securityerror>SecurityError</a></code> exception. Otherwise, the
   user agent must <a href=#obtain-the-storage-mutex>obtain the storage mutex</a> and then act
   as it would when <a href=#receives-a-set-cookie-string title="receives a
   set-cookie-string">receiving a set-cookie-string</a> for
@@ -9622,7 +9611,7 @@
    <dd>
     <p>Returns <a href=#the-body-element-0>the body element</a>.</p>
     <p>Can be set, to replace <a href=#the-body-element-0>the body element</a>.</p>
-    <p>If the new value is not a <code><a href=#the-body-element>body</a></code> or <code><a href=#frameset>frameset</a></code> element, this will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <p>If the new value is not a <code><a href=#the-body-element>body</a></code> or <code><a href=#frameset>frameset</a></code> element, this will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
   </dl><p><dfn id=the-body-element-0>The body element</dfn> of a document is the first child of
@@ -9649,8 +9638,8 @@
     http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/dom/Document.cpp
     search for ::body
    --><li>If the new value is not a <code><a href=#the-body-element>body</a></code> or
-   <code><a href=#frameset>frameset</a></code> element, then raise a
-   <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception and abort these
+   <code><a href=#frameset>frameset</a></code> element, then throw a
+   <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception and abort these
    steps.</li>
 
    <li>Otherwise, if the new value is the same as <a href=#the-body-element-0>the body
@@ -9969,12 +9958,12 @@
 
    <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the method's
    first argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>. If this is not
-   successful, throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort
+   successful, throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort
    these steps. Otherwise, let <var title="">url</var> be the
    resulting <a href=#absolute-url>absolute URL</a>.</li>
 
    <li><p>If the <a href=#origin>origin</a> of <var title="">url</var> is not
-   the same as the <a href=#origin>origin</a> of <var title="">document</var>, throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+   the same as the <a href=#origin>origin</a> of <var title="">document</var>, throw a <code><a href=#securityerror>SecurityError</a></code>
    exception and abort these steps.</li>
 <!--SYNCLOAD
    <li><p>If <code title="dom-XMLDocumentLoader-async">async</code> is
@@ -11120,7 +11109,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
+     Z), throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these
      steps.</li>
 
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -11133,8 +11122,8 @@
 
      <li>Set the value of the attribute with the name <var title="">name</var>, to the value <var title="">value</var>,
      replacing any previous value if the attribute already existed. If
-     <code title="">setAttribute()</code> would have raised an
-     exception when setting an attribute with the name <var title="">name</var>, then this must raise the same
+     <code title="">setAttribute()</code> would have thrown an
+     exception when setting an attribute with the name <var title="">name</var>, then this must throw the same
      exception.</li>
 
     </ol></dd>
@@ -11148,7 +11137,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code>SYNTAX_ERR</code> exception and abort these
+     Z), throw a <code>SyntaxError</code> exception and abort these
      steps.</li>
 -->
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -12773,7 +12762,7 @@
     <p>The method has no effect if the <code><a href=#document>Document</a></code> is still
     being parsed.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     <code><a href=#document>Document</a></code> is an <a href=#xml-documents title="XML documents">XML
     document</a>.</p>
 
@@ -12794,7 +12783,7 @@
   follows:</p>
 
   <ol><li>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML document</a>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">type</var> be the value of the first
@@ -12968,8 +12957,8 @@
   object of the <code><a href=#htmldocument>HTMLDocument</a></code> object, with the same
   arguments as the original call to the <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method, and return whatever
   that method returned. If the <code><a href=#htmldocument>HTMLDocument</a></code> object has no
-  <code><a href=#window>Window</a></code> object, then the method must raise an
-  <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+  <code><a href=#window>Window</a></code> object, then the method must throw an
+  <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
   </div>
 
@@ -12983,7 +12972,7 @@
 
     <p>Closes the input stream that was opened by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     <code><a href=#document>Document</a></code> is an <a href=#xml-documents title="XML documents">XML
     document</a>.</p>
 
@@ -12996,7 +12985,7 @@
 
   <ol><li><p>If the <code><a href=#document>Document</a></code> object is not flagged as an
    <a href=#html-documents title="HTML documents">HTML document</a>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If there is no <a href=#script-created-parser>script-created parser</a> associated
@@ -13038,7 +13027,7 @@
     these reasons, use of this method is strongly
     discouraged.</strong></p>
 
-    <p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
+    <p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
     when invoked on <a href=#xml-documents>XML documents</a>.</p>
 
    </dd>
@@ -13058,7 +13047,7 @@
   <ol><li>
 
     <p>If the method was invoked on an <a href=#xml-documents title="XML documents">XML
-    document</a>, throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    document</a>, throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
     exception and abort these steps.</p>
 
     <!--
@@ -13142,7 +13131,7 @@
     <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
     first.</p>
 
-    <p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
+    <p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
     when invoked on <a href=#xml-documents>XML documents</a>.</p>
 
    </dd>
@@ -19454,8 +19443,8 @@
    browsing context given a browsing context name</a>, using the
    value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If the target of the <code title=event-click><a href=#event-click>click</a></code>
@@ -27887,7 +27876,7 @@
 
     <p>Can be set, to seek to the given time.<p>
 
-    <p>Will throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if there
+    <p>Will throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if there
     is no selected <a href=#media-resource>media resource</a>
     or if there is a <a href=#current-media-controller>current media controller</a>.</p>
 
@@ -28011,7 +28000,7 @@
   position</a>. The returned value must be expressed in seconds. On
   setting, if the <a href=#media-element>media element</a> has a <a href=#current-media-controller>current media
   controller</a>, then the user agent must throw an
-  <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception; otherwise, if the
+  <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if the
   <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> is <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, then it must set
   the <a href=#media-element>media element</a>'s <a href=#default-playback-start-position>default playback start
   position</a> to the new value; otherwise, it must set the
@@ -28162,7 +28151,7 @@
    <dd>Enough of the resource has been obtained that the duration of
    the resource is available. In the case of a <code><a href=#the-video-element>video</a></code>
    element, the dimensions of the video are also available. The API
-   will no longer raise an exception when seeking. No <a href=#media-data>media
+   will no longer throw an exception when seeking. No <a href=#media-data>media
    data</a> is available for the immediate <a href=#current-playback-position>current playback
    position</a>.
    The <a href=#text-track title="text track">text tracks</a>
@@ -29902,7 +29891,7 @@
 
     <p>Can be set, to change the volume multiplier.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the new value is not
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -30073,7 +30062,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=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised instead.</p>
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised instead.</p>
 
   <p>The <dfn id=dom-mediacontroller-muted title=dom-MediaController-muted><code>muted</code></dfn>
   attribute, on getting, must return the
@@ -31467,7 +31456,7 @@
    <dt><dfn id=dom-texttrack-showing title=dom-TextTrack-SHOWING><code>SHOWING</code></dfn> (numeric value 2)</dt>
    <dd>The <a href=#text-track-showing>text track showing</a> and <a href=#text-track-showing-by-default title="text track showing by default">showing by default</a> modes.</dd>
   </dl><p>On setting, if the new value is not either 0, 1, or 2, the user
-  agent must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+  agent must throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code>
   exception. Otherwise, if the new value isn't equal to what the
   attribute would currently return, the new value must be processed as
   follows:</p>
@@ -31557,13 +31546,13 @@
    <dt><var title="">mutableTextTrack</var> . <code title=dom-MutableTextTrack-addCue><a href=#dom-mutabletexttrack-addcue>addCue</a></code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Adds the given cue to <var title="">mutableTextTrack</var>'s <a href=#text-track-list-of-cues>text track list of cues</a>.</p>
-    <p>Raises an exception if the argument is associated with another <a href=#text-track>text track</a> or already in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <a href=#text-track>text track</a> or already in the list of cues.</p>
    </dd>
 
    <dt><var title="">mutableTextTrack</var> . <code title=dom-MutableTextTrack-removeCue><a href=#dom-mutabletexttrack-removecue>removeCue</a></code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Removes the given cue from <var title="">mutableTextTrack</var>'s <a href=#text-track-list-of-cues>text track list of cues</a>.</p>
-    <p>Raises an exception if the argument is associated with another <a href=#text-track>text track</a> or not in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <a href=#text-track>text track</a> or not in the list of cues.</p>
    </dd>
 
   </dl><div class=impl>
@@ -31575,7 +31564,7 @@
   <ol><li>
 
     <p>If <var title="">kind</var> is not one of the following
-    strings, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort
+    strings, then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort
     these steps:</p>
 
     <ul class=brief><li><code title=dom-TextTrack-kind-subtitles><a href=#dom-texttrack-kind-subtitles>subtitles</a></code>
@@ -31641,7 +31630,7 @@
   <ol><li><p>If the given <var title="">cue</var> is already associated
    with a <a href=#text-track>text track</a> other than the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>,
-   then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort
+   then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort
    these steps.</li>
 
    <li><p>Associate <var title="">cue</var> with the method's
@@ -31652,7 +31641,7 @@
    <li><p>If the given <var title="">cue</var> is already listed in
    the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
    track</a>'s <a href=#text-track-list-of-cues>text track list of cues</a>, then throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Add <var title="">cue</var> to the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>'s
@@ -31664,13 +31653,13 @@
 
   <ol><li><p>If the given <var title="">cue</var> is not associated with
    the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
-   track</a>, then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+   track</a>, then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
    exception.</li>
 
    <li><p>If the given <var title="">cue</var> is not currently listed
    in the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
    track</a>'s <a href=#text-track-list-of-cues>text track list of cues</a>, then throw a
-   <code><a href=#not_found_err>NOT_FOUND_ERR</a></code> exception.</li>
+   <code><a href=#notfounderror>NotFoundError</a></code> exception.</li>
 
    <li><p>Remove <var title="">cue</var> from the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>'s
@@ -34168,7 +34157,7 @@
 
     <p>Can be set, to change the volume.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the new value is not
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -34196,7 +34185,7 @@
   the new value is in the range 0.0 to 1.0 inclusive, the playback
   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=#index_size_err>INDEX_SIZE_ERR</a></code>
+  to 1.0 inclusive, then, on setting, an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception must be raised instead.</p>
 
   <p>The <dfn id=dom-media-muted title=dom-media-muted><code>muted</code></dfn>
@@ -34307,7 +34296,7 @@
 
     <p>Returns the time for the start of the range with the given index.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the index is out of range.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the index is out of range.</p>
 
    </dd>
 
@@ -34317,7 +34306,7 @@
 
     <p>Returns the time for the end of the range with the given index.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the index is out of range.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the index is out of range.</p>
 
    </dd>
 
@@ -34336,7 +34325,7 @@
   the object, in seconds measured from the start of the timeline that
   the object covers.</p>
 
-  <p>These methods must raise <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exceptions
+  <p>These methods must throw <code><a href=#indexsizeerror>IndexSizeError</a></code> exceptions
   if called with an <var title="">index</var> argument greater than or
   equal to the number of ranges represented by the object.</p>
 
@@ -35054,7 +35043,7 @@
   specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
   <p>Other arguments must be ignored and must not cause the user agent
-  to raise an exception. A future version of this specification will
+  to throw an exception. A future version of this specification will
   probably define other parameters to be passed to these methods to
   allow authors to more carefully control compression settings, image
   metadata, etc.</p>
@@ -35758,8 +35747,8 @@
     given offset. 0.0 is the offset at one end of the gradient, 1.0 is
     the offset at the other end.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the offset
-    is out of range. Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the offset
+    is out of range. Throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception if the
     color cannot be parsed.</p>
 
    </dd>
@@ -35773,7 +35762,7 @@
     coordinates represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
 
    </dd>
 
@@ -35786,8 +35775,8 @@
     represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. If either of the radii
-    are negative, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either of the radii
+    are negative, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -35797,8 +35786,8 @@
   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=#index_size_err>INDEX_SIZE_ERR</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>
-  value</a>, then a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception must be
+  <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>
+  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
   offset <var title="">offset</var> relative to the whole gradient,
   and with the color obtained by parsing <var title="">color</var> as
@@ -35812,8 +35801,8 @@
   <p>The <dfn id=dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient><code>createLinearGradient(<var title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>,
   <var title="">y1</var>)</code></dfn> method takes four arguments
   that represent the start point (<var title="">x0</var>, <var title="">y0</var>) and end point (<var title="">x1</var>, <var title="">y1</var>) of the gradient. If any of the arguments to <code title=dom-context-2d-createLinearGradient><a href=#dom-context-2d-createlineargradient>createLinearGradient()</a></code>
-  are infinite or NaN, the method must raise a
-  <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. Otherwise, the method must
+  are infinite or NaN, the method must throw a
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. Otherwise, the method must
   return a linear <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the
   specified line.</p>
 
@@ -35834,9 +35823,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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised. If either
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised. If either
   of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. Otherwise,
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. Otherwise,
   the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
   initialized with the two specified circles.</p>
 
@@ -35895,8 +35884,8 @@
     <p>The allowed values for <var title="">repetition</var> are <code title="">repeat</code> (both directions), <code title="">repeat-x</code> (horizontal only), <code title="">repeat-y</code> (vertical only), and <code title="">no-repeat</code> (neither). If the <var title="">repetition</var> argument is empty, the value <code title="">repeat</code> is used.</p>
 
     <p>If the image has no image data, throws an
-    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. If the second argument
-    isn't one of the allowed values, throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+    <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. If the second argument
+    isn't one of the allowed values, throws a <code><a href=#syntaxerror>SyntaxError</a></code>
     exception. If the image isn't yet fully decoded, then the method
     returns null.</p>
 
@@ -35914,7 +35903,7 @@
   <code title="">repeat-x</code>, <code title="">repeat-y</code>,
   <code title="">no-repeat</code>. If the empty string is specified,
   <code title="">repeat</code> must be assumed. If an unrecognized value
-  is given, then the user agent must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+  is given, then the user agent must throw a <code><a href=#syntaxerror>SyntaxError</a></code>
   exception. User agents must recognize the four values described above
   exactly (e.g. they must not do case folding). Except as specified
   below, the method must return a <code><a href=#canvaspattern>CanvasPattern</a></code> object
@@ -35935,7 +35924,7 @@
   <p>If the <var title="">image</var> argument is an
   <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+  implementation must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
   exception.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
@@ -36456,7 +36445,7 @@
     current subpath, connected to the previous point by a straight
     line.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -36471,7 +36460,7 @@
     in the given direction (defaulting to clockwise), is added to the
     path, connected to the previous point by a straight line.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -36624,7 +36613,7 @@
   arguments and the last point in the subpath, as described below.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  implementation to throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>Let the point (<var title="">x0</var>, <var title="">y0</var>) be
@@ -36688,7 +36677,7 @@
   zero length in both directions.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  implementation to throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <hr><p>The <dfn id=dom-context-2d-rect title=dom-context-2d-rect><code>rect(<var title="">x</var>, <var title="">y</var>, <var title="">w</var>, <var title="">h</var>)</code></dfn> method must create a new subpath
@@ -37488,10 +37477,10 @@
 
     <p>If the first argument isn't an <code><a href=#the-img-element>img</a></code>,
     <code><a href=#the-canvas-element>canvas</a></code>, or <code><a href=#the-video-element>video</a></code> element, throws a
-    <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code> exception. If the image has no
-    image data, throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. If
+    <code><a href=#typemismatcherror>TypeMismatchError</a></code> exception. If the image has no
+    image data, throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. If
     the one of the source rectangle dimensions is zero, throws an
-    <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. If the image isn't yet
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. If the image isn't yet
     fully decoded, then nothing is drawn.</p>
 
    </dd>
@@ -37526,7 +37515,7 @@
   <p>If the <var title="">image</var> argument is an
   <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+  implementation must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
   exception.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
@@ -37534,8 +37523,8 @@
   points (<var title="">sx</var>, <var title="">sy</var>), (<span title=""><var title="">sx</var>+<var title="">sw</var></span>, <var title="">sy</var>), (<span title=""><var title="">sx</var>+<var title="">sw</var></span>, <span title=""><var title="">sy</var>+<var title="">sh</var></span>), (<var title="">sx</var>, <span title=""><var title="">sy</var>+<var title="">sh</var></span>).</p>
 
   <p>If one of the <var title="">sw</var> or <var title="">sh</var>
-  arguments is zero, the implementation must raise an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  arguments is zero, the implementation must throw an
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   <p>The destination rectangle is the rectangle whose corners are the
   four points (<var title="">dx</var>, <var title="">dy</var>),
@@ -37630,8 +37619,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
+    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
     exception if the either of the width or height arguments are
     zero.</p>
 
@@ -37670,8 +37659,8 @@
     etc.</p>
 
     <p>If the first argument is null, throws a
-    <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code> exception. Throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception if any of the other
+    <code><a href=#typemismatcherror>TypeMismatchError</a></code> exception. Throws a
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the other
     arguments are not finite.</p>
 
    </dd>
@@ -37701,9 +37690,9 @@
 
   <p>If any of the arguments to <code title=dom-context-2d-createImageData><a href=#dom-context-2d-createimagedata>createImageData()</a></code> or
   <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code>
-  are infinite or NaN, the method must instead raise a
-  <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. If either the <var title="">sw</var> or <var title="">sh</var> arguments are zero,
-  the method must instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  are infinite or NaN, the method must instead throw a
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either the <var title="">sw</var> or <var title="">sh</var> arguments are zero,
+  the method must instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p><code><a href=#imagedata>ImageData</a></code> objects must be initialized so that their
@@ -37734,7 +37723,7 @@
   <code><a href=#imagedata>ImageData</a></code> structures back to the canvas.</p>
 
   <p>If any of the arguments to the method are infinite or NaN, the
-  method must raise a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception.</p>
+  method must throw a <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
 
   <p>When the last four arguments are omitted, they must be assumed to
   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>
@@ -38190,21 +38179,21 @@
 
   </ul><p>Whenever the <code title=dom-canvas-toDataURL><a href=#dom-canvas-todataurl>toDataURL()</a></code> method of a
   <code><a href=#the-canvas-element>canvas</a></code> element whose <i>origin-clean</i> flag is set to
-  false is called, the method must raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+  false is called, the method must throw a <code><a href=#securityerror>SecurityError</a></code>
   exception.</p>
 
   <p>Whenever the <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code> method of
   the 2D context of a <code><a href=#the-canvas-element>canvas</a></code> element whose
   <i>origin-clean</i> flag is set to false is called with otherwise
-  correct arguments, the method must raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+  correct arguments, the method must throw a <code><a href=#securityerror>SecurityError</a></code>
   exception.</p>
 
   <p>Whenever the <code title=dom-context-2d-measureText><a href=#dom-context-2d-measuretext>measureText()</a></code> method of
   the 2D context of a <code><a href=#the-canvas-element>canvas</a></code> element ends up using a font
   that has an <a href=#origin>origin</a> that is not the <a href=#same-origin title="same
   origin">same</a> as that of the <code><a href=#document>Document</a></code> object that
-  owns the <code><a href=#the-canvas-element>canvas</a></code> element, the method must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+  owns the <code><a href=#the-canvas-element>canvas</a></code> element, the method must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
   <p class=note>Even resetting the canvas state by changing its
   <code title=attr-canvas-width><a href=#attr-canvas-width>width</a></code> or <code title=attr-canvas-height><a href=#attr-canvas-height>height</a></code> attributes doesn't reset
@@ -38519,8 +38508,8 @@
    browsing context given a browsing context name</a>, using the
    value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Otherwise, the user agent must <a href=#following-hyperlinks title="following
@@ -39188,7 +39177,7 @@
     <p>Returns the table's <code><a href=#the-caption-element>caption</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-caption-element>caption</a></code> element. If the
     new value is not a <code><a href=#the-caption-element>caption</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">caption</var> = <var title="">table</var> . <code title=dom-table-createCaption><a href=#dom-table-createcaption>createCaption</a></code>()</dt>
@@ -39206,7 +39195,7 @@
     <p>Returns the table's <code><a href=#the-thead-element>thead</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-thead-element>thead</a></code> element. If the
     new value is not a <code><a href=#the-thead-element>thead</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">thead</var> = <var title="">table</var> . <code title=dom-table-createTHead><a href=#dom-table-createthead>createTHead</a></code>()</dt>
@@ -39224,7 +39213,7 @@
     <p>Returns the table's <code><a href=#the-tfoot-element>tfoot</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-tfoot-element>tfoot</a></code> element. If the
     new value is not a <code><a href=#the-tfoot-element>tfoot</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">tfoot</var> = <var title="">table</var> . <code title=dom-table-createTFoot><a href=#dom-table-createtfoot>createTFoot</a></code>()</dt>
@@ -39256,14 +39245,14 @@
    <dd>
     <p>Creates a <code><a href=#the-tr-element>tr</a></code> element, along with a <code><a href=#the-tbody-element>tbody</a></code> if required, inserts them into the table at the position given by the argument, and returns the <code><a href=#the-tr-element>tr</a></code>.</p>
     <p>The position is relative to the rows in the table. The index −1 is equivalent to inserting at the end of the table.</p>
-    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">table</var> . <code title=dom-table-deleteRow><a href=#dom-table-deleterow>deleteRow</a></code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code><a href=#the-tr-element>tr</a></code> element with the given position in the table.</p>
     <p>The position is relative to the rows in the table. The index −1 is equivalent to deleting the last row of the table.</p>
-    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
   </dl><div class=impl>
@@ -39276,7 +39265,7 @@
   <code><a href=#the-table-element>table</a></code> element, if any, must be removed, and the new
   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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be
+  then a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be
   raised instead.</p>
 
   <p>The <dfn id=dom-table-createcaption title=dom-table-createCaption><code>createCaption()</code></dfn>
@@ -39300,7 +39289,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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be raised
+  <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn id=dom-table-createthead title=dom-table-createTHead><code>createTHead()</code></dfn>
@@ -39327,7 +39316,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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be raised
+  a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn id=dom-table-createtfoot title=dom-table-createTFoot><code>createTFoot()</code></dfn>
@@ -39381,7 +39370,7 @@
    the number of elements in <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code>
    collection:</dt>
 
-   <dd>The method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+   <dd>The method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
    exception.</dd>
 
    <dt>If the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection has
@@ -39426,7 +39415,7 @@
 
    <li><p>Now, if <var title="">index</var> is less than zero, or
    greater than or equal to the number of elements in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection, the method must
-   instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception, and these
+   instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception, and these
    steps must be aborted.</li>
 
    <li><p>Otherwise, the method must remove the <var title="">index</var>th element in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection from its parent.</p>
@@ -39925,14 +39914,14 @@
    <dd>
     <p>Creates a <code><a href=#the-tr-element>tr</a></code> element, inserts it into the table section at the position given by the argument, and returns the <code><a href=#the-tr-element>tr</a></code>.</p>
     <p>The position is relative to the rows in the table section. The index −1, which is the default if the argument is omitted, is equivalent to inserting at the end of the table section.</p>
-    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">tbody</var> . <code title=dom-tbody-deleteRow><a href=#dom-tbody-deleterow>deleteRow</a></code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code><a href=#the-tr-element>tr</a></code> element with the given position in the table section.</p>
     <p>The position is relative to the rows in the table section. The index −1 is equivalent to deleting the last row of the table section.</p>
-    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
   </dl><div class=impl>
@@ -39947,7 +39936,7 @@
 
   <p>If <var title="">index</var> is less than −1 or greater than the
   number of elements in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code>
-  collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to −1, or
@@ -39964,7 +39953,7 @@
   <p>The <dfn id=dom-tbody-deleterow title=dom-tbody-deleteRow><code>deleteRow(<var title="">index</var>)</code></dfn> method must remove the <var title="">index</var>th element in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection from its parent. If
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection, the method must
-  instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   </div>
 
@@ -40149,7 +40138,7 @@
     is equivalent to inserting at the end of the row.</p>
 
     <p>If the given position is less than −1 or greater than
-    the number of cells, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+    the number of cells, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
     exception.</p>
 
    </dd>
@@ -40165,7 +40154,7 @@
 
     <p>If the given position is less than −1 or greater than
     the index of the last cell, or if there are no cells, throws an
-    <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -40200,7 +40189,7 @@
 
   <p>If <var title="">index</var> is less than −1 or greater than the
   number of elements in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code>
-  collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to −1, or
@@ -40217,7 +40206,7 @@
   <p>The <dfn id=dom-tr-deletecell title=dom-tr-deleteCell><code>deleteCell(<var title="">index</var>)</code></dfn> method must remove the <var title="">index</var>th element in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection from its parent. If
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, the method must
-  instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   </div>
 
@@ -48109,7 +48098,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if it is
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if it is
     set to any value other than the empty string when the control is a
     file upload control.</p>
 
@@ -48147,7 +48136,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     control isn't date- or time-based.</p>
 
    </dd>
@@ -48161,7 +48150,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </dd>
@@ -48176,7 +48165,7 @@
     <var title="">n</var>. The default value for <var title="">n</var>
     is 1.</p>
 
-    <p>Throws <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the control
+    <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control
     is neither date- or time-based nor numeric, if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>", if the current <a href=#concept-fe-value title=concept-fe-value>value</a> could not be parsed, or if
     stepping in the given direction by the given amount would take the
     value out of range.</p>
@@ -48256,7 +48245,7 @@
     first file in the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>, if
     any, or the empty string if the list is empty. On setting, if the
     new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
-    otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    otherwise, it must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
     exception.</p>
 
     <p class=note>This "fakepath" requirement is a sad accident of
@@ -48294,7 +48283,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> attribute does not
   apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception; otherwise, if
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if
   the new value is null, then set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to the empty
   string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a>, as defined for that
@@ -48321,7 +48310,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> attribute does
   not apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, if
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. Otherwise, if
   the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAs<em>Date</em></a></code>
   attribute applies, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a> defined for that state,
@@ -48338,17 +48327,17 @@
   <ol><li><p>If the <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
    <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods do not
    apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-   throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
+   throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If the element has no <a href=#concept-input-step title=concept-input-step>allowed value step</a>, then throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
    string to a number</a> to the string given by the element's
    <a href=#concept-fe-value title=concept-fe-value>value</a> results in an error,
-   then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort
+   then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort
    these steps; otherwise, let <var title="">value</var> be the result
    of that algorithm.</li>
 
@@ -48362,10 +48351,10 @@
 
    <li><p>Let <var title="">value</var> be the result of adding <var title="">delta</var> to <var title="">value</var>.</li>
    <li><p>If the element has a <a href=#concept-input-min title=concept-input-min>minimum</a>, and the <var title="">value</var> is less than that <a href=#concept-input-min title=concept-input-min>minimum</a>, then throw a
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If the element has a <a href=#concept-input-max title=concept-input-max>maximum</a>, and the <var title="">value</var> is greater than that <a href=#concept-input-max title=concept-input-max>maximum</a>, then throw a
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Let <var title="">value as string</var> be the result of
    running the <a href=#concept-input-value-number-string title=concept-input-value-number-string>algorithm to convert a
@@ -48921,7 +48910,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
+    <p>This method will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -51484,8 +51473,8 @@
   </dl><div class=impl>
 
   <p>When these methods and attributes are used with
-  <code><a href=#the-input-element>input</a></code> elements while they don't apply, they must raise
-  an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, they must
+  <code><a href=#the-input-element>input</a></code> elements while they don't apply, they must throw
+  an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. Otherwise, they must
   act as described below.</p>
 
   <p>For <code><a href=#the-input-element>input</a></code> elements, these methods and attributes
@@ -57947,7 +57936,7 @@
     <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>. Setting the <a href=#concept-property-value title=concept-property-value>value</a> when the element has
     no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute or when
     the element's value is an <a href=#concept-item title=concept-item>item</a>
-    throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+    throws an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
    </dd>
 
@@ -57998,13 +57987,13 @@
   <dl><dt>If the element has no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute</dt>
 
    <dd><p>The attribute must return null on getting and must throw an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on setting.</p>
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception on setting.</p>
 
 
    <dt>If the element has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
 
    <dd><p>The attribute must return the element itself on getting and
-   must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on
+   must throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception on
    setting.</p>
 
 
@@ -61509,7 +61498,7 @@
 
     <p>Returns null if there isn't one.</p>
 
-    <p>Throws a <code><a href=#security_err>SECURITY_ERR</a></code> exception in cross-origin situations.</p>
+    <p>Throws a <code><a href=#securityerror>SecurityError</a></code> exception in cross-origin situations.</p>
 
    </dd>
 
@@ -61547,7 +61536,7 @@
    <li><p>If the <a href=#browsing-context-container>browsing context container</a>'s
    <code><a href=#document>Document</a></code> does not have the <a href=#same-origin title="same
    origin">same</a> <a href=#effective-script-origin>effective script origin</a> as the
-   <a href=#entry-script>entry script</a>, then throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+   <a href=#entry-script>entry script</a>, then throw a <code><a href=#securityerror>SecurityError</a></code>
    exception.</li>
 
    <li><p>Otherwise, return the <a href=#browsing-context-container>browsing context
@@ -62160,8 +62149,8 @@
 
   <h4 id=security-window><span class=secno>6.2.1 </span>Security</h4>
 
-  <p id=security-2>User agents must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any properties of a
+  <p id=security-2>User agents must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
   <code><a href=#window>Window</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the same as the
   <code><a href=#window>Window</a></code> object's <code><a href=#document>Document</a></code>'s <a href=#effective-script-origin>effective
@@ -63226,7 +63215,7 @@
   <ol><li>
 
     <p>If the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing
-    context</a>, throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and
+    context</a>, throw a <code><a href=#securityerror>SecurityError</a></code> exception and
     abort these steps.</p>
 
    </li>
@@ -63241,7 +63230,7 @@
 
     <p>If ToASCII fails to convert one of the components of the
     string, e.g. because it is too long or because it contains invalid
-    characters, then throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort
+    characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort
     these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
    </li>
@@ -63255,7 +63244,7 @@
     <ol><li>
 
       <p>If the current value is an IP address, throw a
-      <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these steps.</p>
+      <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps.</p>
 
      </li>
 
@@ -63263,7 +63252,7 @@
 
       <p>If <var title="">new value</var>, prefixed by a U+002E FULL
       STOP (.), does not exactly match the end of the current value,
-      throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these
+      throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
       steps.</p>
 
      </li>
@@ -63274,7 +63263,7 @@
       Public Suffix List, or, if <var title="">new value</var>,
       prefixed by a U+002E FULL STOP (.), matches the end of a
       suffix in the Public Suffix List, then throw a
-      <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these steps. <a href=#refsPSL>[PSL]</a></p>
+      <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps. <a href=#refsPSL>[PSL]</a></p>
 
       <p>Suffixes must be compared after applying the IDNA ToASCII
       algorithm to them, with both the AllowUnassigned and
@@ -63675,12 +63664,12 @@
     <ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
      third argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>.</li>
 
-     <li>If that fails, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
+     <li>If that fails, throw a <code><a href=#securityerror>SecurityError</a></code> exception
      and abort these steps.</li>
 
      <li>Compare the resulting <a href=#absolute-url>absolute URL</a> to <a href="#the-document's-address">the
      document's address</a>. If any part of these two <a href=#url title=URL>URLs</a> differ other than the <a href=#url-path title=url-path><path></a>, <a href=#url-query title=url-query><query></a>, and <a href=#url-fragment title=url-fragment><fragment></a> components, then
-     raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these
+     throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
      steps.</li>
 
      <li>If the <a href=#origin>origin</a> of the resulting <a href=#absolute-url>absolute
@@ -63688,7 +63677,7 @@
      <a href=#entry-script>entry script</a>'s <a href="#script's-document" title="script's
      document">document</a>, and either the <a href=#url-path title=url-path><path></a> or <a href=#url-query title=url-query><query></a> components of the two
      <a href=#url title=URL>URLs</a> compared in the previous step
-     differ, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort
+     differ, throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort
      these steps. (This prevents sandboxed content from spoofing other
      pages on the same origin.)</li>
 
@@ -64034,7 +64023,7 @@
   <p>If the <a href=#resolve-a-url title="resolve a url">resolving</a> step of the
   <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> and <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> methods is not
   successful, then the user agent must instead throw a
-  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
+  <code><a href=#syntaxerror>SyntaxError</a></code> exception.</p>
 
   <p>When the <dfn id=dom-location-reload title=dom-location-reload><code>reload()</code></dfn> method is
   invoked, the user agent must run the appropriate steps from the
@@ -64105,7 +64094,7 @@
   to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base
   URL">base URL</a>, and if that succeeds, return the resulting
   <a href=#absolute-url>absolute URL</a>. If it fails, it must throw a
-  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception instead.</p>
+  <code><a href=#syntaxerror>SyntaxError</a></code> exception instead.</p>
 
   </div>
 
@@ -64114,8 +64103,8 @@
 
   <h5 id=security-location><span class=secno>6.4.3.1 </span>Security</h5>
 
-  <p id=security-3>User agents must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any of the members of a
+  <p id=security-3>User agents must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any of the members of a
   <code><a href=#location>Location</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the <a href=#same-origin title="same
   origin">same</a> as the <code><a href=#location>Location</a></code> object's associated
@@ -67594,7 +67583,7 @@
 
     <p>Invokes the <a href=#application-cache-download-process>application cache download process</a>.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if there is no application cache to update.</p>
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if there is no application cache to update.</p>
 
     <p>Calling this method is not usually necessary, as user agents
     will generally take care of updating <a href=#application-cache title="application
@@ -67623,7 +67612,7 @@
 
     <p>Switches to the most recent application cache, if there is a
     newer one. If there isn't, throws an
-    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
+    <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</p>
 
     <p>This does not cause previously-loaded resources to be reloaded;
     for example, images do not suddenly get reloaded and style sheets
@@ -67731,7 +67720,7 @@
   <a href=#cache-host>cache host</a> is associated, but without giving that
   <a href=#cache-host>cache host</a> to the algorithm. If there is no such
   <a href=#application-cache>application cache</a>, or if it is marked as <a href=#concept-appcache-obsolete title=concept-appcache-obsolete>obsolete</a>, then the method
-  must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead.</p>
+  must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception instead.</p>
 
   <p>If the <dfn id=dom-appcache-abort title=dom-appcache-abort><code>abort()</code></dfn>
   method is invoked, the user agent must <dfn id=send-a-signal>send a signal</dfn> to
@@ -67747,8 +67736,8 @@
 
   <ol><li><p>Check that <code><a href=#applicationcache>ApplicationCache</a></code> object's
    <a href=#cache-host>cache host</a> is associated with an <a href=#application-cache>application
-   cache</a>. If it is not, then raise an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   cache</a>. If it is not, then throw an
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">cache</var> be the <a href=#application-cache>application
@@ -67765,8 +67754,8 @@
    <li><p>Check that there is an application cache in the same
    <a href=#application-cache-group>application cache group</a> as <var title="">cache</var>
    whose <a href=#concept-appcache-completeness title=concept-appcache-completeness>completeness
-   flag</a> is <i>complete</i> and that is <a href=#concept-appcache-newer title=concept-appcache-newer>newer</a> than <var title="">cache</var>. If there is not, then raise an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   flag</a> is <i>complete</i> and that is <a href=#concept-appcache-newer title=concept-appcache-newer>newer</a> than <var title="">cache</var>. If there is not, then throw an
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">new cache</var> be the <a href=#concept-appcache-newer title=concept-appcache-newer>newest</a> <a href=#application-cache>application
@@ -68181,7 +68170,7 @@
   <p>User agents may impose resource limitations on scripts, for
   example CPU quotas, memory limits, total execution time limits, or
   bandwidth limitations. When a script exceeds a limit, the user agent
-  may either throw a <code><a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a></code> exception, abort
+  may either throw a <code><a href=#quotaexceedederror>QuotaExceededError</a></code> exception, abort
   the script without an exception, prompt the user, or throttle script
   execution.</p>
 
@@ -69206,7 +69195,7 @@
     representing a binary byte with values 0x00 to 0xFF respectively,
     and converts it to its base64 representation, which it returns.</p>
 
-    <p>Throws an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if the
     input string contains any out-of-range characters.</p>
 
    </dd>
@@ -69221,7 +69210,7 @@
     each representing a binary byte with values 0x00 to 0xFF
     respectively, corresponding to that binary data.</p>
 
-    <p>Throws an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if the
     input string is not valid base64 data.</p>
 
    </dd>
@@ -69233,7 +69222,7 @@
   interface (part of Web Workers).</p>
 
   <p>The <dfn id=dom-windowbase64-btoa title=dom-windowbase64-btoa><code>btoa()</code></dfn>
-  method must throw an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if
+  method must throw an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if
   the method's first argument contains any character whose code point
   is greater than U+00FF. Otherwise, the user agent must convert that
   argument to a sequence of octets whose <var title="">n</var>th octet
@@ -69264,14 +69253,14 @@
 
    <li><p>If the length of <var title="">input</var> divides by 4
    leaving a remainder of 1, throw an
-   <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and abort these
+   <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception and abort these
    steps.</p>
 
    <li>
 
     <p>If <var title="">input</var> contains a character that is not
     in the following list of characters and character ranges, throw an
-    <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and abort these
+    <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception and abort these
     steps:</p>
 
     <ul class=brief><li>U+002B PLUS SIGN (+)
@@ -69960,7 +69949,7 @@
     <p><a href=#resolve-a-url title="resolve a url">Resolve</a> <var title="">url</var> relative to the <a href=#entry-script>entry script</a>'s
     <a href="#script's-base-url" title="script's base URL">base URL</a>.</p>
 
-    <p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception
+    <p>If this fails, then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception
     and abort these steps.</p>
 
    </li>
@@ -70340,11 +70329,11 @@
     placeholder for where to put the URL of the content to be
     handled.</p>
 
-    <p>Throws a <code><a href=#security_err>SECURITY_ERR</a></code> exception if the user agent
+    <p>Throws a <code><a href=#securityerror>SecurityError</a></code> exception if the user agent
     blocks the registration (this might happen if trying to register
     as a handler for "http", for instance).</p>
 
-    <p>Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the "<code title="">%s</code>" string is missing in the URL.</p>
+    <p>Throws a <code><a href=#syntaxerror>SyntaxError</a></code> if the "<code title="">%s</code>" string is missing in the URL.</p>
 
    </dd>
 
@@ -70389,8 +70378,8 @@
     <a href=#whitelisted-scheme>whitelisted scheme</a> nor a scheme whose value starts
     with the substring "<code title="">web+</code>" and otherwise
     contains only characters in the range U+0061 LATIN SMALL LETTER A
-    to U+007A LATIN SMALL LETTER Z, the user agent must raise
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+    to U+007A LATIN SMALL LETTER Z, the user agent must throw a
+    <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
     <p>The following schemes are the <dfn id=whitelisted-scheme title="whitelisted
     scheme">whitelisted schemes</dfn>:</p>
@@ -70436,8 +70425,8 @@
     <p>If the <code title=dom-navigator-registerContentHandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>
     method is invoked with a <a href=#mime-type>MIME type</a> that is in the
     <a href=#type-blacklist>type blacklist</a> or that the user agent has deemed a
-    privileged type, the user agent must raise
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+    privileged type, the user agent must throw a
+    <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
     <p>The following <a href=#mime-type title="MIME type">MIME types</a> are in
     the <dfn id=type-blacklist>type blacklist</dfn>:</p>
@@ -70469,12 +70458,12 @@
     <p>A string used to build the <a href=#url>URL</a> of the page that
     will handle the requests.</p>
 
-    <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if
+    <p>User agents must throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception if
     the <var title="">url</var> argument passed to one of these
     methods does not contain the exact literal string
     "<code>%s</code>".</p>
 
-    <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if <a href=#resolve-a-url title="resolve a url">resolving</a> the <var title="">url</var>
+    <p>User agents must throw a <code><a href=#syntaxerror>SyntaxError</a></code> if <a href=#resolve-a-url title="resolve a url">resolving</a> the <var title="">url</var>
     argument relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>, is not successful.</p>
 
     <p class=note>The resulting <a href=#absolute-url>absolute URL</a> would by
@@ -70482,7 +70471,7 @@
     string "<code title="">%s</code>" which is not a valid component
     in a URL.</p>
 
-    <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception if
+    <p>User agents must throw a <code><a href=#securityerror>SecurityError</a></code> exception if
     the resulting <a href=#absolute-url>absolute URL</a> has an <a href=#origin>origin</a>
     that differs from the <a href=#origin>origin</a> of the <a href=#entry-script>entry
     script</a>.</p>
@@ -70737,12 +70726,12 @@
    relative to the <a href="#script's-base-url" title="script's base URL">base URL</a> of
    the <a href=#entry-script>entry script</a>.</li>
 
-   <li><p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+   <li><p>If this fails, then throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception, aborting the method.</li>
 
    <li><p>If the resoluting <a href=#absolute-url>absolute URL</a>'s
    <a href=#origin>origin</a> is not the <a href=#same-origin>same origin</a> as that of
-   the <a href=#entry-script>entry script</a> throw a <a href=#security_err>SECURITY_ERR</a>
+   the <a href=#entry-script>entry script</a> throw a <a href=#securityerror>SecurityError</a>
    exception, aborting the method.</li>
 
    <li><p>Return the resulting <a href=#absolute-url>absolute URL</a> as the result
@@ -71813,7 +71802,7 @@
 
     <p>Can be set, to change that state.</p>
 
-    <p>Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the new value
+    <p>Throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception if the new value
     isn't one of those strings.</p>
 
    </dd>
@@ -71840,7 +71829,7 @@
   value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string
   "<code title="">false</code>" then the content attribute must be set
   to the string "<code title="">false</code>", and otherwise the
-  attribute setter must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
+  attribute setter must throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception.</p>
 
   <p>The <dfn id=dom-iscontenteditable title=dom-isContentEditable><code>isContentEditable</code></dfn>
   IDL attribute, on getting, must return true if the element is either
@@ -73064,7 +73053,7 @@
 
   <ol><li><p>If the <code><a href=#datatransferitemlist>DataTransferItemList</a></code> object is not in the
    <i title=concept-dnd-rw><a href=#concept-dnd-rw>read/write mode</a></i>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Remove the <var title="">i</var>th item from the <a href=#drag-data-store>drag
@@ -73095,7 +73084,7 @@
       kind">kind</a> is <i>Plain Unicode string</i> and whose <a href=#the-drag-data-item-type-string title="the drag data item type string">type string</a> is
       equal to the value of the method's second argument,
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>, then throw a
-      <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort these
+      <code><a href=#notsupportederror>NotSupportedError</a></code> exception and abort these
       steps.</p>
 
       <p>Otherwise, add an item to the <a href=#drag-data-store-item-list>drag data store item
@@ -74890,7 +74879,7 @@
    exception throwing here) -->
 
    <li><p>If both <var title="">audio</var> and <var title="">video</var>
-   are still false, then throw a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code>
+   are still false, then throw a <code><a href=#notsupportederror>NotSupportedError</a></code>
    exception and abort these steps.</li>
 
    <li><p>Return, and run the remaining steps asynchronously.</li>
@@ -76103,7 +76092,7 @@
     <p>The maximum length of <var title="">text</var> is 504 bytes
     after encoding the string as UTF-8; attempting to send a payload
     greater than 504 bytes results in an
-    <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+    <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
    </dd>
 
@@ -76459,7 +76448,7 @@
 
    <li><p>If <var title="">connection</var>'s
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li>
 
@@ -76541,13 +76530,13 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Let <var title="">data</var> be <var title="">message</var>
    encoded as UTF-8. <a href=#refsRFC3629>[RFC3629]</a></li>
 
    <li><p>If <var title="">data</var> is longer than 504 bytes,
-   throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
    <!-- IPv4: 576 (min IPv4 MTU size) - 20 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 504 -->
    <!-- IPv6: 1280 (min IPv6 MTU size) - 40 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 1188 -->
@@ -76575,7 +76564,7 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If <var title="">stream</var> is already in the
    <code><a href=#peerconnection>PeerConnection</a></code> object's <code title=dom-PeerConnection-localStreams><a href=#dom-peerconnection-localstreams>localStreams</a></code> object,
@@ -76605,7 +76594,7 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If <var title="">stream</var> is not in the
    <code><a href=#peerconnection>PeerConnection</a></code> object's <code title=dom-PeerConnection-localStreams><a href=#dom-peerconnection-localstreams>localStreams</a></code> object,
@@ -76638,7 +76627,7 @@
 
   <ol><li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Destroy the <a href=#peerconnection-ice-agent><code>PeerConnection</code> ICE
    Agent</a>, abruptly ending any active ICE processing and any
@@ -78855,7 +78844,7 @@
    script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>,
    when the method is invoked.</li>
 
-   <li><p>If this fails, throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+   <li><p>If this fails, throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception.</li>
 
    <li>
@@ -78863,7 +78852,7 @@
     <p>If the <a href=#origin>origin</a> of the resulting <a href=#absolute-url>absolute
     URL</a> is not the <a href=#same-origin title="same origin">same</a> as the
     origin of the <a href=#entry-script>entry script</a>, then throw a
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+    <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
     <p class=note>Thus, scripts must be external files with the same
     scheme as the original page: you can't load a script from a <a href=#data-protocol title="data protocol"><code title="">data:</code> URL</a> or
@@ -78972,7 +78961,7 @@
 
   <ol><li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the <var title="">scriptURL</var> argument.</li>
 
-   <li><p>If this fails, throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+   <li><p>If this fails, throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception.</li>
 
    <li><p>Otherwise, let <var title="">scriptURL</var> be the
@@ -78986,7 +78975,7 @@
 
     <p>If the <a href=#origin>origin</a> of <var title="">scriptURL</var> is
     not the <a href=#same-origin title="same origin">same</a> as the origin of the
-    <a href=#entry-script>entry script</a>, then throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+    <a href=#entry-script>entry script</a>, then throw a <code><a href=#securityerror>SecurityError</a></code>
     exception.</p>
 
     <p class=note>Thus, scripts must be external files with the same
@@ -79050,7 +79039,7 @@
       <ol><li><p>If <var title="">worker global scope</var>'s <code title=dom-WorkerGlobalScope-location><a href=#dom-workerglobalscope-location>location</a></code>
        attribute represents an <a href=#absolute-url>absolute URL</a> that is not
        exactly equal to <var title="">scriptURL</var>, then throw a
-       <code><a href=#url_mismatch_err>URL_MISMATCH_ERR</a></code> exception and abort all these
+       <code><a href=#urlmismatcherror>URLMismatchError</a></code> exception and abort all these
        steps.</li>
 
        <li><p>Associate <var title="">worker</var> with <var title="">worker global scope</var>.</li>
@@ -79200,14 +79189,14 @@
    <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> each
    argument.</li>
 
-   <li><p>If any fail, throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+   <li><p>If any fail, throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception.</li>
 
 <!--
    <li><p>If any of the resulting <span title="absolute URL">absolute
    URLs</span> have an <span>origin</span> that is not the <span
    title="same origin">same</span> as the origin of the script that
-   invoked the method, then throw a <code>SECURITY_ERR</code>
+   invoked the method, then throw a <code>SecurityError</code>
    exception.</p></li>
 -->
 
@@ -79232,7 +79221,7 @@
       to complete.</p>
 
       <p>If the fetching attempt failed, throw a
-      <code><a href=#network_err>NETWORK_ERR</a></code> exception and abort all these
+      <code><a href=#networkerror>NetworkError</a></code> exception and abort all these
       steps.</p>
 
       <p>If the attempt succeeds, then let <var title="">source</var> be
@@ -79261,7 +79250,7 @@
       "<a href=#terminate-a-worker>terminate a worker</a>" algorithms defined above.</p>
 
       <p>If it failed to parse, then throw an ECMAScript
-      <code>SyntaxError</code> exception and abort all these
+      <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
@@ -79581,7 +79570,7 @@
    URL">base URL</a>.</li>
 
    <li><p>If the previous step failed, then throw a
-   <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</li>
+   <code><a href=#syntaxerror>SyntaxError</a></code> exception.</li>
 
    <li><p>Return a new <code><a href=#eventsource>EventSource</a></code> object, and continue
    these steps in the background (without blocking scripts).</li>
@@ -80387,18 +80376,18 @@
   <ol><li><p><i><a href="#parse-a-websocket-url's-components">Parse a WebSocket URL's components</a></i> from the <var title="">url</var> argument, to obtain <var title="">host</var>,
    <var title="">port</var>, <var title="">resource name</var>, and
    <var title="">secure</var>. If this fails, throw a
-   <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps. <a href=#refsWSP>[WSP]</a></li>
+   <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these steps. <a href=#refsWSP>[WSP]</a></li>
 
    <li><p>If <var title="">secure</var> is false but the
    <a href=#origin>origin</a> of the <a href=#entry-script>entry script</a> has a scheme
    component that is itself a secure protocol, e.g. HTTPS, then throw
-   a <code><a href=#security_err>SECURITY_ERR</a></code> exception.</li>
+   a <code><a href=#securityerror>SecurityError</a></code> exception.</li>
 
    <li>
 
     <p>If <var title="">port</var> is a port to which the user agent
     is configured to block access, then throw a
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception. (User agents typically block
+    <code><a href=#securityerror>SecurityError</a></code> exception. (User agents typically block
     access to well-known ports like SMTP.)</p>
 
     <!-- e.g. http://www.mozilla.org/projects/netlib/PortBanning.html -->
@@ -80424,7 +80413,7 @@
    more than once or otherwise fail to match the requirements for
    elements that comprise the value of <code title=http-sec-websocket-protocol>Sec-WebSocket-Protocol</code>
    header fields as defined by the WebSocket protocol specification,
-   then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
+   then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these
    steps. <a href=#refsWSP>[WSP]</a></li>
 
    <li><p>Let <var title="">origin</var> be the <a href=#ascii-serialization-of-an-origin title="ASCII
@@ -80525,16 +80514,16 @@
 
   <ol><li><p>If the method's first argument is present but is not an
    integer equal to 1000 or in the range 3000 to 4999, throw an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If the method's second argument has any unpaired surrogates,
-   then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
+   then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If the method's second argument is present, then let <var title="">reason</var> be the result of encoding that argument as
    UTF-8. If <var title="">reason</var> is longer than 123 bytes, then
-   throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.
+   throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these steps.
    <a href=#refsRFC3629>[RFC3629]</a></li>
 
    <li><p>Run the first matching steps from the following list:</p>
@@ -80654,7 +80643,7 @@
   the new value is either the string "<code title="">blob</code>" or
   the string "<code title="">arraybuffer</code>", then set the IDL
   attribute to this new value. Otherwise, throw a
-  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
+  <code><a href=#syntaxerror>SyntaxError</a></code> exception.</p>
 
   <p class=note>This attribute allows authors to control how binary
   data is exposed to scripts. By setting the attribute to "<code title="">blob</code>", binary data is returned in <code><a href=#blob>Blob</a></code>
@@ -80675,7 +80664,7 @@
   <p>The <dfn id=dom-websocket-send title=dom-WebSocket-send><code>send(<var title="">data</var>)</code></dfn> method transmits data using the
   connection. If the <code title=dom-WebSocket-readyState><a href=#dom-websocket-readystate>readyState</a></code> attribute is
   <code title=dom-WebSocket-CONNECTING><a href=#dom-websocket-connecting>CONNECTING</a></code>, it must
-  raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, the
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. Otherwise, the
   user agent must run the appropriate set of steps from the following
   list:</p>
 
@@ -80684,7 +80673,7 @@
    <dd>
 
     <p>If the <var title="">data</var> argument has any unpaired
-    surrogates, then raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception. If
+    surrogates, then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception. If
     <i><a href=#the-websocket-connection-is-established>the WebSocket connection is established</a></i>, and the string has
     no unpaired surrogates, and <i title="the WebSocket closing
     handshake is started"><a href=#the-websocket-closing-handshake-is-started>the WebSocket closing handshake has not yet
@@ -80694,7 +80683,7 @@
     need to be buffered but the buffer is full, the user agent must
     <i><a href=#close-the-websocket-connection>close the WebSocket connection</a></i> <a href=#concept-websocket-close-fail title=concept-websocket-close-fail>with prejudice</a>. Any
     invokation of this method with a string argument that does not
-    raise an exception must increase the <code title=dom-WebSocket-bufferedAmount><a href=#dom-websocket-bufferedamount>bufferedAmount</a></code>
+    throw an exception must increase the <code title=dom-WebSocket-bufferedAmount><a href=#dom-websocket-bufferedamount>bufferedAmount</a></code>
     attribute by the number of bytes needed to express the argument as
     UTF-8. <a href=#refsRFC3629>[RFC3629]</a> <a href=#refsWSP>[WSP]</a></p>
 
@@ -80715,7 +80704,7 @@
     by the <code><a href=#blob>Blob</a></code> object. <!-- that sentence is meant to
     invoke "This interface represents immutable raw data." --> Any
     invokation of this method with a <code><a href=#blob>Blob</a></code> argument that
-    does not raise an exception must increase the <code title=dom-WebSocket-bufferedAmount><a href=#dom-websocket-bufferedamount>bufferedAmount</a></code>
+    does not throw an exception must increase the <code title=dom-WebSocket-bufferedAmount><a href=#dom-websocket-bufferedamount>bufferedAmount</a></code>
     attribute by the size of the <code><a href=#blob>Blob</a></code> object's raw data,
     in bytes. <!-- that sentence is meant to invoke the same as
     Blob.size --> <a href=#refsWSP>[WSP]</a> <a href=#refsFILEAPI>[FILEAPI]</a></p>
@@ -80738,7 +80727,7 @@
     sentence is meant to invoke "The ArrayBuffer type describes a
     buffer used to store data for the array buffer views." at the top
     of the Typed Array spec --> Any invokation of this method with an
-    <code><a href=#arraybuffer>ArrayBuffer</a></code> argument that does not raise an exception
+    <code><a href=#arraybuffer>ArrayBuffer</a></code> argument that does not throw an exception
     must increase the <code title=dom-WebSocket-bufferedAmount><a href=#dom-websocket-bufferedamount>bufferedAmount</a></code>
     attribute by the length of the <code><a href=#arraybuffer>ArrayBuffer</a></code> in bytes.
     <!-- that sentence is meant to invoke the same as
@@ -81105,7 +81094,7 @@
     message to same-origin targets only, without needing to explicitly
     state the origin, set the target origin to "<code title="">/</code>".</p>
 
-    <p>Throws a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> if <var title="">transfer</var> array contains duplicate objects or if
+    <p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or if
     <var title="">message</var> could not be cloned.</p>
 
    </dd>
@@ -81133,7 +81122,7 @@
     <p>If the value of the <var title="">targetOrigin</var> argument
     is neither a single U+002A ASTERISK character (*), a single U+002F
     SOLIDUS character (/), nor an <a href=#absolute-url>absolute URL</a>, then
-    throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the overall
+    throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort the overall
     set of steps.</p>
 
    </li>
@@ -81160,7 +81149,7 @@
       <p>If any object is listed in <var title="">transfer</var> more
       than once, or any of the <code><a href=#transferable>Transferable</a></code> objects
       listed in <var title="">transfer</var> have already been <a href=#transfer-a-transferable-object title="transfer a Transferable object">transfered</a> once
-      before, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and
+      before, then throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and
       abort these steps.</p>
 
      </li>
@@ -81395,7 +81384,7 @@
     <p>Posts a message through the channel. Objects listed in <var title="">transfer</var> are transferred, not just cloned, meaning
     that they are no longer usable on the sending side.</p>
 
-    <p>Throws a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> if <var title="">transfer</var> array contains duplicate objects or the
+    <p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or the
     source or target ports, or if <var title="">message</var> could
     not be cloned.</p>
 
@@ -81533,7 +81522,7 @@
       <p>If any object is listed in <var title="">transfer</var> more
       than once, or any of the <code><a href=#transferable>Transferable</a></code> objects
       listed in <var title="">transfer</var> have already been <a href=#transfer-a-transferable-object title="transfer a Transferable object">transfered</a> once
-      before, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and
+      before, then throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and
       abort these steps.</p>
 
      </li>
@@ -81542,7 +81531,7 @@
 
       <p>If any of the objects in <var title="">transfer</var> are
       either the <var title="">source port</var> or the <var title="">target port</var> (if any), then throw a
-      <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort these
+      <code><a href=#datacloneerror>DataCloneError</a></code> exception and abort these
       steps.</p>
 
      </li>
@@ -81582,7 +81571,7 @@
    </li>
 
    <li><p>If there is no <var title="">target port</var> (i.e. if <var title="">source port</var> is not entangled), then abort these
-   steps.</li> <!-- we don't raise an exception if there is no
+   steps.</li> <!-- we don't throw an exception if there is no
    target port because this can happen at a moment's notice. we don't
    return false because if the port is _about_ to be closed, the
    message might not be listened for anyway. we don't do this before
@@ -81627,7 +81616,7 @@
    <li><p>If the <var title="">source port</var> is not entangled with
    another port, then return <var title="">port1</var> and abort these
    steps.</p></li>
-   <!- - we don't raise an exception because this can happen moment's
+   <!- - we don't throw an exception because this can happen moment's
    notice. we don't return null because then we'd end up with
    null derefs. better to just let the likely next postMessage call
    fall on the floor. - ->
@@ -81927,8 +81916,8 @@
   <p>If the given <var title="">key</var> <em>does</em> exist in the
   list, then it must have its value updated to <var title="">value</var>.</p>
 
-  <p>If it couldn't set the new value, the method must raise an
-  <code><a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a></code> exception. (Setting could fail if,
+  <p>If it couldn't set the new value, the method must throw an
+  <code><a href=#quotaexceedederror>QuotaExceededError</a></code> exception. (Setting could fail if,
   e.g., the user has disabled storage for the site, or if the quota
   has been exceeded.)</p>
 
@@ -82062,13 +82051,13 @@
   initialization steps</dfn>:</p> <!-- these steps are named because
   marcos uses them from another spec -->
 
-  <ol><li><p>The user agent may throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+  <ol><li><p>The user agent may throw a <code><a href=#securityerror>SecurityError</a></code>
    exception instead of returning a <code><a href=#storage-0>Storage</a></code> object if the
    request violates a policy decision (e.g. if the user agent is
    configured to not allow the page to persist data).</li>
 
    <li><p>If the <code><a href=#document>Document</a></code>'s <a href=#origin>origin</a> is not a
-   scheme/host/port tuple, then throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+   scheme/host/port tuple, then throw a <code><a href=#securityerror>SecurityError</a></code>
    exception and abort these steps.</li>
 
    <li><p>Check to see if the user agent has allocated a local storage
@@ -82101,7 +82090,7 @@
 
   <h5 id=security-localStorage><span class=secno>12.2.3.1 </span>Security</h5>
 
-  <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
+  <p>User agents must throw a <code><a href=#securityerror>SecurityError</a></code> exception
   whenever any of the members of a <code><a href=#storage-0>Storage</a></code> object
   originally returned by the <code title=dom-localStorage><a href=#dom-localstorage>localStorage</a></code> attribute are accessed
   by scripts whose <a href=#effective-script-origin>effective script origin</a> is not the
@@ -82243,7 +82232,7 @@
 
   <!--<p>If the storage area space limit is reached during a <code
   title="dom-Storage-setItem">setItem()</code> call, the method will
-  raise an exception.</p>-->
+  throw an exception.</p>-->
 
   <p>A mostly arbitrary limit of five megabytes per
   <a href=#origin>origin</a> is recommended. Implementation feedback is
@@ -91120,7 +91109,7 @@
   algorithm</dfn>. The algorithm takes as input a DOM
   <code><a href=#element>Element</a></code>, <code><a href=#document>Document</a></code>, or
   <code><a href=#documentfragment>DocumentFragment</a></code> referred to as <var title="">the
-  node</var>, and either returns a string or raises an exception.</p>
+  node</var>, and either returns a string or throws an exception.</p>
 
   <p class=note>This algorithm serializes the <em>children</em> of
   the node being serialized, not the node itself.</p>
@@ -91314,8 +91303,8 @@
 
       </dl><p>Other node types (e.g. <code title="">Attr</code>) cannot
       occur as children of elements. If, despite this, they somehow do
-      occur, this algorithm must raise an
-      <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
+      occur, this algorithm must throw an
+      <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</p>
 
      </li>
 
@@ -91734,7 +91723,7 @@
 
   <p>The <dfn id=xml-fragment-serialization-algorithm>XML fragment serialization algorithm</dfn> for a
   <code><a href=#document>Document</a></code> or <code><a href=#element>Element</a></code> node either returns a
-  fragment of XML that represents that node or raises an
+  fragment of XML that represents that node or throws an
   exception.</p>
 
   <p>For <code><a href=#document>Document</a></code>s, the algorithm must return a string in
@@ -91770,8 +91759,8 @@
   namespace-well-formed.</p>
 
   <p>If any of the following error cases are found in the DOM subtree
-  being serialized, then the algorithm must raise an
-  <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead of returning a
+  being serialized, then the algorithm must throw an
+  <code><a href=#invalidstateerror>InvalidStateError</a></code> exception instead of returning a
   string:</p>
 
   <ul><li>A <code><a href=#document>Document</a></code> node with no child element nodes.</li>
@@ -91823,14 +91812,14 @@
   </ul><p class=note>These are the only ways to make a DOM
   unserializable. The DOM enforces all the other XML constraints; for
   example, trying to append two elements to a <code><a href=#document>Document</a></code>
-  node will raise a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+  node will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
 
 
 
   <h3 id=parsing-xhtml-fragments><span class=secno>14.4 </span>Parsing XHTML fragments</h3>
 
   <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns a
-  <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.
+  <code><a href=#document>Document</a></code> or throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception.
   Given a string <var title="">input</var> and an optional context
   element <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var>, the
   algorithm is as follows:</p>
@@ -91880,7 +91869,7 @@
    <li>
 
     <p>If there is an XML well-formedness or XML namespace
-    well-formedness error, then raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+    well-formedness error, then throw a <code><a href=#syntaxerror>SyntaxError</a></code>
     exception and abort these steps.</p>
 
    </li>
@@ -102062,7 +102051,6 @@
  v2  * become more consistent about what markup we use to mark up
        productions (nothing? <i>? <code>?)
  v2  * use <code>Document</code> consistently instead of 'document'.
- v2  * s/raise/throw/g
  v2  * be clearer about arrays/lists/collections being zero-based
        despite using the term "/index/th".
  v2  * use the sample widgets:

Modified: index
===================================================================
--- index	2011-09-29 23:57:18 UTC (rev 6601)
+++ index	2011-09-30 00:21:53 UTC (rev 6602)
@@ -243,7 +243,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 — Last Updated 29 September 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 30 September 2011</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>
@@ -3702,50 +3702,39 @@
      <li>The algorithm to <dfn id=concept-node-clone title=concept-node-clone>clone</dfn> a <code><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext title=concept-node-clone-ext>cloning steps</dfn> used by tat algorithm</li>
      <li>The concept of <span>base URL change steps</span> and the definition of what happens when an element is <span>affected by a base URL change</span>.</li>
 
-    </ul><p>The following <code><a href=#domexception>DOMException</a></code> codes are defined in
-    the DOM Core specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
+    </ul><p>The term <dfn id=throw>throw</dfn> in this specification is used as
+    defined in the DOM Core specification. The following
+    <code><a href=#domexception>DOMException</a></code> types are defined in the DOM Core
+    specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
 
-    <ol class=brief><li value=1><dfn id=index_size_err><code>INDEX_SIZE_ERR</code></dfn></li>
-     <li value=2><dfn id=domstring_size_err><code>DOMSTRING_SIZE_ERR</code></dfn></li>
-     <li value=3><dfn id=hierarchy_request_err><code>HIERARCHY_REQUEST_ERR</code></dfn></li>
-     <li value=4><dfn id=wrong_document_err><code>WRONG_DOCUMENT_ERR</code></dfn></li>
-     <li value=5><dfn id=invalid_character_err><code>INVALID_CHARACTER_ERR</code></dfn></li>
-     <li value=6><dfn id=no_data_allowed_err><code>NO_DATA_ALLOWED_ERR</code></dfn></li>
-     <li value=7><dfn id=no_modification_allowed_err><code>NO_MODIFICATION_ALLOWED_ERR</code></dfn></li>
-     <li value=8><dfn id=not_found_err><code>NOT_FOUND_ERR</code></dfn></li>
-     <li value=9><dfn id=not_supported_err><code>NOT_SUPPORTED_ERR</code></dfn></li>
-     <li value=10><dfn id=inuse_attribute_err><code>INUSE_ATTRIBUTE_ERR</code></dfn></li>
-     <li value=11><dfn id=invalid_state_err><code>INVALID_STATE_ERR</code></dfn></li>
-     <li value=12><dfn id=syntax_err><code>SYNTAX_ERR</code></dfn></li>
-     <li value=13><dfn id=invalid_modification_err><code>INVALID_MODIFICATION_ERR</code></dfn></li>
-     <li value=14><dfn id=namespace_err><code>NAMESPACE_ERR</code></dfn></li>
-     <li value=15><dfn id=invalid_access_err><code>INVALID_ACCESS_ERR</code></dfn></li>
-     <li value=16><dfn id=validation_err><code>VALIDATION_ERR</code></dfn></li>
-     <li value=17><dfn id=type_mismatch_err><code>TYPE_MISMATCH_ERR</code></dfn></li>
-     <li value=18><dfn id=security_err><code>SECURITY_ERR</code></dfn></li>
-     <li value=19><dfn id=network_err><code>NETWORK_ERR</code></dfn></li>
-     <li value=20><dfn id=abort_err><code>ABORT_ERR</code></dfn></li>
-     <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li>
-     <li value=22><dfn id=quota_exceeded_err><code>QUOTA_EXCEEDED_ERR</code></dfn></li>
-     <li value=23><dfn id=timeout_err><code>TIMEOUT_ERR</code></dfn></li>
-     <li value=24><dfn id=invalid_node_type_err><code>INVALID_NODE_TYPE_ERR</code></dfn></li>
-     <li value=25><dfn id=data_clone_err><code>DATA_CLONE_ERR</code></dfn></li>
-  <!--
-     <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-     <li value="82"><dfn><code>SERIALIZE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-  -->
-    </ol><p>When this specification requires that a user agent <i>throw</i>
-    or <i>raise</i> an exception named using a code listed above, it
-    means that the user agent is required to create a
-    <code><a href=#domexception>DOMException</a></code> exception object configured to represent
-    the condition with the given code, then handle that object as a
-    thrown exception as defined in the JavaScript specification. <a href=#refsECMA262>[ECMA262]</a></p>
+    <ol class=brief><li value=1><dfn id=indexsizeerror><code>IndexSizeError</code></dfn></li>
+     <li value=3><dfn id=hierarchyrequesterror><code>HierarchyRequestError</code></dfn></li>
+     <li value=4><dfn id=wrongdocumenterror><code>WrongDocumentError</code></dfn></li>
+     <li value=5><dfn id=invalidcharactererror><code>InvalidCharacterError</code></dfn></li>
+     <li value=7><dfn id=nomodificationallowederror><code>NoModificationAllowedError</code></dfn></li>
+     <li value=8><dfn id=notfounderror><code>NotFoundError</code></dfn></li>
+     <li value=9><dfn id=notsupportederror><code>NotSupportedError</code></dfn></li>
+     <li value=11><dfn id=invalidstateerror><code>InvalidStateError</code></dfn></li>
+     <li value=12><dfn id=syntaxerror><code>SyntaxError</code></dfn></li>
+     <li value=13><dfn id=invalidmodificationerror><code>InvalidModificationError</code></dfn></li>
+     <li value=14><dfn id=namespaceerror><code>NamespaceError</code></dfn></li>
+     <li value=15><dfn id=invalidaccesserror><code>InvalidAccessError</code></dfn></li>
+     <li value=17><dfn id=typemismatcherror><code>TypeMismatchError</code></dfn></li>
+     <li value=18><dfn id=securityerror><code>SecurityError</code></dfn></li>
+     <li value=19><dfn id=networkerror><code>NetworkError</code></dfn></li>
+     <li value=20><dfn id=aborterror><code>AbortError</code></dfn></li>
+     <li value=21><dfn id=urlmismatcherror><code>URLMismatchError</code></dfn></li>
+     <li value=22><dfn id=quotaexceedederror><code>QuotaExceededError</code></dfn></li>
+     <li value=23><dfn id=timeouterror><code>TimeoutError</code></dfn></li>
+     <li value=24><dfn id=invalidnodetypeerror><code>InvalidNodeTypeError</code></dfn></li>
+     <li value=25><dfn id=datacloneerror><code>DataCloneError</code></dfn></li>
+    </ol><p class=example>For example, to <i>throw a
+    <code><a href=#timeouterror>TimeoutError</a></code> exception</i>, a user agent would
+    construct a <code><a href=#domexception>DOMException</a></code> object whose type was the
+    string "<code title="">TimeoutError</code>" (and whose code was
+    the number 23, for legacy reasons) and actually throw that object
+    as an exception.</p>
 
-    <p class=example>For example, to <i>throw a
-    <code><a href=#timeout_err>TIMEOUT_ERR</a></code> exception</i>, a user agent would
-    construct a <code><a href=#domexception>DOMException</a></code> object whose code was set to
-    23 and actually throw that object as an exception.</p>
-
     <p>The following features are defined in the DOM Events
     specification: <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
 
@@ -3816,13 +3805,13 @@
 
     <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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be
+    (NaN) value, a <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be
     raised.</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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised.</p>
 
    </dd>
 
@@ -7959,7 +7948,7 @@
   value, or if the attribute is absent, the default value must be
   returned instead, or −1 if there is no default value. On
   setting, if the value is negative, the user agent must throw an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. Otherwise, the given value
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise, the given value
   must be converted to the shortest possible string representing the
   number as a <a href=#valid-non-negative-integer>valid non-negative integer</a> and then that
   string must be used as the new content attribute value.</p>
@@ -7992,7 +7981,7 @@
   fails or returns an out of range value, or if the attribute is
   absent, the default value must be returned instead, or 1 if there is
   no default value. On setting, if the value is zero, the user agent
-  must throw an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. Otherwise, the
+  must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise, the
   given value must be converted to the shortest possible string
   representing the number as a <a href=#valid-non-negative-integer>valid non-negative integer</a>
   and then that string must be used as the new content attribute
@@ -8366,7 +8355,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
+    <p>This method will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -8464,12 +8453,12 @@
   <ol><li><p>If <var title="">element</var> is an ancestor of the
    <code><a href=#the-select-element>select</a></code> element on which the
    <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw a
-   <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</li>
+   <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</li>
 
    <li><p>If <var title="">before</var> is an element, but that
    element isn't a descendant of the <code><a href=#the-select-element>select</a></code> element on
    which the <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw
-   a <code><a href=#not_found_err>NOT_FOUND_ERR</a></code> exception.</li>
+   a <code><a href=#notfounderror>NotFoundError</a></code> exception.</li>
 
    <li><p>If <var title="">element</var> and <var title="">before</var> are the same element, then return and abort
    these steps.</li>
@@ -8854,7 +8843,7 @@
 
      <dd><p>Let <var title="">output</var> be a newly constructed <code><a href=#filelist>FileList</a></code> object containing a list of newly constructed <code><a href=#file>File</a></code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</dd>
 
-<!--(when we add this, make sure to throw DATA_CLONE_ERR if these objects are already closed)
+<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
      <dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
 
      <dd><p>...</p></dd>
@@ -8884,7 +8873,7 @@
      <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code><a href=#function>Function</a></code>)</dt>
      <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-     <dd><p>Throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort
+     <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>
@@ -9184,8 +9173,8 @@
 
   <h4 id=security-document><span class=secno>3.1.2 </span>Security</h4>
 
-  <p id=security>User agents <span class=impl>must</span> raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any properties of a
+  <p id=security>User agents <span class=impl>must</span> throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
   <code><a href=#document>Document</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the <a href=#same-origin title="same
   origin">same</a> as the <code><a href=#document>Document</a></code>'s <a href=#effective-script-origin>effective
@@ -9248,7 +9237,7 @@
     context flag">sandboxed into a unique origin</a> (in an
     <code><a href=#the-iframe-element>iframe</a></code> with the <code title=attr-iframe-sandbox><a href=#attr-iframe-sandbox>sandbox</a></code> attribute) or the
     resource was labeled as <code><a href=#text/html-sandboxed>text/html-sandboxed</a></code>, a
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception will be thrown on getting and
+    <code><a href=#securityerror>SecurityError</a></code> exception will be thrown on getting and
     setting.</p>
    </dd>
 
@@ -9275,8 +9264,8 @@
   <a href=#cookie-free-document-object>cookie-free <code>Document</code> object</a>, then the user
   agent must return the empty string. Otherwise, if the
   <code><a href=#document>Document</a></code>'s <a href=#origin>origin</a> is not a
-  scheme/host/port tuple, the user agent must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception. Otherwise, the user agent must
+  scheme/host/port tuple, the user agent must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception. Otherwise, the user agent must
   first <a href=#obtain-the-storage-mutex>obtain the storage mutex</a> and then return the
   cookie-string for <a href="#the-document's-address">the document's address</a> for a
   "non-HTTP" API, <a href=#decoded-as-utf-8,-with-error-handling>decoded as UTF-8, with error handling</a>.
@@ -9286,7 +9275,7 @@
   <code>Document</code> object</a>, then the user agent must do
   nothing. Otherwise, if the <code><a href=#document>Document</a></code>'s
   <a href=#origin>origin</a> is not a scheme/host/port tuple, the user agent
-  must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception. Otherwise, the
+  must throw a <code><a href=#securityerror>SecurityError</a></code> exception. Otherwise, the
   user agent must <a href=#obtain-the-storage-mutex>obtain the storage mutex</a> and then act
   as it would when <a href=#receives-a-set-cookie-string title="receives a
   set-cookie-string">receiving a set-cookie-string</a> for
@@ -9486,7 +9475,7 @@
    <dd>
     <p>Returns <a href=#the-body-element-0>the body element</a>.</p>
     <p>Can be set, to replace <a href=#the-body-element-0>the body element</a>.</p>
-    <p>If the new value is not a <code><a href=#the-body-element>body</a></code> or <code><a href=#frameset>frameset</a></code> element, this will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <p>If the new value is not a <code><a href=#the-body-element>body</a></code> or <code><a href=#frameset>frameset</a></code> element, this will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
   </dl><p><dfn id=the-body-element-0>The body element</dfn> of a document is the first child of
@@ -9513,8 +9502,8 @@
     http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/dom/Document.cpp
     search for ::body
    --><li>If the new value is not a <code><a href=#the-body-element>body</a></code> or
-   <code><a href=#frameset>frameset</a></code> element, then raise a
-   <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception and abort these
+   <code><a href=#frameset>frameset</a></code> element, then throw a
+   <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception and abort these
    steps.</li>
 
    <li>Otherwise, if the new value is the same as <a href=#the-body-element-0>the body
@@ -9833,12 +9822,12 @@
 
    <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the method's
    first argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>. If this is not
-   successful, throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort
+   successful, throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort
    these steps. Otherwise, let <var title="">url</var> be the
    resulting <a href=#absolute-url>absolute URL</a>.</li>
 
    <li><p>If the <a href=#origin>origin</a> of <var title="">url</var> is not
-   the same as the <a href=#origin>origin</a> of <var title="">document</var>, throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+   the same as the <a href=#origin>origin</a> of <var title="">document</var>, throw a <code><a href=#securityerror>SecurityError</a></code>
    exception and abort these steps.</li>
 <!--SYNCLOAD
    <li><p>If <code title="dom-XMLDocumentLoader-async">async</code> is
@@ -10984,7 +10973,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these
+     Z), throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort these
      steps.</li>
 
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -10997,8 +10986,8 @@
 
      <li>Set the value of the attribute with the name <var title="">name</var>, to the value <var title="">value</var>,
      replacing any previous value if the attribute already existed. If
-     <code title="">setAttribute()</code> would have raised an
-     exception when setting an attribute with the name <var title="">name</var>, then this must raise the same
+     <code title="">setAttribute()</code> would have thrown an
+     exception when setting an attribute with the name <var title="">name</var>, then this must throw the same
      exception.</li>
 
     </ol></dd>
@@ -11012,7 +11001,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code>SYNTAX_ERR</code> exception and abort these
+     Z), throw a <code>SyntaxError</code> exception and abort these
      steps.</li>
 -->
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -12637,7 +12626,7 @@
     <p>The method has no effect if the <code><a href=#document>Document</a></code> is still
     being parsed.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     <code><a href=#document>Document</a></code> is an <a href=#xml-documents title="XML documents">XML
     document</a>.</p>
 
@@ -12658,7 +12647,7 @@
   follows:</p>
 
   <ol><li>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML document</a>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">type</var> be the value of the first
@@ -12832,8 +12821,8 @@
   object of the <code><a href=#htmldocument>HTMLDocument</a></code> object, with the same
   arguments as the original call to the <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method, and return whatever
   that method returned. If the <code><a href=#htmldocument>HTMLDocument</a></code> object has no
-  <code><a href=#window>Window</a></code> object, then the method must raise an
-  <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+  <code><a href=#window>Window</a></code> object, then the method must throw an
+  <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
   </div>
 
@@ -12847,7 +12836,7 @@
 
     <p>Closes the input stream that was opened by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     <code><a href=#document>Document</a></code> is an <a href=#xml-documents title="XML documents">XML
     document</a>.</p>
 
@@ -12860,7 +12849,7 @@
 
   <ol><li><p>If the <code><a href=#document>Document</a></code> object is not flagged as an
    <a href=#html-documents title="HTML documents">HTML document</a>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If there is no <a href=#script-created-parser>script-created parser</a> associated
@@ -12902,7 +12891,7 @@
     these reasons, use of this method is strongly
     discouraged.</strong></p>
 
-    <p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
+    <p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
     when invoked on <a href=#xml-documents>XML documents</a>.</p>
 
    </dd>
@@ -12922,7 +12911,7 @@
   <ol><li>
 
     <p>If the method was invoked on an <a href=#xml-documents title="XML documents">XML
-    document</a>, throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    document</a>, throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
     exception and abort these steps.</p>
 
     <!--
@@ -13006,7 +12995,7 @@
     <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
     first.</p>
 
-    <p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
+    <p>This method throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception
     when invoked on <a href=#xml-documents>XML documents</a>.</p>
 
    </dd>
@@ -19318,8 +19307,8 @@
    browsing context given a browsing context name</a>, using the
    value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
 
    <li><p>If the target of the <code title=event-click><a href=#event-click>click</a></code>
@@ -27754,7 +27743,7 @@
 
     <p>Can be set, to seek to the given time.<p>
 
-    <p>Will throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if there
+    <p>Will throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if there
     is no selected <a href=#media-resource>media resource</a>
     or if there is a <a href=#current-media-controller>current media controller</a>.</p>
 
@@ -27878,7 +27867,7 @@
   position</a>. The returned value must be expressed in seconds. On
   setting, if the <a href=#media-element>media element</a> has a <a href=#current-media-controller>current media
   controller</a>, then the user agent must throw an
-  <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception; otherwise, if the
+  <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if the
   <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> is <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, then it must set
   the <a href=#media-element>media element</a>'s <a href=#default-playback-start-position>default playback start
   position</a> to the new value; otherwise, it must set the
@@ -28029,7 +28018,7 @@
    <dd>Enough of the resource has been obtained that the duration of
    the resource is available. In the case of a <code><a href=#the-video-element>video</a></code>
    element, the dimensions of the video are also available. The API
-   will no longer raise an exception when seeking. No <a href=#media-data>media
+   will no longer throw an exception when seeking. No <a href=#media-data>media
    data</a> is available for the immediate <a href=#current-playback-position>current playback
    position</a>.
    The <a href=#text-track title="text track">text tracks</a>
@@ -29769,7 +29758,7 @@
 
     <p>Can be set, to change the volume multiplier.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the new value is not
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -29940,7 +29929,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=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised instead.</p>
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised instead.</p>
 
   <p>The <dfn id=dom-mediacontroller-muted title=dom-MediaController-muted><code>muted</code></dfn>
   attribute, on getting, must return the
@@ -31334,7 +31323,7 @@
    <dt><dfn id=dom-texttrack-showing title=dom-TextTrack-SHOWING><code>SHOWING</code></dfn> (numeric value 2)</dt>
    <dd>The <a href=#text-track-showing>text track showing</a> and <a href=#text-track-showing-by-default title="text track showing by default">showing by default</a> modes.</dd>
   </dl><p>On setting, if the new value is not either 0, 1, or 2, the user
-  agent must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+  agent must throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code>
   exception. Otherwise, if the new value isn't equal to what the
   attribute would currently return, the new value must be processed as
   follows:</p>
@@ -31424,13 +31413,13 @@
    <dt><var title="">mutableTextTrack</var> . <code title=dom-MutableTextTrack-addCue><a href=#dom-mutabletexttrack-addcue>addCue</a></code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Adds the given cue to <var title="">mutableTextTrack</var>'s <a href=#text-track-list-of-cues>text track list of cues</a>.</p>
-    <p>Raises an exception if the argument is associated with another <a href=#text-track>text track</a> or already in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <a href=#text-track>text track</a> or already in the list of cues.</p>
    </dd>
 
    <dt><var title="">mutableTextTrack</var> . <code title=dom-MutableTextTrack-removeCue><a href=#dom-mutabletexttrack-removecue>removeCue</a></code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Removes the given cue from <var title="">mutableTextTrack</var>'s <a href=#text-track-list-of-cues>text track list of cues</a>.</p>
-    <p>Raises an exception if the argument is associated with another <a href=#text-track>text track</a> or not in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <a href=#text-track>text track</a> or not in the list of cues.</p>
    </dd>
 
   </dl><div class=impl>
@@ -31442,7 +31431,7 @@
   <ol><li>
 
     <p>If <var title="">kind</var> is not one of the following
-    strings, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort
+    strings, then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort
     these steps:</p>
 
     <ul class=brief><li><code title=dom-TextTrack-kind-subtitles><a href=#dom-texttrack-kind-subtitles>subtitles</a></code>
@@ -31508,7 +31497,7 @@
   <ol><li><p>If the given <var title="">cue</var> is already associated
    with a <a href=#text-track>text track</a> other than the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>,
-   then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort
+   then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort
    these steps.</li>
 
    <li><p>Associate <var title="">cue</var> with the method's
@@ -31519,7 +31508,7 @@
    <li><p>If the given <var title="">cue</var> is already listed in
    the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
    track</a>'s <a href=#text-track-list-of-cues>text track list of cues</a>, then throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Add <var title="">cue</var> to the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>'s
@@ -31531,13 +31520,13 @@
 
   <ol><li><p>If the given <var title="">cue</var> is not associated with
    the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
-   track</a>, then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+   track</a>, then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
    exception.</li>
 
    <li><p>If the given <var title="">cue</var> is not currently listed
    in the method's <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text
    track</a>'s <a href=#text-track-list-of-cues>text track list of cues</a>, then throw a
-   <code><a href=#not_found_err>NOT_FOUND_ERR</a></code> exception.</li>
+   <code><a href=#notfounderror>NotFoundError</a></code> exception.</li>
 
    <li><p>Remove <var title="">cue</var> from the method's
    <code><a href=#mutabletexttrack>MutableTextTrack</a></code> object's <a href=#text-track>text track</a>'s
@@ -34035,7 +34024,7 @@
 
     <p>Can be set, to change the volume.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the new value is not
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -34063,7 +34052,7 @@
   the new value is in the range 0.0 to 1.0 inclusive, the playback
   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=#index_size_err>INDEX_SIZE_ERR</a></code>
+  to 1.0 inclusive, then, on setting, an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception must be raised instead.</p>
 
   <p>The <dfn id=dom-media-muted title=dom-media-muted><code>muted</code></dfn>
@@ -34174,7 +34163,7 @@
 
     <p>Returns the time for the start of the range with the given index.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the index is out of range.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the index is out of range.</p>
 
    </dd>
 
@@ -34184,7 +34173,7 @@
 
     <p>Returns the time for the end of the range with the given index.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> if the index is out of range.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> if the index is out of range.</p>
 
    </dd>
 
@@ -34203,7 +34192,7 @@
   the object, in seconds measured from the start of the timeline that
   the object covers.</p>
 
-  <p>These methods must raise <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exceptions
+  <p>These methods must throw <code><a href=#indexsizeerror>IndexSizeError</a></code> exceptions
   if called with an <var title="">index</var> argument greater than or
   equal to the number of ranges represented by the object.</p>
 
@@ -34921,7 +34910,7 @@
   specification. <a href=#refsWEBIDL>[WEBIDL]</a></p>
 
   <p>Other arguments must be ignored and must not cause the user agent
-  to raise an exception. A future version of this specification will
+  to throw an exception. A future version of this specification will
   probably define other parameters to be passed to these methods to
   allow authors to more carefully control compression settings, image
   metadata, etc.</p>
@@ -35625,8 +35614,8 @@
     given offset. 0.0 is the offset at one end of the gradient, 1.0 is
     the offset at the other end.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the offset
-    is out of range. Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the offset
+    is out of range. Throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception if the
     color cannot be parsed.</p>
 
    </dd>
@@ -35640,7 +35629,7 @@
     coordinates represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
 
    </dd>
 
@@ -35653,8 +35642,8 @@
     represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. If either of the radii
-    are negative, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either of the radii
+    are negative, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -35664,8 +35653,8 @@
   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=#index_size_err>INDEX_SIZE_ERR</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>
-  value</a>, then a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception must be
+  <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>
+  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
   offset <var title="">offset</var> relative to the whole gradient,
   and with the color obtained by parsing <var title="">color</var> as
@@ -35679,8 +35668,8 @@
   <p>The <dfn id=dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient><code>createLinearGradient(<var title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>,
   <var title="">y1</var>)</code></dfn> method takes four arguments
   that represent the start point (<var title="">x0</var>, <var title="">y0</var>) and end point (<var title="">x1</var>, <var title="">y1</var>) of the gradient. If any of the arguments to <code title=dom-context-2d-createLinearGradient><a href=#dom-context-2d-createlineargradient>createLinearGradient()</a></code>
-  are infinite or NaN, the method must raise a
-  <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. Otherwise, the method must
+  are infinite or NaN, the method must throw a
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. Otherwise, the method must
   return a linear <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the
   specified line.</p>
 
@@ -35701,9 +35690,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=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised. If either
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be raised. If either
   of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. Otherwise,
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be raised. Otherwise,
   the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
   initialized with the two specified circles.</p>
 
@@ -35762,8 +35751,8 @@
     <p>The allowed values for <var title="">repetition</var> are <code title="">repeat</code> (both directions), <code title="">repeat-x</code> (horizontal only), <code title="">repeat-y</code> (vertical only), and <code title="">no-repeat</code> (neither). If the <var title="">repetition</var> argument is empty, the value <code title="">repeat</code> is used.</p>
 
     <p>If the image has no image data, throws an
-    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. If the second argument
-    isn't one of the allowed values, throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+    <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. If the second argument
+    isn't one of the allowed values, throws a <code><a href=#syntaxerror>SyntaxError</a></code>
     exception. If the image isn't yet fully decoded, then the method
     returns null.</p>
 
@@ -35781,7 +35770,7 @@
   <code title="">repeat-x</code>, <code title="">repeat-y</code>,
   <code title="">no-repeat</code>. If the empty string is specified,
   <code title="">repeat</code> must be assumed. If an unrecognized value
-  is given, then the user agent must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+  is given, then the user agent must throw a <code><a href=#syntaxerror>SyntaxError</a></code>
   exception. User agents must recognize the four values described above
   exactly (e.g. they must not do case folding). Except as specified
   below, the method must return a <code><a href=#canvaspattern>CanvasPattern</a></code> object
@@ -35802,7 +35791,7 @@
   <p>If the <var title="">image</var> argument is an
   <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+  implementation must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
   exception.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
@@ -36323,7 +36312,7 @@
     current subpath, connected to the previous point by a straight
     line.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -36338,7 +36327,7 @@
     in the given direction (defaulting to clockwise), is added to the
     path, connected to the previous point by a straight line.</p>
 
-    <p>Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception if the given
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -36491,7 +36480,7 @@
   arguments and the last point in the subpath, as described below.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  implementation to throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>Let the point (<var title="">x0</var>, <var title="">y0</var>) be
@@ -36555,7 +36544,7 @@
   zero length in both directions.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  implementation to throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <hr><p>The <dfn id=dom-context-2d-rect title=dom-context-2d-rect><code>rect(<var title="">x</var>, <var title="">y</var>, <var title="">w</var>, <var title="">h</var>)</code></dfn> method must create a new subpath
@@ -37355,10 +37344,10 @@
 
     <p>If the first argument isn't an <code><a href=#the-img-element>img</a></code>,
     <code><a href=#the-canvas-element>canvas</a></code>, or <code><a href=#the-video-element>video</a></code> element, throws a
-    <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code> exception. If the image has no
-    image data, throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. If
+    <code><a href=#typemismatcherror>TypeMismatchError</a></code> exception. If the image has no
+    image data, throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. If
     the one of the source rectangle dimensions is zero, throws an
-    <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. If the image isn't yet
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. If the image isn't yet
     fully decoded, then nothing is drawn.</p>
 
    </dd>
@@ -37393,7 +37382,7 @@
   <p>If the <var title="">image</var> argument is an
   <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+  implementation must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
   exception.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
@@ -37401,8 +37390,8 @@
   points (<var title="">sx</var>, <var title="">sy</var>), (<span title=""><var title="">sx</var>+<var title="">sw</var></span>, <var title="">sy</var>), (<span title=""><var title="">sx</var>+<var title="">sw</var></span>, <span title=""><var title="">sy</var>+<var title="">sh</var></span>), (<var title="">sx</var>, <span title=""><var title="">sy</var>+<var title="">sh</var></span>).</p>
 
   <p>If one of the <var title="">sw</var> or <var title="">sh</var>
-  arguments is zero, the implementation must raise an
-  <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  arguments is zero, the implementation must throw an
+  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   <p>The destination rectangle is the rectangle whose corners are the
   four points (<var title="">dx</var>, <var title="">dy</var>),
@@ -37497,8 +37486,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
+    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
     exception if the either of the width or height arguments are
     zero.</p>
 
@@ -37537,8 +37526,8 @@
     etc.</p>
 
     <p>If the first argument is null, throws a
-    <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code> exception. Throws a
-    <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception if any of the other
+    <code><a href=#typemismatcherror>TypeMismatchError</a></code> exception. Throws a
+    <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the other
     arguments are not finite.</p>
 
    </dd>
@@ -37568,9 +37557,9 @@
 
   <p>If any of the arguments to <code title=dom-context-2d-createImageData><a href=#dom-context-2d-createimagedata>createImageData()</a></code> or
   <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code>
-  are infinite or NaN, the method must instead raise a
-  <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. If either the <var title="">sw</var> or <var title="">sh</var> arguments are zero,
-  the method must instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  are infinite or NaN, the method must instead throw a
+  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either the <var title="">sw</var> or <var title="">sh</var> arguments are zero,
+  the method must instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p><code><a href=#imagedata>ImageData</a></code> objects must be initialized so that their
@@ -37601,7 +37590,7 @@
   <code><a href=#imagedata>ImageData</a></code> structures back to the canvas.</p>
 
   <p>If any of the arguments to the method are infinite or NaN, the
-  method must raise a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception.</p>
+  method must throw a <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
 
   <p>When the last four arguments are omitted, they must be assumed to
   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>
@@ -38057,21 +38046,21 @@
 
   </ul><p>Whenever the <code title=dom-canvas-toDataURL><a href=#dom-canvas-todataurl>toDataURL()</a></code> method of a
   <code><a href=#the-canvas-element>canvas</a></code> element whose <i>origin-clean</i> flag is set to
-  false is called, the method must raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+  false is called, the method must throw a <code><a href=#securityerror>SecurityError</a></code>
   exception.</p>
 
   <p>Whenever the <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code> method of
   the 2D context of a <code><a href=#the-canvas-element>canvas</a></code> element whose
   <i>origin-clean</i> flag is set to false is called with otherwise
-  correct arguments, the method must raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+  correct arguments, the method must throw a <code><a href=#securityerror>SecurityError</a></code>
   exception.</p>
 
   <p>Whenever the <code title=dom-context-2d-measureText><a href=#dom-context-2d-measuretext>measureText()</a></code> method of
   the 2D context of a <code><a href=#the-canvas-element>canvas</a></code> element ends up using a font
   that has an <a href=#origin>origin</a> that is not the <a href=#same-origin title="same
   origin">same</a> as that of the <code><a href=#document>Document</a></code> object that
-  owns the <code><a href=#the-canvas-element>canvas</a></code> element, the method must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+  owns the <code><a href=#the-canvas-element>canvas</a></code> element, the method must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
   <p class=note>Even resetting the canvas state by changing its
   <code title=attr-canvas-width><a href=#attr-canvas-width>width</a></code> or <code title=attr-canvas-height><a href=#attr-canvas-height>height</a></code> attributes doesn't reset
@@ -38386,8 +38375,8 @@
    browsing context given a browsing context name</a>, using the
    value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Otherwise, the user agent must <a href=#following-hyperlinks title="following
@@ -39055,7 +39044,7 @@
     <p>Returns the table's <code><a href=#the-caption-element>caption</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-caption-element>caption</a></code> element. If the
     new value is not a <code><a href=#the-caption-element>caption</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">caption</var> = <var title="">table</var> . <code title=dom-table-createCaption><a href=#dom-table-createcaption>createCaption</a></code>()</dt>
@@ -39073,7 +39062,7 @@
     <p>Returns the table's <code><a href=#the-thead-element>thead</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-thead-element>thead</a></code> element. If the
     new value is not a <code><a href=#the-thead-element>thead</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">thead</var> = <var title="">table</var> . <code title=dom-table-createTHead><a href=#dom-table-createthead>createTHead</a></code>()</dt>
@@ -39091,7 +39080,7 @@
     <p>Returns the table's <code><a href=#the-tfoot-element>tfoot</a></code> element.</p>
     <p>Can be set, to replace the <code><a href=#the-tfoot-element>tfoot</a></code> element. If the
     new value is not a <code><a href=#the-tfoot-element>tfoot</a></code> element, throws a
-    <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+    <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">tfoot</var> = <var title="">table</var> . <code title=dom-table-createTFoot><a href=#dom-table-createtfoot>createTFoot</a></code>()</dt>
@@ -39123,14 +39112,14 @@
    <dd>
     <p>Creates a <code><a href=#the-tr-element>tr</a></code> element, along with a <code><a href=#the-tbody-element>tbody</a></code> if required, inserts them into the table at the position given by the argument, and returns the <code><a href=#the-tr-element>tr</a></code>.</p>
     <p>The position is relative to the rows in the table. The index −1 is equivalent to inserting at the end of the table.</p>
-    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">table</var> . <code title=dom-table-deleteRow><a href=#dom-table-deleterow>deleteRow</a></code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code><a href=#the-tr-element>tr</a></code> element with the given position in the table.</p>
     <p>The position is relative to the rows in the table. The index −1 is equivalent to deleting the last row of the table.</p>
-    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
   </dl><div class=impl>
@@ -39143,7 +39132,7 @@
   <code><a href=#the-table-element>table</a></code> element, if any, must be removed, and the new
   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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be
+  then a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be
   raised instead.</p>
 
   <p>The <dfn id=dom-table-createcaption title=dom-table-createCaption><code>createCaption()</code></dfn>
@@ -39167,7 +39156,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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be raised
+  <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn id=dom-table-createthead title=dom-table-createTHead><code>createTHead()</code></dfn>
@@ -39194,7 +39183,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=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be raised
+  a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn id=dom-table-createtfoot title=dom-table-createTFoot><code>createTFoot()</code></dfn>
@@ -39248,7 +39237,7 @@
    the number of elements in <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code>
    collection:</dt>
 
-   <dd>The method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+   <dd>The method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
    exception.</dd>
 
    <dt>If the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection has
@@ -39293,7 +39282,7 @@
 
    <li><p>Now, if <var title="">index</var> is less than zero, or
    greater than or equal to the number of elements in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection, the method must
-   instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception, and these
+   instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception, and these
    steps must be aborted.</li>
 
    <li><p>Otherwise, the method must remove the <var title="">index</var>th element in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection from its parent.</p>
@@ -39792,14 +39781,14 @@
    <dd>
     <p>Creates a <code><a href=#the-tr-element>tr</a></code> element, inserts it into the table section at the position given by the argument, and returns the <code><a href=#the-tr-element>tr</a></code>.</p>
     <p>The position is relative to the rows in the table section. The index −1, which is the default if the argument is omitted, is equivalent to inserting at the end of the table section.</p>
-    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the number of rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
    <dt><var title="">tbody</var> . <code title=dom-tbody-deleteRow><a href=#dom-tbody-deleterow>deleteRow</a></code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code><a href=#the-tr-element>tr</a></code> element with the given position in the table section.</p>
     <p>The position is relative to the rows in the table section. The index −1 is equivalent to deleting the last row of the table section.</p>
-    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <p>If the given position is less than −1 or greater than the index of the last row, or if there are no rows, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
    </dd>
 
   </dl><div class=impl>
@@ -39814,7 +39803,7 @@
 
   <p>If <var title="">index</var> is less than −1 or greater than the
   number of elements in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code>
-  collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to −1, or
@@ -39831,7 +39820,7 @@
   <p>The <dfn id=dom-tbody-deleterow title=dom-tbody-deleteRow><code>deleteRow(<var title="">index</var>)</code></dfn> method must remove the <var title="">index</var>th element in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection from its parent. If
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection, the method must
-  instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   </div>
 
@@ -40016,7 +40005,7 @@
     is equivalent to inserting at the end of the row.</p>
 
     <p>If the given position is less than −1 or greater than
-    the number of cells, throws an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+    the number of cells, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
     exception.</p>
 
    </dd>
@@ -40032,7 +40021,7 @@
 
     <p>If the given position is less than −1 or greater than
     the index of the last cell, or if there are no cells, throws an
-    <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -40067,7 +40056,7 @@
 
   <p>If <var title="">index</var> is less than −1 or greater than the
   number of elements in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code>
-  collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
+  collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to −1, or
@@ -40084,7 +40073,7 @@
   <p>The <dfn id=dom-tr-deletecell title=dom-tr-deleteCell><code>deleteCell(<var title="">index</var>)</code></dfn> method must remove the <var title="">index</var>th element in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection from its parent. If
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, the method must
-  instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
+  instead throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
   </div>
 
@@ -47976,7 +47965,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if it is
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if it is
     set to any value other than the empty string when the control is a
     file upload control.</p>
 
@@ -48014,7 +48003,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     control isn't date- or time-based.</p>
 
    </dd>
@@ -48028,7 +48017,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </dd>
@@ -48043,7 +48032,7 @@
     <var title="">n</var>. The default value for <var title="">n</var>
     is 1.</p>
 
-    <p>Throws <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the control
+    <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control
     is neither date- or time-based nor numeric, if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>", if the current <a href=#concept-fe-value title=concept-fe-value>value</a> could not be parsed, or if
     stepping in the given direction by the given amount would take the
     value out of range.</p>
@@ -48123,7 +48112,7 @@
     first file in the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>, if
     any, or the empty string if the list is empty. On setting, if the
     new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
-    otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+    otherwise, it must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code>
     exception.</p>
 
     <p class=note>This "fakepath" requirement is a sad accident of
@@ -48161,7 +48150,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> attribute does not
   apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception; otherwise, if
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if
   the new value is null, then set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to the empty
   string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a>, as defined for that
@@ -48188,7 +48177,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> attribute does
   not apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, if
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. Otherwise, if
   the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAs<em>Date</em></a></code>
   attribute applies, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a> defined for that state,
@@ -48205,17 +48194,17 @@
   <ol><li><p>If the <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
    <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods do not
    apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-   throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
+   throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If the element has no <a href=#concept-input-step title=concept-input-step>allowed value step</a>, then throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
    string to a number</a> to the string given by the element's
    <a href=#concept-fe-value title=concept-fe-value>value</a> results in an error,
-   then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort
+   then throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception, and abort
    these steps; otherwise, let <var title="">value</var> be the result
    of that algorithm.</li>
 
@@ -48229,10 +48218,10 @@
 
    <li><p>Let <var title="">value</var> be the result of adding <var title="">delta</var> to <var title="">value</var>.</li>
    <li><p>If the element has a <a href=#concept-input-min title=concept-input-min>minimum</a>, and the <var title="">value</var> is less than that <a href=#concept-input-min title=concept-input-min>minimum</a>, then throw a
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If the element has a <a href=#concept-input-max title=concept-input-max>maximum</a>, and the <var title="">value</var> is greater than that <a href=#concept-input-max title=concept-input-max>maximum</a>, then throw a
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Let <var title="">value as string</var> be the result of
    running the <a href=#concept-input-value-number-string title=concept-input-value-number-string>algorithm to convert a
@@ -48788,7 +48777,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
+    <p>This method will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -51351,8 +51340,8 @@
   </dl><div class=impl>
 
   <p>When these methods and attributes are used with
-  <code><a href=#the-input-element>input</a></code> elements while they don't apply, they must raise
-  an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, they must
+  <code><a href=#the-input-element>input</a></code> elements while they don't apply, they must throw
+  an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception. Otherwise, they must
   act as described below.</p>
 
   <p>For <code><a href=#the-input-element>input</a></code> elements, these methods and attributes
@@ -57814,7 +57803,7 @@
     <p>Can be set, to change the element's <a href=#concept-property-value title=concept-property-value>value</a>. Setting the <a href=#concept-property-value title=concept-property-value>value</a> when the element has
     no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute or when
     the element's value is an <a href=#concept-item title=concept-item>item</a>
-    throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+    throws an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
    </dd>
 
@@ -57865,13 +57854,13 @@
   <dl><dt>If the element has no <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute</dt>
 
    <dd><p>The attribute must return null on getting and must throw an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on setting.</p>
+   <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception on setting.</p>
 
 
    <dt>If the element has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
 
    <dd><p>The attribute must return the element itself on getting and
-   must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception on
+   must throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception on
    setting.</p>
 
 
@@ -61376,7 +61365,7 @@
 
     <p>Returns null if there isn't one.</p>
 
-    <p>Throws a <code><a href=#security_err>SECURITY_ERR</a></code> exception in cross-origin situations.</p>
+    <p>Throws a <code><a href=#securityerror>SecurityError</a></code> exception in cross-origin situations.</p>
 
    </dd>
 
@@ -61414,7 +61403,7 @@
    <li><p>If the <a href=#browsing-context-container>browsing context container</a>'s
    <code><a href=#document>Document</a></code> does not have the <a href=#same-origin title="same
    origin">same</a> <a href=#effective-script-origin>effective script origin</a> as the
-   <a href=#entry-script>entry script</a>, then throw a <code><a href=#security_err>SECURITY_ERR</a></code>
+   <a href=#entry-script>entry script</a>, then throw a <code><a href=#securityerror>SecurityError</a></code>
    exception.</li>
 
    <li><p>Otherwise, return the <a href=#browsing-context-container>browsing context
@@ -62027,8 +62016,8 @@
 
   <h4 id=security-window><span class=secno>6.2.1 </span>Security</h4>
 
-  <p id=security-2>User agents must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any properties of a
+  <p id=security-2>User agents must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any properties of a
   <code><a href=#window>Window</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the same as the
   <code><a href=#window>Window</a></code> object's <code><a href=#document>Document</a></code>'s <a href=#effective-script-origin>effective
@@ -63093,7 +63082,7 @@
   <ol><li>
 
     <p>If the <code><a href=#document>Document</a></code> has no <a href=#browsing-context>browsing
-    context</a>, throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and
+    context</a>, throw a <code><a href=#securityerror>SecurityError</a></code> exception and
     abort these steps.</p>
 
    </li>
@@ -63108,7 +63097,7 @@
 
     <p>If ToASCII fails to convert one of the components of the
     string, e.g. because it is too long or because it contains invalid
-    characters, then throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort
+    characters, then throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort
     these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
 
    </li>
@@ -63122,7 +63111,7 @@
     <ol><li>
 
       <p>If the current value is an IP address, throw a
-      <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these steps.</p>
+      <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps.</p>
 
      </li>
 
@@ -63130,7 +63119,7 @@
 
       <p>If <var title="">new value</var>, prefixed by a U+002E FULL
       STOP (.), does not exactly match the end of the current value,
-      throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these
+      throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
       steps.</p>
 
      </li>
@@ -63141,7 +63130,7 @@
       Public Suffix List, or, if <var title="">new value</var>,
       prefixed by a U+002E FULL STOP (.), matches the end of a
       suffix in the Public Suffix List, then throw a
-      <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these steps. <a href=#refsPSL>[PSL]</a></p>
+      <code><a href=#securityerror>SecurityError</a></code> exception and abort these steps. <a href=#refsPSL>[PSL]</a></p>
 
       <p>Suffixes must be compared after applying the IDNA ToASCII
       algorithm to them, with both the AllowUnassigned and
@@ -63542,12 +63531,12 @@
     <ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
      third argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>.</li>
 
-     <li>If that fails, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
+     <li>If that fails, throw a <code><a href=#securityerror>SecurityError</a></code> exception
      and abort these steps.</li>
 
      <li>Compare the resulting <a href=#absolute-url>absolute URL</a> to <a href="#the-document's-address">the
      document's address</a>. If any part of these two <a href=#url title=URL>URLs</a> differ other than the <a href=#url-path title=url-path><path></a>, <a href=#url-query title=url-query><query></a>, and <a href=#url-fragment title=url-fragment><fragment></a> components, then
-     raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these
+     throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort these
      steps.</li>
 
      <li>If the <a href=#origin>origin</a> of the resulting <a href=#absolute-url>absolute
@@ -63555,7 +63544,7 @@
      <a href=#entry-script>entry script</a>'s <a href="#script's-document" title="script's
      document">document</a>, and either the <a href=#url-path title=url-path><path></a> or <a href=#url-query title=url-query><query></a> components of the two
      <a href=#url title=URL>URLs</a> compared in the previous step
-     differ, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort
+     differ, throw a <code><a href=#securityerror>SecurityError</a></code> exception and abort
      these steps. (This prevents sandboxed content from spoofing other
      pages on the same origin.)</li>
 
@@ -63901,7 +63890,7 @@
   <p>If the <a href=#resolve-a-url title="resolve a url">resolving</a> step of the
   <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> and <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> methods is not
   successful, then the user agent must instead throw a
-  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
+  <code><a href=#syntaxerror>SyntaxError</a></code> exception.</p>
 
   <p>When the <dfn id=dom-location-reload title=dom-location-reload><code>reload()</code></dfn> method is
   invoked, the user agent must run the appropriate steps from the
@@ -63972,7 +63961,7 @@
   to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base
   URL">base URL</a>, and if that succeeds, return the resulting
   <a href=#absolute-url>absolute URL</a>. If it fails, it must throw a
-  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception instead.</p>
+  <code><a href=#syntaxerror>SyntaxError</a></code> exception instead.</p>
 
   </div>
 
@@ -63981,8 +63970,8 @@
 
   <h5 id=security-location><span class=secno>6.4.3.1 </span>Security</h5>
 
-  <p id=security-3>User agents must raise a
-  <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever any of the members of a
+  <p id=security-3>User agents must throw a
+  <code><a href=#securityerror>SecurityError</a></code> exception whenever any of the members of a
   <code><a href=#location>Location</a></code> object are accessed by scripts whose
   <a href=#effective-script-origin>effective script origin</a> is not the <a href=#same-origin title="same
   origin">same</a> as the <code><a href=#location>Location</a></code> object's associated
@@ -67473,7 +67462,7 @@
 
     <p>Invokes the <a href=#application-cache-download-process>application cache download process</a>.</p>
 
-    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if there is no application cache to update.</p>
+    <p>Throws an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if there is no application cache to update.</p>
 
     <p>Calling this method is not usually necessary, as user agents
     will generally take care of updating <a href=#application-cache title="application
@@ -67502,7 +67491,7 @@
 
     <p>Switches to the most recent application cache, if there is a
     newer one. If there isn't, throws an
-    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
+    <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</p>
 
     <p>This does not cause previously-loaded resources to be reloaded;
     for example, images do not suddenly get reloaded and style sheets
@@ -67613,7 +67602,7 @@
   <a href=#cache-host>cache host</a> is associated, but without giving that
   <a href=#cache-host>cache host</a> to the algorithm. If there is no such
   <a href=#application-cache>application cache</a>, or if it is marked as <a href=#concept-appcache-obsolete title=concept-appcache-obsolete>obsolete</a>, then the method
-  must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead.</p>
+  must throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception instead.</p>
 
   <p>If the <dfn id=dom-appcache-abort title=dom-appcache-abort><code>abort()</code></dfn>
   method is invoked, the user agent must <dfn id=send-a-signal>send a signal</dfn> to
@@ -67629,8 +67618,8 @@
 
   <ol><li><p>Check that <code><a href=#applicationcache>ApplicationCache</a></code> object's
    <a href=#cache-host>cache host</a> is associated with an <a href=#application-cache>application
-   cache</a>. If it is not, then raise an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   cache</a>. If it is not, then throw an
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">cache</var> be the <a href=#application-cache>application
@@ -67647,8 +67636,8 @@
    <li><p>Check that there is an application cache in the same
    <a href=#application-cache-group>application cache group</a> as <var title="">cache</var>
    whose <a href=#concept-appcache-completeness title=concept-appcache-completeness>completeness
-   flag</a> is <i>complete</i> and that is <a href=#concept-appcache-newer title=concept-appcache-newer>newer</a> than <var title="">cache</var>. If there is not, then raise an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   flag</a> is <i>complete</i> and that is <a href=#concept-appcache-newer title=concept-appcache-newer>newer</a> than <var title="">cache</var>. If there is not, then throw an
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">new cache</var> be the <a href=#concept-appcache-newer title=concept-appcache-newer>newest</a> <a href=#application-cache>application
@@ -68063,7 +68052,7 @@
   <p>User agents may impose resource limitations on scripts, for
   example CPU quotas, memory limits, total execution time limits, or
   bandwidth limitations. When a script exceeds a limit, the user agent
-  may either throw a <code><a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a></code> exception, abort
+  may either throw a <code><a href=#quotaexceedederror>QuotaExceededError</a></code> exception, abort
   the script without an exception, prompt the user, or throttle script
   execution.</p>
 
@@ -69093,7 +69082,7 @@
     representing a binary byte with values 0x00 to 0xFF respectively,
     and converts it to its base64 representation, which it returns.</p>
 
-    <p>Throws an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if the
     input string contains any out-of-range characters.</p>
 
    </dd>
@@ -69108,7 +69097,7 @@
     each representing a binary byte with values 0x00 to 0xFF
     respectively, corresponding to that binary data.</p>
 
-    <p>Throws an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if the
     input string is not valid base64 data.</p>
 
    </dd>
@@ -69120,7 +69109,7 @@
   interface (part of Web Workers).</p>
 
   <p>The <dfn id=dom-windowbase64-btoa title=dom-windowbase64-btoa><code>btoa()</code></dfn>
-  method must throw an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception if
+  method must throw an <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception if
   the method's first argument contains any character whose code point
   is greater than U+00FF. Otherwise, the user agent must convert that
   argument to a sequence of octets whose <var title="">n</var>th octet
@@ -69151,14 +69140,14 @@
 
    <li><p>If the length of <var title="">input</var> divides by 4
    leaving a remainder of 1, throw an
-   <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and abort these
+   <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception and abort these
    steps.</p>
 
    <li>
 
     <p>If <var title="">input</var> contains a character that is not
     in the following list of characters and character ranges, throw an
-    <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and abort these
+    <code><a href=#invalidcharactererror>InvalidCharacterError</a></code> exception and abort these
     steps:</p>
 
     <ul class=brief><li>U+002B PLUS SIGN (+)
@@ -69850,7 +69839,7 @@
     <p><a href=#resolve-a-url title="resolve a url">Resolve</a> <var title="">url</var> relative to the <a href=#entry-script>entry script</a>'s
     <a href="#script's-base-url" title="script's base URL">base URL</a>.</p>
 
-    <p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception
+    <p>If this fails, then throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception
     and abort these steps.</p>
 
    </li>
@@ -70230,11 +70219,11 @@
     placeholder for where to put the URL of the content to be
     handled.</p>
 
-    <p>Throws a <code><a href=#security_err>SECURITY_ERR</a></code> exception if the user agent
+    <p>Throws a <code><a href=#securityerror>SecurityError</a></code> exception if the user agent
     blocks the registration (this might happen if trying to register
     as a handler for "http", for instance).</p>
 
-    <p>Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if the "<code title="">%s</code>" string is missing in the URL.</p>
+    <p>Throws a <code><a href=#syntaxerror>SyntaxError</a></code> if the "<code title="">%s</code>" string is missing in the URL.</p>
 
    </dd>
 
@@ -70279,8 +70268,8 @@
     <a href=#whitelisted-scheme>whitelisted scheme</a> nor a scheme whose value starts
     with the substring "<code title="">web+</code>" and otherwise
     contains only characters in the range U+0061 LATIN SMALL LETTER A
-    to U+007A LATIN SMALL LETTER Z, the user agent must raise
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+    to U+007A LATIN SMALL LETTER Z, the user agent must throw a
+    <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
     <p>The following schemes are the <dfn id=whitelisted-scheme title="whitelisted
     scheme">whitelisted schemes</dfn>:</p>
@@ -70326,8 +70315,8 @@
     <p>If the <code title=dom-navigator-registerContentHandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>
     method is invoked with a <a href=#mime-type>MIME type</a> that is in the
     <a href=#type-blacklist>type blacklist</a> or that the user agent has deemed a
-    privileged type, the user agent must raise
-    <code><a href=#security_err>SECURITY_ERR</a></code> exception.</p>
+    privileged type, the user agent must throw a
+    <code><a href=#securityerror>SecurityError</a></code> exception.</p>
 
     <p>The following <a href=#mime-type title="MIME type">MIME types</a> are in
     the <dfn id=type-blacklist>type blacklist</dfn>:</p>
@@ -70359,12 +70348,12 @@
     <p>A string used to build the <a href=#url>URL</a> of the page that
     will handle the requests.</p>
 
-    <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if
+    <p>User agents must throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception if
     the <var title="">url</var> argument passed to one of these
     methods does not contain the exact literal string
     "<code>%s</code>".</p>
 
-    <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> if <a href=#resolve-a-url title="resolve a url">resolving</a> the <var title="">url</var>
+    <p>User agents must throw a <code><a href=#syntaxerror>SyntaxError</a></code> if <a href=#resolve-a-url title="resolve a url">resolving</a> the <var title="">url</var>
     argument relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>, is not successful.</p>
 
     <p class=note>The resulting <a href=#absolute-url>absolute URL</a> would by
@@ -70372,7 +70361,7 @@
     string "<code title="">%s</code>" which is not a valid component
     in a URL.</p>
 
-    <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception if
+    <p>User agents must throw a <code><a href=#securityerror>SecurityError</a></code> exception if
     the resulting <a href=#absolute-url>absolute URL</a> has an <a href=#origin>origin</a>
     that differs from the <a href=#origin>origin</a> of the <a href=#entry-script>entry
     script</a>.</p>
@@ -70627,12 +70616,12 @@
    relative to the <a href="#script's-base-url" title="script's base URL">base URL</a> of
    the <a href=#entry-script>entry script</a>.</li>
 
-   <li><p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+   <li><p>If this fails, then throw a <code><a href=#syntaxerror>SyntaxError</a></code>
    exception, aborting the method.</li>
 
    <li><p>If the resoluting <a href=#absolute-url>absolute URL</a>'s
    <a href=#origin>origin</a> is not the <a href=#same-origin>same origin</a> as that of
-   the <a href=#entry-script>entry script</a> throw a <a href=#security_err>SECURITY_ERR</a>
+   the <a href=#entry-script>entry script</a> throw a <a href=#securityerror>SecurityError</a>
    exception, aborting the method.</li>
 
    <li><p>Return the resulting <a href=#absolute-url>absolute URL</a> as the result
@@ -71709,7 +71698,7 @@
 
     <p>Can be set, to change that state.</p>
 
-    <p>Throws a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the new value
+    <p>Throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception if the new value
     isn't one of those strings.</p>
 
    </dd>
@@ -71736,7 +71725,7 @@
   value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string
   "<code title="">false</code>" then the content attribute must be set
   to the string "<code title="">false</code>", and otherwise the
-  attribute setter must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
+  attribute setter must throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception.</p>
 
   <p>The <dfn id=dom-iscontenteditable title=dom-isContentEditable><code>isContentEditable</code></dfn>
   IDL attribute, on getting, must return true if the element is either
@@ -72960,7 +72949,7 @@
 
   <ol><li><p>If the <code><a href=#datatransferitemlist>DataTransferItemList</a></code> object is not in the
    <i title=concept-dnd-rw><a href=#concept-dnd-rw>read/write mode</a></i>, throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these
    steps.</li>
 
    <li><p>Remove the <var title="">i</var>th item from the <a href=#drag-data-store>drag
@@ -72991,7 +72980,7 @@
       kind">kind</a> is <i>Plain Unicode string</i> and whose <a href=#the-drag-data-item-type-string title="the drag data item type string">type string</a> is
       equal to the value of the method's second argument,
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>, then throw a
-      <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort these
+      <code><a href=#notsupportederror>NotSupportedError</a></code> exception and abort these
       steps.</p>
 
       <p>Otherwise, add an item to the <a href=#drag-data-store-item-list>drag data store item
@@ -74786,7 +74775,7 @@
    exception throwing here) -->
 
    <li><p>If both <var title="">audio</var> and <var title="">video</var>
-   are still false, then throw a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code>
+   are still false, then throw a <code><a href=#notsupportederror>NotSupportedError</a></code>
    exception and abort these steps.</li>
 
    <li><p>Return, and run the remaining steps asynchronously.</li>
@@ -75999,7 +75988,7 @@
     <p>The maximum length of <var title="">text</var> is 504 bytes
     after encoding the string as UTF-8; attempting to send a payload
     greater than 504 bytes results in an
-    <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+    <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception.</p>
 
    </dd>
 
@@ -76355,7 +76344,7 @@
 
    <li><p>If <var title="">connection</var>'s
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li>
 
@@ -76437,13 +76426,13 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Let <var title="">data</var> be <var title="">message</var>
    encoded as UTF-8. <a href=#refsRFC3629>[RFC3629]</a></li>
 
    <li><p>If <var title="">data</var> is longer than 504 bytes,
-   throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
+   throw an <code><a href=#invalidaccesserror>InvalidAccessError</a></code> exception and abort these
    steps.</li>
    <!-- IPv4: 576 (min IPv4 MTU size) - 20 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 504 -->
    <!-- IPv6: 1280 (min IPv6 MTU size) - 40 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 1188 -->
@@ -76471,7 +76460,7 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If <var title="">stream</var> is already in the
    <code><a href=#peerconnection>PeerConnection</a></code> object's <code title=dom-PeerConnection-localStreams><a href=#dom-peerconnection-localstreams>localStreams</a></code> object,
@@ -76501,7 +76490,7 @@
 
    <li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>If <var title="">stream</var> is not in the
    <code><a href=#peerconnection>PeerConnection</a></code> object's <code title=dom-PeerConnection-localStreams><a href=#dom-peerconnection-localstreams>localStreams</a></code> object,
@@ -76534,7 +76523,7 @@
 
   <ol><li><p>If the <code><a href=#peerconnection>PeerConnection</a></code> object's
    <a href=#peerconnection-readiness-state><code>PeerConnection</code> readiness state</a> is <code title=dom-PeerConnection-CLOSED><a href=#dom-peerconnection-closed>CLOSED</a></code> (3), throw an
-   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</li>
 
    <li><p>Destroy the <a href=#peerconnection-ice-agent><code>PeerConnection</code> ICE
    Agent</a>, abruptly ending any active ICE processing and any
@@ -77228,7 +77217,7 @@
     message to same-origin targets only, without needing to explicitly
     state the origin, set the target origin to "<code title="">/</code>".</p>
 
-    <p>Throws a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> if <var title="">transfer</var> array contains duplicate objects or if
+    <p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or if
     <var title="">message</var> could not be cloned.</p>
 
    </dd>
@@ -77256,7 +77245,7 @@
     <p>If the value of the <var title="">targetOrigin</var> argument
     is neither a single U+002A ASTERISK character (*), a single U+002F
     SOLIDUS character (/), nor an <a href=#absolute-url>absolute URL</a>, then
-    throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the overall
+    throw a <code><a href=#syntaxerror>SyntaxError</a></code> exception and abort the overall
     set of steps.</p>
 
    </li>
@@ -77283,7 +77272,7 @@
       <p>If any object is listed in <var title="">transfer</var> more
       than once, or any of the <code><a href=#transferable>Transferable</a></code> objects
       listed in <var title="">transfer</var> have already been <a href=#transfer-a-transferable-object title="transfer a Transferable object">transfered</a> once
-      before, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and
+      before, then throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and
       abort these steps.</p>
 
      </li>
@@ -77518,7 +77507,7 @@
     <p>Posts a message through the channel. Objects listed in <var title="">transfer</var> are transferred, not just cloned, meaning
     that they are no longer usable on the sending side.</p>
 
-    <p>Throws a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> if <var title="">transfer</var> array contains duplicate objects or the
+    <p>Throws a <code><a href=#datacloneerror>DataCloneError</a></code> if <var title="">transfer</var> array contains duplicate objects or the
     source or target ports, or if <var title="">message</var> could
     not be cloned.</p>
 
@@ -77656,7 +77645,7 @@
       <p>If any object is listed in <var title="">transfer</var> more
       than once, or any of the <code><a href=#transferable>Transferable</a></code> objects
       listed in <var title="">transfer</var> have already been <a href=#transfer-a-transferable-object title="transfer a Transferable object">transfered</a> once
-      before, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and
+      before, then throw a <code><a href=#datacloneerror>DataCloneError</a></code> exception and
       abort these steps.</p>
 
      </li>
@@ -77665,7 +77654,7 @@
 
       <p>If any of the objects in <var title="">transfer</var> are
       either the <var title="">source port</var> or the <var title="">target port</var> (if any), then throw a
-      <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort these
+      <code><a href=#datacloneerror>DataCloneError</a></code> exception and abort these
       steps.</p>
 
      </li>
@@ -77705,7 +77694,7 @@
    </li>
 
    <li><p>If there is no <var title="">target port</var> (i.e. if <var title="">source port</var> is not entangled), then abort these
-   steps.</li> <!-- we don't raise an exception if there is no
+   steps.</li> <!-- we don't throw an exception if there is no
    target port because this can happen at a moment's notice. we don't
    return false because if the port is _about_ to be closed, the
    message might not be listened for anyway. we don't do this before
@@ -77750,7 +77739,7 @@
    <li><p>If the <var title="">source port</var> is not entangled with
    another port, then return <var title="">port1</var> and abort these
    steps.</p></li>
-   <!- - we don't raise an exception because this can happen moment's
+   <!- - we don't throw an exception because this can happen moment's
    notice. we don't return null because then we'd end up with
    null derefs. better to just let the likely next postMessage call
    fall on the floor. - ->
@@ -86545,7 +86534,7 @@
   algorithm</dfn>. The algorithm takes as input a DOM
   <code><a href=#element>Element</a></code>, <code><a href=#document>Document</a></code>, or
   <code><a href=#documentfragment>DocumentFragment</a></code> referred to as <var title="">the
-  node</var>, and either returns a string or raises an exception.</p>
+  node</var>, and either returns a string or throws an exception.</p>
 
   <p class=note>This algorithm serializes the <em>children</em> of
   the node being serialized, not the node itself.</p>
@@ -86739,8 +86728,8 @@
 
       </dl><p>Other node types (e.g. <code title="">Attr</code>) cannot
       occur as children of elements. If, despite this, they somehow do
-      occur, this algorithm must raise an
-      <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
+      occur, this algorithm must throw an
+      <code><a href=#invalidstateerror>InvalidStateError</a></code> exception.</p>
 
      </li>
 
@@ -87159,7 +87148,7 @@
 
   <p>The <dfn id=xml-fragment-serialization-algorithm>XML fragment serialization algorithm</dfn> for a
   <code><a href=#document>Document</a></code> or <code><a href=#element>Element</a></code> node either returns a
-  fragment of XML that represents that node or raises an
+  fragment of XML that represents that node or throws an
   exception.</p>
 
   <p>For <code><a href=#document>Document</a></code>s, the algorithm must return a string in
@@ -87195,8 +87184,8 @@
   namespace-well-formed.</p>
 
   <p>If any of the following error cases are found in the DOM subtree
-  being serialized, then the algorithm must raise an
-  <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead of returning a
+  being serialized, then the algorithm must throw an
+  <code><a href=#invalidstateerror>InvalidStateError</a></code> exception instead of returning a
   string:</p>
 
   <ul><li>A <code><a href=#document>Document</a></code> node with no child element nodes.</li>
@@ -87248,14 +87237,14 @@
   </ul><p class=note>These are the only ways to make a DOM
   unserializable. The DOM enforces all the other XML constraints; for
   example, trying to append two elements to a <code><a href=#document>Document</a></code>
-  node will raise a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</p>
+  node will throw a <code><a href=#hierarchyrequesterror>HierarchyRequestError</a></code> exception.</p>
 
 
 
   <h3 id=parsing-xhtml-fragments><span class=secno>12.4 </span>Parsing XHTML fragments</h3>
 
   <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns a
-  <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.
+  <code><a href=#document>Document</a></code> or throws a <code><a href=#syntaxerror>SyntaxError</a></code> exception.
   Given a string <var title="">input</var> and an optional context
   element <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var>, the
   algorithm is as follows:</p>
@@ -87305,7 +87294,7 @@
    <li>
 
     <p>If there is an XML well-formedness or XML namespace
-    well-formedness error, then raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
+    well-formedness error, then throw a <code><a href=#syntaxerror>SyntaxError</a></code>
     exception and abort these steps.</p>
 
    </li>
@@ -97630,7 +97619,6 @@
  v2  * become more consistent about what markup we use to mark up
        productions (nothing? <i>? <code>?)
  v2  * use <code>Document</code> consistently instead of 'document'.
- v2  * s/raise/throw/g
  v2  * be clearer about arrays/lists/collections being zero-based
        despite using the term "/index/th".
  v2  * use the sample widgets:

Modified: source
===================================================================
--- source	2011-09-29 23:57:18 UTC (rev 6601)
+++ source	2011-09-30 00:21:53 UTC (rev 6602)
@@ -2715,54 +2715,41 @@
 
     </ul>
 
-    <p>The following <code>DOMException</code> codes are defined in
-    the DOM Core specification: <a
-    href="#refsDOMCORE">[DOMCORE]</a></p>
+    <p>The term <dfn>throw</dfn> in this specification is used as
+    defined in the DOM Core specification. The following
+    <code>DOMException</code> types are defined in the DOM Core
+    specification: <a href="#refsDOMCORE">[DOMCORE]</a></p>
 
     <ol class="brief">
-     <li value="1"><dfn><code>INDEX_SIZE_ERR</code></dfn></li>
-     <li value="2"><dfn><code>DOMSTRING_SIZE_ERR</code></dfn></li>
-     <li value="3"><dfn><code>HIERARCHY_REQUEST_ERR</code></dfn></li>
-     <li value="4"><dfn><code>WRONG_DOCUMENT_ERR</code></dfn></li>
-     <li value="5"><dfn><code>INVALID_CHARACTER_ERR</code></dfn></li>
-     <li value="6"><dfn><code>NO_DATA_ALLOWED_ERR</code></dfn></li>
-     <li value="7"><dfn><code>NO_MODIFICATION_ALLOWED_ERR</code></dfn></li>
-     <li value="8"><dfn><code>NOT_FOUND_ERR</code></dfn></li>
-     <li value="9"><dfn><code>NOT_SUPPORTED_ERR</code></dfn></li>
-     <li value="10"><dfn><code>INUSE_ATTRIBUTE_ERR</code></dfn></li>
-     <li value="11"><dfn><code>INVALID_STATE_ERR</code></dfn></li>
-     <li value="12"><dfn><code>SYNTAX_ERR</code></dfn></li>
-     <li value="13"><dfn><code>INVALID_MODIFICATION_ERR</code></dfn></li>
-     <li value="14"><dfn><code>NAMESPACE_ERR</code></dfn></li>
-     <li value="15"><dfn><code>INVALID_ACCESS_ERR</code></dfn></li>
-     <li value="16"><dfn><code>VALIDATION_ERR</code></dfn></li>
-     <li value="17"><dfn><code>TYPE_MISMATCH_ERR</code></dfn></li>
-     <li value="18"><dfn><code>SECURITY_ERR</code></dfn></li>
-     <li value="19"><dfn><code>NETWORK_ERR</code></dfn></li>
-     <li value="20"><dfn><code>ABORT_ERR</code></dfn></li>
-     <li value="21"><dfn><code>URL_MISMATCH_ERR</code></dfn></li>
-     <li value="22"><dfn><code>QUOTA_EXCEEDED_ERR</code></dfn></li>
-     <li value="23"><dfn><code>TIMEOUT_ERR</code></dfn></li>
-     <li value="24"><dfn><code>INVALID_NODE_TYPE_ERR</code></dfn></li>
-     <li value="25"><dfn><code>DATA_CLONE_ERR</code></dfn></li>
-  <!--
-     <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-     <li value="82"><dfn><code>SERIALIZE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
-  -->
+     <li value="1"><dfn><code>IndexSizeError</code></dfn></li>
+     <li value="3"><dfn><code>HierarchyRequestError</code></dfn></li>
+     <li value="4"><dfn><code>WrongDocumentError</code></dfn></li>
+     <li value="5"><dfn><code>InvalidCharacterError</code></dfn></li>
+     <li value="7"><dfn><code>NoModificationAllowedError</code></dfn></li>
+     <li value="8"><dfn><code>NotFoundError</code></dfn></li>
+     <li value="9"><dfn><code>NotSupportedError</code></dfn></li>
+     <li value="11"><dfn><code>InvalidStateError</code></dfn></li>
+     <li value="12"><dfn><code>SyntaxError</code></dfn></li>
+     <li value="13"><dfn><code>InvalidModificationError</code></dfn></li>
+     <li value="14"><dfn><code>NamespaceError</code></dfn></li>
+     <li value="15"><dfn><code>InvalidAccessError</code></dfn></li>
+     <li value="17"><dfn><code>TypeMismatchError</code></dfn></li>
+     <li value="18"><dfn><code>SecurityError</code></dfn></li>
+     <li value="19"><dfn><code>NetworkError</code></dfn></li>
+     <li value="20"><dfn><code>AbortError</code></dfn></li>
+     <li value="21"><dfn><code>URLMismatchError</code></dfn></li>
+     <li value="22"><dfn><code>QuotaExceededError</code></dfn></li>
+     <li value="23"><dfn><code>TimeoutError</code></dfn></li>
+     <li value="24"><dfn><code>InvalidNodeTypeError</code></dfn></li>
+     <li value="25"><dfn><code>DataCloneError</code></dfn></li>
     </ol>
 
-    <p>When this specification requires that a user agent <i>throw</i>
-    or <i>raise</i> an exception named using a code listed above, it
-    means that the user agent is required to create a
-    <code>DOMException</code> exception object configured to represent
-    the condition with the given code, then handle that object as a
-    thrown exception as defined in the JavaScript specification. <a
-    href="#refsECMA262">[ECMA262]</a></p>
-
     <p class="example">For example, to <i>throw a
-    <code>TIMEOUT_ERR</code> exception</i>, a user agent would
-    construct a <code>DOMException</code> object whose code was set to
-    23 and actually throw that object as an exception.</p>
+    <code>TimeoutError</code> exception</i>, a user agent would
+    construct a <code>DOMException</code> object whose type was the
+    string "<code title="">TimeoutError</code>" (and whose code was
+    the number 23, for legacy reasons) and actually throw that object
+    as an exception.</p>
 
     <p>The following features are defined in the DOM Events
     specification: <a href="#refsDOMEVENTS">[DOMEVENTS]</a></p>
@@ -2846,13 +2833,13 @@
     <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>NOT_SUPPORTED_ERR</code> exception must be
+    (NaN) value, a <code>NotSupportedError</code> exception must be
     raised.</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>NOT_SUPPORTED_ERR</code> exception must be raised.</p>
+    <code>NotSupportedError</code> exception must be raised.</p>
 
    </dd>
 
@@ -7922,7 +7909,7 @@
   value, or if the attribute is absent, the default value must be
   returned instead, or &#x2212;1 if there is no default value. On
   setting, if the value is negative, the user agent must throw an
-  <code>INDEX_SIZE_ERR</code> exception. Otherwise, the given value
+  <code>IndexSizeError</code> exception. Otherwise, the given value
   must be converted to the shortest possible string representing the
   number as a <span>valid non-negative integer</span> and then that
   string must be used as the new content attribute value.</p>
@@ -7955,7 +7942,7 @@
   fails or returns an out of range value, or if the attribute is
   absent, the default value must be returned instead, or 1 if there is
   no default value. On setting, if the value is zero, the user agent
-  must throw an <code>INDEX_SIZE_ERR</code> exception. Otherwise, the
+  must throw an <code>IndexSizeError</code> exception. Otherwise, the
   given value must be converted to the shortest possible string
   representing the number as a <span>valid non-negative integer</span>
   and then that string must be used as the new content attribute
@@ -8389,7 +8376,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code>HIERARCHY_REQUEST_ERR</code>
+    <p>This method will throw a <code>HierarchyRequestError</code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -8515,12 +8502,12 @@
    <li><p>If <var title="">element</var> is an ancestor of the
    <code>select</code> element on which the
    <code>HTMLOptionsCollection</code> is rooted, then throw a
-   <code>HIERARCHY_REQUEST_ERR</code> exception.</li>
+   <code>HierarchyRequestError</code> exception.</li>
 
    <li><p>If <var title="">before</var> is an element, but that
    element isn't a descendant of the <code>select</code> element on
    which the <code>HTMLOptionsCollection</code> is rooted, then throw
-   a <code>NOT_FOUND_ERR</code> exception.</p></li>
+   a <code>NotFoundError</code> exception.</p></li>
 
    <li><p>If <var title="">element</var> and <var
    title="">before</var> are the same element, then return and abort
@@ -8967,7 +8954,7 @@
 
      <dd><p>Let <var title="">output</var> be a newly constructed <code>FileList</code> object containing a list of newly constructed <code>File</code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</p></dd>
 
-<!--(when we add this, make sure to throw DATA_CLONE_ERR if these objects are already closed)
+<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
      <dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
 
      <dd><p>...</p></dd>
@@ -8998,7 +8985,7 @@
      <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code>Function</code>)</dt>
      <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-     <dd><p>Throw a <code>DATA_CLONE_ERR</code> exception and abort
+     <dd><p>Throw a <code>DataCloneError</code> exception and abort
      the overall <span>structured clone</span> algorithm.</p></dd>
 
     </dl>
@@ -9329,8 +9316,8 @@
 
   <h4 id="security-document">Security</h4>
 
-  <p id="security">User agents <span class="impl">must</span> raise a
-  <code>SECURITY_ERR</code> exception whenever any properties of a
+  <p id="security">User agents <span class="impl">must</span> throw a
+  <code>SecurityError</code> exception whenever any properties of a
   <code>Document</code> object are accessed by scripts whose
   <span>effective script origin</span> is not the <span title="same
   origin">same</span> as the <code>Document</code>'s <span>effective
@@ -9408,7 +9395,7 @@
     <code>iframe</code> with the <code
     title="attr-iframe-sandbox">sandbox</code> attribute) or the
     resource was labeled as <code>text/html-sandboxed</code>, a
-    <code>SECURITY_ERR</code> exception will be thrown on getting and
+    <code>SecurityError</code> exception will be thrown on getting and
     setting.</p>
    </dd>
 
@@ -9443,8 +9430,8 @@
   <span>cookie-free <code>Document</code> object</span>, then the user
   agent must return the empty string. Otherwise, if the
   <code>Document</code>'s <span>origin</span> is not a
-  scheme/host/port tuple, the user agent must raise a
-  <code>SECURITY_ERR</code> exception. Otherwise, the user agent must
+  scheme/host/port tuple, the user agent must throw a
+  <code>SecurityError</code> exception. Otherwise, the user agent must
   first <span>obtain the storage mutex</span> and then return the
   cookie-string for <span>the document's address</span> for a
   "non-HTTP" API, <span>decoded as UTF-8, with error handling</span>.
@@ -9454,7 +9441,7 @@
   <code>Document</code> object</span>, then the user agent must do
   nothing. Otherwise, if the <code>Document</code>'s
   <span>origin</span> is not a scheme/host/port tuple, the user agent
-  must raise a <code>SECURITY_ERR</code> exception. Otherwise, the
+  must throw a <code>SecurityError</code> exception. Otherwise, the
   user agent must <span>obtain the storage mutex</span> and then act
   as it would when <span title="receives a
   set-cookie-string">receiving a set-cookie-string</span> for
@@ -9711,7 +9698,7 @@
    <dd>
     <p>Returns <span>the body element</span>.</p>
     <p>Can be set, to replace <span>the body element</span>.</p>
-    <p>If the new value is not a <code>body</code> or <code>frameset</code> element, this will throw a <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
+    <p>If the new value is not a <code>body</code> or <code>frameset</code> element, this will throw a <code>HierarchyRequestError</code> exception.</p>
    </dd>
 
   </dl>
@@ -9744,8 +9731,8 @@
    -->
 
    <li>If the new value is not a <code>body</code> or
-   <code>frameset</code> element, then raise a
-   <code>HIERARCHY_REQUEST_ERR</code> exception and abort these
+   <code>frameset</code> element, then throw a
+   <code>HierarchyRequestError</code> exception and abort these
    steps.</li>
 
    <li>Otherwise, if the new value is the same as <span>the body
@@ -10133,13 +10120,13 @@
    <li><p><span title="resolve a url">Resolve</span> the method's
    first argument, relative to the <span>entry script</span>'s <span
    title="script's base URL">base URL</span>. If this is not
-   successful, throw a <code>SYNTAX_ERR</code> exception and abort
+   successful, throw a <code>SyntaxError</code> exception and abort
    these steps. Otherwise, let <var title="">url</var> be the
    resulting <span>absolute URL</span>.</p></li>
 
    <li><p>If the <span>origin</span> of <var title="">url</var> is not
    the same as the <span>origin</span> of <var
-   title="">document</var>, throw a <code>SECURITY_ERR</code>
+   title="">document</var>, throw a <code>SecurityError</code>
    exception and abort these steps.</p></li>
 <!--SYNCLOAD
    <li><p>If <code title="dom-XMLDocumentLoader-async">async</code> is
@@ -11426,7 +11413,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code>SYNTAX_ERR</code> exception and abort these
+     Z), throw a <code>SyntaxError</code> exception and abort these
      steps.</li>
 
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -11441,9 +11428,9 @@
      <li>Set the value of the attribute with the name <var
      title="">name</var>, to the value <var title="">value</var>,
      replacing any previous value if the attribute already existed. If
-     <code title="">setAttribute()</code> would have raised an
+     <code title="">setAttribute()</code> would have thrown an
      exception when setting an attribute with the name <var
-     title="">name</var>, then this must raise the same
+     title="">name</var>, then this must throw the same
      exception.</li>
 
     </ol>
@@ -11460,7 +11447,7 @@
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code>SYNTAX_ERR</code> exception and abort these
+     Z), throw a <code>SyntaxError</code> exception and abort these
      steps.</li>
 -->
      <li>For each character in the range U+0041 to U+005A (U+0041
@@ -13315,7 +13302,7 @@
     <p>The method has no effect if the <code>Document</code> is still
     being parsed.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
+    <p>Throws an <code>InvalidStateError</code> exception if the
     <code>Document</code> is an <span title="XML documents">XML
     document</span>.</p>
 
@@ -13341,7 +13328,7 @@
 
    <li>If the <code>Document</code> object is not flagged as an <span
    title="HTML documents">HTML document</span>, throw an
-   <code>INVALID_STATE_ERR</code> exception and abort these
+   <code>InvalidStateError</code> exception and abort these
    steps.</li>
 
    <li><p>Let <var title="">type</var> be the value of the first
@@ -13528,8 +13515,8 @@
   arguments as the original call to the <code
   title="dom-document-open">open()</code> method, and return whatever
   that method returned. If the <code>HTMLDocument</code> object has no
-  <code>Window</code> object, then the method must raise an
-  <code>INVALID_ACCESS_ERR</code> exception.</p>
+  <code>Window</code> object, then the method must throw an
+  <code>InvalidAccessError</code> exception.</p>
 
   </div>
 
@@ -13546,7 +13533,7 @@
     <p>Closes the input stream that was opened by the <code
     title="dom-document-open">document.open()</code> method.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
+    <p>Throws an <code>InvalidStateError</code> exception if the
     <code>Document</code> is an <span title="XML documents">XML
     document</span>.</p>
 
@@ -13563,7 +13550,7 @@
 
    <li><p>If the <code>Document</code> object is not flagged as an
    <span title="HTML documents">HTML document</span>, throw an
-   <code>INVALID_STATE_ERR</code> exception and abort these
+   <code>InvalidStateError</code> exception and abort these
    steps.</p></li>
 
    <li><p>If there is no <span>script-created parser</span> associated
@@ -13610,7 +13597,7 @@
     these reasons, use of this method is strongly
     discouraged.</strong></p>
 
-    <p>This method throws an <code>INVALID_STATE_ERR</code> exception
+    <p>This method throws an <code>InvalidStateError</code> exception
     when invoked on <span>XML documents</span>.</p>
 
    </dd>
@@ -13637,7 +13624,7 @@
    <li>
 
     <p>If the method was invoked on an <span title="XML documents">XML
-    document</span>, throw an <code>INVALID_STATE_ERR</code>
+    document</span>, throw an <code>InvalidStateError</code>
     exception and abort these steps.</p>
 
     <!--
@@ -13727,7 +13714,7 @@
     <code title="dom-document-open">open()</code> method implicitly
     first.</p>
 
-    <p>This method throws an <code>INVALID_STATE_ERR</code> exception
+    <p>This method throws an <code>InvalidStateError</code> exception
     when invoked on <span>XML documents</span>.</p>
 
    </dd>
@@ -20733,8 +20720,8 @@
    browsing context given a browsing context name</span>, using the
    value of the <code title="attr-hyperlink-target">target</code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code>INVALID_ACCESS_ERR</code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code>InvalidAccessError</code> exception and abort these
    steps.</p></li>
 
    <li><p>If the target of the <code title="event-click">click</code>
@@ -30203,7 +30190,7 @@
 
     <p>Can be set, to seek to the given time.<p>
 
-    <p>Will throw an <code>INVALID_STATE_ERR</code> exception if there
+    <p>Will throw an <code>InvalidStateError</code> exception if there
     is no selected <span>media resource</span>
     or if there is a <span>current media controller</span>.</p>
 
@@ -30333,7 +30320,7 @@
   position</span>. The returned value must be expressed in seconds. On
   setting, if the <span>media element</span> has a <span>current media
   controller</span>, then the user agent must throw an
-  <code>INVALID_STATE_ERR</code> exception; otherwise, if the
+  <code>InvalidStateError</code> exception; otherwise, if the
   <span>media element</span>'s <code
   title="dom-media-readyState">readyState</code> is <code
   title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, then it must set
@@ -30509,7 +30496,7 @@
    <dd>Enough of the resource has been obtained that the duration of
    the resource is available. In the case of a <code>video</code>
    element, the dimensions of the video are also available. The API
-   will no longer raise an exception when seeking. No <span>media
+   will no longer throw an exception when seeking. No <span>media
    data</span> is available for the immediate <span>current playback
    position</span>.
    The <span title="text track">text tracks</span>
@@ -32530,7 +32517,7 @@
 
     <p>Can be set, to change the volume multiplier.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> if the new value is not
+    <p>Throws an <code>IndexSizeError</code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -32736,7 +32723,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>INDEX_SIZE_ERR</code> exception must be raised instead.</p>
+  <code>IndexSizeError</code> exception must be raised instead.</p>
 
   <p>The <dfn
   title="dom-MediaController-muted"><code>muted</code></dfn>
@@ -34331,7 +34318,7 @@
   </dl>
 
   <p>On setting, if the new value is not either 0, 1, or 2, the user
-  agent must throw an <code>INVALID_ACCESS_ERR</code>
+  agent must throw an <code>InvalidAccessError</code>
   exception. Otherwise, if the new value isn't equal to what the
   attribute would currently return, the new value must be processed as
   follows:</p>
@@ -34431,13 +34418,13 @@
    <dt><var title="">mutableTextTrack</var> . <code title="dom-MutableTextTrack-addCue">addCue</code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Adds the given cue to <var title="">mutableTextTrack</var>'s <span>text track list of cues</span>.</p>
-    <p>Raises an exception if the argument is associated with another <span>text track</span> or already in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <span>text track</span> or already in the list of cues.</p>
    </dd>
 
    <dt><var title="">mutableTextTrack</var> . <code title="dom-MutableTextTrack-removeCue">removeCue</code>( <var title="">cue</var> )</dt>
    <dd>
     <p>Removes the given cue from <var title="">mutableTextTrack</var>'s <span>text track list of cues</span>.</p>
-    <p>Raises an exception if the argument is associated with another <span>text track</span> or not in the list of cues.</p>
+    <p>Throws an exception if the argument is associated with another <span>text track</span> or not in the list of cues.</p>
    </dd>
 
   </dl>
@@ -34455,7 +34442,7 @@
    <li>
 
     <p>If <var title="">kind</var> is not one of the following
-    strings, then throw a <code>SYNTAX_ERR</code> exception and abort
+    strings, then throw a <code>SyntaxError</code> exception and abort
     these steps:</p>
 
     <ul class="brief">
@@ -34533,7 +34520,7 @@
    <li><p>If the given <var title="">cue</var> is already associated
    with a <span>text track</span> other than the method's
    <code>MutableTextTrack</code> object's <span>text track</span>,
-   then throw an <code>INVALID_STATE_ERR</code> exception and abort
+   then throw an <code>InvalidStateError</code> exception and abort
    these steps.</p></li>
 
    <li><p>Associate <var title="">cue</var> with the method's
@@ -34544,7 +34531,7 @@
    <li><p>If the given <var title="">cue</var> is already listed in
    the method's <code>MutableTextTrack</code> object's <span>text
    track</span>'s <span>text track list of cues</span>, then throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>Add <var title="">cue</var> to the method's
    <code>MutableTextTrack</code> object's <span>text track</span>'s
@@ -34562,13 +34549,13 @@
 
    <li><p>If the given <var title="">cue</var> is not associated with
    the method's <code>MutableTextTrack</code> object's <span>text
-   track</span>, then throw an <code>INVALID_STATE_ERR</code>
+   track</span>, then throw an <code>InvalidStateError</code>
    exception.</p></li>
 
    <li><p>If the given <var title="">cue</var> is not currently listed
    in the method's <code>MutableTextTrack</code> object's <span>text
    track</span>'s <span>text track list of cues</span>, then throw a
-   <code>NOT_FOUND_ERR</code> exception.</p></li>
+   <code>NotFoundError</code> exception.</p></li>
 
    <li><p>Remove <var title="">cue</var> from the method's
    <code>MutableTextTrack</code> object's <span>text track</span>'s
@@ -37513,7 +37500,7 @@
 
     <p>Can be set, to change the volume.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> if the new value is not
+    <p>Throws an <code>IndexSizeError</code> if the new value is not
     in the range 0.0 .. 1.0.</p>
 
    </dd>
@@ -37544,7 +37531,7 @@
   the new value is in the range 0.0 to 1.0 inclusive, the playback
   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>INDEX_SIZE_ERR</code>
+  to 1.0 inclusive, then, on setting, an <code>IndexSizeError</code>
   exception must be raised instead.</p>
 
   <p>The <dfn title="dom-media-muted"><code>muted</code></dfn>
@@ -37668,7 +37655,7 @@
 
     <p>Returns the time for the start of the range with the given index.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> if the index is out of range.</p>
+    <p>Throws an <code>IndexSizeError</code> if the index is out of range.</p>
 
    </dd>
 
@@ -37678,7 +37665,7 @@
 
     <p>Returns the time for the end of the range with the given index.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> if the index is out of range.</p>
+    <p>Throws an <code>IndexSizeError</code> if the index is out of range.</p>
 
    </dd>
 
@@ -37701,7 +37688,7 @@
   the object, in seconds measured from the start of the timeline that
   the object covers.</p>
 
-  <p>These methods must raise <code>INDEX_SIZE_ERR</code> exceptions
+  <p>These methods must throw <code>IndexSizeError</code> exceptions
   if called with an <var title="">index</var> argument greater than or
   equal to the number of ranges represented by the object.</p>
 
@@ -38574,7 +38561,7 @@
   specification. <a href="#refsWEBIDL">[WEBIDL]</a></p>
 
   <p>Other arguments must be ignored and must not cause the user agent
-  to raise an exception. A future version of this specification will
+  to throw an exception. A future version of this specification will
   probably define other parameters to be passed to these methods to
   allow authors to more carefully control compression settings, image
   metadata, etc.</p>
@@ -39386,8 +39373,8 @@
     given offset. 0.0 is the offset at one end of the gradient, 1.0 is
     the offset at the other end.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> exception if the offset
-    is out of range. Throws a <code>SYNTAX_ERR</code> exception if the
+    <p>Throws an <code>IndexSizeError</code> exception if the offset
+    is out of range. Throws a <code>SyntaxError</code> exception if the
     color cannot be parsed.</p>
 
    </dd>
@@ -39401,7 +39388,7 @@
     coordinates represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code>NOT_SUPPORTED_ERR</code> exception.</p>
+    <code>NotSupportedError</code> exception.</p>
 
    </dd>
 
@@ -39414,8 +39401,8 @@
     represented by the arguments.</p>
 
     <p>If any of the arguments are not finite numbers, throws a
-    <code>NOT_SUPPORTED_ERR</code> exception. If either of the radii
-    are negative, throws an <code>INDEX_SIZE_ERR</code> exception.</p>
+    <code>NotSupportedError</code> exception. If either of the radii
+    are negative, throws an <code>IndexSizeError</code> exception.</p>
 
    </dd>
 
@@ -39429,9 +39416,9 @@
   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>INDEX_SIZE_ERR</code> exception must be raised. If the <var
+  <code>IndexSizeError</code> exception must be raised. If the <var
   title="">color</var> cannot be <span>parsed as a CSS <color>
-  value</span>, then a <code>SYNTAX_ERR</code> exception must be
+  value</span>, then a <code>SyntaxError</code> exception must be
   raised. 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
@@ -39450,8 +39437,8 @@
   title="">y0</var>) and end point (<var title="">x1</var>, <var
   title="">y1</var>) of the gradient. If any of the arguments to <code
   title="dom-context-2d-createLinearGradient">createLinearGradient()</code>
-  are infinite or NaN, the method must raise a
-  <code>NOT_SUPPORTED_ERR</code> exception. Otherwise, the method must
+  are infinite or NaN, the method must throw a
+  <code>NotSupportedError</code> exception. Otherwise, the method must
   return a linear <code>CanvasGradient</code> initialized with the
   specified line.</p>
 
@@ -39480,9 +39467,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>NOT_SUPPORTED_ERR</code> exception must be raised. If either
+  <code>NotSupportedError</code> exception must be raised. If either
   of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise,
+  <code>IndexSizeError</code> exception must be raised. Otherwise,
   the method must return a radial <code>CanvasGradient</code>
   initialized with the two specified circles.</p>
 
@@ -39584,8 +39571,8 @@
     title="">repeat</code> is used.</p>
 
     <p>If the image has no image data, throws an
-    <code>INVALID_STATE_ERR</code> exception. If the second argument
-    isn't one of the allowed values, throws a <code>SYNTAX_ERR</code>
+    <code>InvalidStateError</code> exception. If the second argument
+    isn't one of the allowed values, throws a <code>SyntaxError</code>
     exception. If the image isn't yet fully decoded, then the method
     returns null.</p>
 
@@ -39608,7 +39595,7 @@
   <code title="">repeat-x</code>, <code title="">repeat-y</code>,
   <code title="">no-repeat</code>. If the empty string is specified,
   <code title="">repeat</code> must be assumed. If an unrecognized value
-  is given, then the user agent must raise a <code>SYNTAX_ERR</code>
+  is given, then the user agent must throw a <code>SyntaxError</code>
   exception. User agents must recognize the four values described above
   exactly (e.g. they must not do case folding). Except as specified
   below, the method must return a <code>CanvasPattern</code> object
@@ -39633,7 +39620,7 @@
   <p>If the <var title="">image</var> argument is an
   <code>HTMLCanvasElement</code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
+  implementation must throw an <code>InvalidStateError</code>
   exception.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
@@ -40235,7 +40222,7 @@
     current subpath, connected to the previous point by a straight
     line.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> exception if the given
+    <p>Throws an <code>IndexSizeError</code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -40250,7 +40237,7 @@
     in the given direction (defaulting to clockwise), is added to the
     path, connected to the previous point by a straight line.</p>
 
-    <p>Throws an <code>INDEX_SIZE_ERR</code> exception if the given
+    <p>Throws an <code>IndexSizeError</code> exception if the given
     radius is negative.</p>
 
    </dd>
@@ -40434,7 +40421,7 @@
   arguments and the last point in the subpath, as described below.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code>INDEX_SIZE_ERR</code>
+  implementation to throw an <code>IndexSizeError</code>
   exception.</p>
 
   <p>Let the point (<var title="">x0</var>, <var title="">y0</var>) be
@@ -40514,7 +40501,7 @@
   zero length in both directions.</p>
 
   <p>Negative values for <var title="">radius</var> must cause the
-  implementation to raise an <code>INDEX_SIZE_ERR</code>
+  implementation to throw an <code>IndexSizeError</code>
   exception.</p>
 
   <hr>
@@ -41468,10 +41455,10 @@
 
     <p>If the first argument isn't an <code>img</code>,
     <code>canvas</code>, or <code>video</code> element, throws a
-    <code>TYPE_MISMATCH_ERR</code> exception. If the image has no
-    image data, throws an <code>INVALID_STATE_ERR</code> exception. If
+    <code>TypeMismatchError</code> exception. If the image has no
+    image data, throws an <code>InvalidStateError</code> exception. If
     the one of the source rectangle dimensions is zero, throws an
-    <code>INDEX_SIZE_ERR</code> exception. If the image isn't yet
+    <code>IndexSizeError</code> exception. If the image isn't yet
     fully decoded, then nothing is drawn.</p>
 
    </dd>
@@ -41518,7 +41505,7 @@
   <p>If the <var title="">image</var> argument is an
   <code>HTMLCanvasElement</code> object with either a horizontal
   dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
+  implementation must throw an <code>InvalidStateError</code>
   exception.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
@@ -41531,8 +41518,8 @@
   title="">sy</var>+<var title="">sh</var></span>).</p>
 
   <p>If one of the <var title="">sw</var> or <var title="">sh</var>
-  arguments is zero, the implementation must raise an
-  <code>INDEX_SIZE_ERR</code> exception.</p>
+  arguments is zero, the implementation must throw an
+  <code>IndexSizeError</code> exception.</p>
 
   <p>The destination rectangle is the rectangle whose corners are the
   four points (<var title="">dx</var>, <var title="">dy</var>),
@@ -41641,8 +41628,8 @@
     <p>Returns an <code>ImageData</code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code>NOT_SUPPORTED_ERR</code> exception if any of the
-    arguments are not finite. Throws an <code>INDEX_SIZE_ERR</code>
+    <p>Throws a <code>NotSupportedError</code> exception if any of the
+    arguments are not finite. Throws an <code>IndexSizeError</code>
     exception if the either of the width or height arguments are
     zero.</p>
 
@@ -41682,8 +41669,8 @@
     etc.</p>
 
     <p>If the first argument is null, throws a
-    <code>TYPE_MISMATCH_ERR</code> exception. Throws a
-    <code>NOT_SUPPORTED_ERR</code> exception if any of the other
+    <code>TypeMismatchError</code> exception. Throws a
+    <code>NotSupportedError</code> exception if any of the other
     arguments are not finite.</p>
 
    </dd>
@@ -41726,10 +41713,10 @@
   <p>If any of the arguments to <code
   title="dom-context-2d-createImageData">createImageData()</code> or
   <code title="dom-context-2d-getImageData">getImageData()</code>
-  are infinite or NaN, the method must instead raise a
-  <code>NOT_SUPPORTED_ERR</code> exception. If either the <var
+  are infinite or NaN, the method must instead throw a
+  <code>NotSupportedError</code> exception. If either the <var
   title="">sw</var> or <var title="">sh</var> arguments are zero,
-  the method must instead raise an <code>INDEX_SIZE_ERR</code>
+  the method must instead throw an <code>IndexSizeError</code>
   exception.</p>
 
   <p><code>ImageData</code> objects must be initialized so that their
@@ -41766,7 +41753,7 @@
   <code>ImageData</code> structures back to the canvas.</p>
 
   <p>If any of the arguments to the method are infinite or NaN, the
-  method must raise a <code>NOT_SUPPORTED_ERR</code> exception.</p>
+  method must throw a <code>NotSupportedError</code> exception.</p>
 
   <p>When the last four arguments are omitted, they must be assumed to
   have the values 0, 0, the <code
@@ -42311,14 +42298,14 @@
   <p>Whenever the <code
   title="dom-canvas-toDataURL">toDataURL()</code> method of a
   <code>canvas</code> element whose <i>origin-clean</i> flag is set to
-  false is called, the method must raise a <code>SECURITY_ERR</code>
+  false is called, the method must throw a <code>SecurityError</code>
   exception.</p>
 
   <p>Whenever the <code
   title="dom-context-2d-getImageData">getImageData()</code> method of
   the 2D context of a <code>canvas</code> element whose
   <i>origin-clean</i> flag is set to false is called with otherwise
-  correct arguments, the method must raise a <code>SECURITY_ERR</code>
+  correct arguments, the method must throw a <code>SecurityError</code>
   exception.</p>
 
   <p>Whenever the <code
@@ -42326,8 +42313,8 @@
   the 2D context of a <code>canvas</code> element ends up using a font
   that has an <span>origin</span> that is not the <span title="same
   origin">same</span> as that of the <code>Document</code> object that
-  owns the <code>canvas</code> element, the method must raise a
-  <code>SECURITY_ERR</code> exception.</p>
+  owns the <code>canvas</code> element, the method must throw a
+  <code>SecurityError</code> exception.</p>
 
   <p class="note">Even resetting the canvas state by changing its
   <code title="attr-canvas-width">width</code> or <code
@@ -42682,8 +42669,8 @@
    browsing context given a browsing context name</span>, using the
    value of the <code title="attr-hyperlink-target">target</code>
    attribute as the browsing context name, would result in there not
-   being a chosen browsing context, then raise an
-   <code>INVALID_ACCESS_ERR</code> exception and abort these
+   being a chosen browsing context, then throw an
+   <code>InvalidAccessError</code> exception and abort these
    steps.</p></li>
 
    <li><p>Otherwise, the user agent must <span title="following
@@ -43493,7 +43480,7 @@
     <p>Returns the table's <code>caption</code> element.</p>
     <p>Can be set, to replace the <code>caption</code> element. If the
     new value is not a <code>caption</code> element, throws a
-    <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
+    <code>HierarchyRequestError</code> exception.</p>
    </dd>
 
    <dt><var title="">caption</var> = <var title="">table</var> . <code title="dom-table-createCaption">createCaption</code>()</dt>
@@ -43511,7 +43498,7 @@
     <p>Returns the table's <code>thead</code> element.</p>
     <p>Can be set, to replace the <code>thead</code> element. If the
     new value is not a <code>thead</code> element, throws a
-    <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
+    <code>HierarchyRequestError</code> exception.</p>
    </dd>
 
    <dt><var title="">thead</var> = <var title="">table</var> . <code title="dom-table-createTHead">createTHead</code>()</dt>
@@ -43529,7 +43516,7 @@
     <p>Returns the table's <code>tfoot</code> element.</p>
     <p>Can be set, to replace the <code>tfoot</code> element. If the
     new value is not a <code>tfoot</code> element, throws a
-    <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
+    <code>HierarchyRequestError</code> exception.</p>
    </dd>
 
    <dt><var title="">tfoot</var> = <var title="">table</var> . <code title="dom-table-createTFoot">createTFoot</code>()</dt>
@@ -43561,14 +43548,14 @@
    <dd>
     <p>Creates a <code>tr</code> element, along with a <code>tbody</code> if required, inserts them into the table at the position given by the argument, and returns the <code>tr</code>.</p>
     <p>The position is relative to the rows in the table. The index &#x2212;1 is equivalent to inserting at the end of the table.</p>
-    <p>If the given position is less than &#x2212;1 or greater than the number of rows, throws an <code>INDEX_SIZE_ERR</code> exception.</p>
+    <p>If the given position is less than &#x2212;1 or greater than the number of rows, throws an <code>IndexSizeError</code> exception.</p>
    </dd>
 
    <dt><var title="">table</var> . <code title="dom-table-deleteRow">deleteRow</code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code>tr</code> element with the given position in the table.</p>
     <p>The position is relative to the rows in the table. The index &#x2212;1 is equivalent to deleting the last row of the table.</p>
-    <p>If the given position is less than &#x2212;1 or greater than the index of the last row, or if there are no rows, throws an <code>INDEX_SIZE_ERR</code> exception.</p>
+    <p>If the given position is less than &#x2212;1 or greater than the index of the last row, or if there are no rows, throws an <code>IndexSizeError</code> exception.</p>
    </dd>
 
   </dl>
@@ -43583,7 +43570,7 @@
   <code>table</code> element, if any, must be removed, and the new
   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>HIERARCHY_REQUEST_ERR</code> DOM exception must be
+  then a <code>HierarchyRequestError</code> DOM exception must be
   raised instead.</p>
 
   <p>The <dfn
@@ -43609,7 +43596,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>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised
+  <code>HierarchyRequestError</code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn
@@ -43638,7 +43625,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>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised
+  a <code>HierarchyRequestError</code> DOM exception must be raised
   instead.</p>
 
   <p>The <dfn
@@ -43699,7 +43686,7 @@
    the number of elements in <code title="dom-table-rows">rows</code>
    collection:</dt>
 
-   <dd>The method must raise an <code>INDEX_SIZE_ERR</code>
+   <dd>The method must throw an <code>IndexSizeError</code>
    exception.</dd>
 
    <dt>If the <code title="dom-table-rows">rows</code> collection has
@@ -43752,7 +43739,7 @@
    <li><p>Now, if <var title="">index</var> is less than zero, or
    greater than or equal to the number of elements in the <code
    title="dom-table-rows">rows</code> collection, the method must
-   instead raise an <code>INDEX_SIZE_ERR</code> exception, and these
+   instead throw an <code>IndexSizeError</code> exception, and these
    steps must be aborted.</p></li>
 
    <li><p>Otherwise, the method must remove the <var
@@ -44299,14 +44286,14 @@
    <dd>
     <p>Creates a <code>tr</code> element, inserts it into the table section at the position given by the argument, and returns the <code>tr</code>.</p>
     <p>The position is relative to the rows in the table section. The index &#x2212;1, which is the default if the argument is omitted, is equivalent to inserting at the end of the table section.</p>
-    <p>If the given position is less than &#x2212;1 or greater than the number of rows, throws an <code>INDEX_SIZE_ERR</code> exception.</p>
+    <p>If the given position is less than &#x2212;1 or greater than the number of rows, throws an <code>IndexSizeError</code> exception.</p>
    </dd>
 
    <dt><var title="">tbody</var> . <code title="dom-tbody-deleteRow">deleteRow</code>(<var title="">index</var>)</dt>
    <dd>
     <p>Removes the <code>tr</code> element with the given position in the table section.</p>
     <p>The position is relative to the rows in the table section. The index &#x2212;1 is equivalent to deleting the last row of the table section.</p>
-    <p>If the given position is less than &#x2212;1 or greater than the index of the last row, or if there are no rows, throws an <code>INDEX_SIZE_ERR</code> exception.</p>
+    <p>If the given position is less than &#x2212;1 or greater than the index of the last row, or if there are no rows, throws an <code>IndexSizeError</code> exception.</p>
    </dd>
 
   </dl>
@@ -44324,7 +44311,7 @@
 
   <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
   number of elements in the <code title="dom-tbody-rows">rows</code>
-  collection, the method must raise an <code>INDEX_SIZE_ERR</code>
+  collection, the method must throw an <code>IndexSizeError</code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to &#x2212;1, or
@@ -44348,7 +44335,7 @@
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code
   title="dom-tbody-rows">rows</code> collection, the method must
-  instead raise an <code>INDEX_SIZE_ERR</code> exception.</p>
+  instead throw an <code>IndexSizeError</code> exception.</p>
 
   </div>
 
@@ -44553,7 +44540,7 @@
     is equivalent to inserting at the end of the row.</p>
 
     <p>If the given position is less than &#x2212;1 or greater than
-    the number of cells, throws an <code>INDEX_SIZE_ERR</code>
+    the number of cells, throws an <code>IndexSizeError</code>
     exception.</p>
 
    </dd>
@@ -44569,7 +44556,7 @@
 
     <p>If the given position is less than &#x2212;1 or greater than
     the index of the last cell, or if there are no cells, throws an
-    <code>INDEX_SIZE_ERR</code> exception.</p>
+    <code>IndexSizeError</code> exception.</p>
 
    </dd>
 
@@ -44610,7 +44597,7 @@
 
   <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
   number of elements in the <code title="dom-tr-cells">cells</code>
-  collection, the method must raise an <code>INDEX_SIZE_ERR</code>
+  collection, the method must throw an <code>IndexSizeError</code>
   exception.</p>
 
   <p>If <var title="">index</var> is missing, equal to &#x2212;1, or
@@ -44633,7 +44620,7 @@
   <var title="">index</var> is less than zero or greater than or equal
   to the number of elements in the <code
   title="dom-tr-cells">cells</code> collection, the method must
-  instead raise an <code>INDEX_SIZE_ERR</code> exception.</p>
+  instead throw an <code>IndexSizeError</code> exception.</p>
 
   </div>
 
@@ -53766,7 +53753,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if it is
+    <p>Throws an <code>InvalidStateError</code> exception if it is
     set to any value other than the empty string when the control is a
     file upload control.</p>
 
@@ -53807,7 +53794,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
+    <p>Throws an <code>InvalidStateError</code> exception if the
     control isn't date- or time-based.</p>
 
    </dd>
@@ -53822,7 +53809,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
+    <p>Throws an <code>InvalidStateError</code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </dd>
@@ -53838,7 +53825,7 @@
     <var title="">n</var>. The default value for <var title="">n</var>
     is 1.</p>
 
-    <p>Throws <code>INVALID_STATE_ERR</code> exception if the control
+    <p>Throws <code>InvalidStateError</code> exception if the control
     is neither date- or time-based nor numeric, if the <code
     title="attr-input-step">step</code> attribute's value is "<code
     title="">any</code>", if the current <span
@@ -53936,7 +53923,7 @@
     any, or the empty string if the list is empty. On setting, if the
     new value is the empty string, it must empty the list of <span
     title="concept-input-type-file-selected">selected files</span>;
-    otherwise, it must throw an <code>INVALID_STATE_ERR</code>
+    otherwise, it must throw an <code>InvalidStateError</code>
     exception.</p>
 
     <p class="note">This "fakepath" requirement is a sad accident of
@@ -53995,7 +53982,7 @@
   title="dom-input-valueAsDate">valueAsDate</code> attribute does not
   apply, as defined for the <code>input</code> element's <code
   title="attr-input-type">type</code> attribute's current state, then
-  throw an <code>INVALID_STATE_ERR</code> exception; otherwise, if
+  throw an <code>InvalidStateError</code> exception; otherwise, if
   the new value is null, then set the <span
   title="concept-fe-value">value</span> of the element to the empty
   string; otherwise, run the <span
@@ -54035,7 +54022,7 @@
   title="dom-input-valueAsNumber">valueAsNumber</code> attribute does
   not apply, as defined for the <code>input</code> element's <code
   title="attr-input-type">type</code> attribute's current state, then
-  throw an <code>INVALID_STATE_ERR</code> exception. Otherwise, if
+  throw an <code>InvalidStateError</code> exception. Otherwise, if
   the <code
   title="dom-input-valueAsDate">valueAs<em>Date</em></code>
   attribute applies, run the <span
@@ -54063,19 +54050,19 @@
    <code title="dom-input-stepUp">stepUp()</code> methods do not
    apply, as defined for the <code>input</code> element's <code
    title="attr-input-type">type</code> attribute's current state, then
-   throw an <code>INVALID_STATE_ERR</code> exception, and abort these
+   throw an <code>InvalidStateError</code> exception, and abort these
    steps.</p></li>
 
    <li><p>If the element has no <span
    title="concept-input-step">allowed value step</span>, then throw an
-   <code>INVALID_STATE_ERR</code> exception, and abort these
+   <code>InvalidStateError</code> exception, and abort these
    steps.</p></li>
 
    <li><p>If applying the <span
    title="concept-input-value-string-number">algorithm to convert a
    string to a number</span> to the string given by the element's
    <span title="concept-fe-value">value</span> results in an error,
-   then throw an <code>INVALID_STATE_ERR</code> exception, and abort
+   then throw an <code>InvalidStateError</code> exception, and abort
    these steps; otherwise, let <var title="">value</var> be the result
    of that algorithm.</p></li>
 
@@ -54096,13 +54083,13 @@
    title="concept-input-min">minimum</span>, and the <var
    title="">value</var> is less than that <span
    title="concept-input-min">minimum</span>, then throw a
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>If the element has a <span
    title="concept-input-max">maximum</span>, and the <var
    title="">value</var> is greater than that <span
    title="concept-input-max">maximum</span>, then throw a
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>Let <var title="">value as string</var> be the result of
    running the <span
@@ -54779,7 +54766,7 @@
     <p>If <var title="">before</var> is omitted, null, or a number out
     of range, then <var title="">element</var> will be added at the
     end of the list.</p>
-    <p>This method will throw a <code>HIERARCHY_REQUEST_ERR</code>
+    <p>This method will throw a <code>HierarchyRequestError</code>
     exception if <var title="">element</var> is an ancestor of the
     element into which it is to be inserted.</p>
    </dd>
@@ -57818,8 +57805,8 @@
   <div class="impl">
 
   <p>When these methods and attributes are used with
-  <code>input</code> elements while they don't apply, they must raise
-  an <code>INVALID_STATE_ERR</code> exception. Otherwise, they must
+  <code>input</code> elements while they don't apply, they must throw
+  an <code>InvalidStateError</code> exception. Otherwise, they must
   act as described below.</p>
 
   <p>For <code>input</code> elements, these methods and attributes
@@ -65377,7 +65364,7 @@
     title="concept-property-value">value</span> when the element has
     no <code title="attr-itemprop">itemprop</code> attribute or when
     the element's value is an <span title="concept-item">item</span>
-    throws an <code>INVALID_ACCESS_ERR</code> exception.</p>
+    throws an <code>InvalidAccessError</code> exception.</p>
 
    </dd>
 
@@ -65441,13 +65428,13 @@
    <dt>If the element has no <code title="attr-itemprop">itemprop</code> attribute</dt>
 
    <dd><p>The attribute must return null on getting and must throw an
-   <code>INVALID_ACCESS_ERR</code> exception on setting.</p>
+   <code>InvalidAccessError</code> exception on setting.</p>
 
 
    <dt>If the element has an <code title="attr-itemscope">itemscope</code> attribute</dt>
 
    <dd><p>The attribute must return the element itself on getting and
-   must throw an <code>INVALID_ACCESS_ERR</code> exception on
+   must throw an <code>InvalidAccessError</code> exception on
    setting.</p>
 
 
@@ -69830,7 +69817,7 @@
 
     <p>Returns null if there isn't one.</p>
 
-    <p>Throws a <code>SECURITY_ERR</code> exception in cross-origin situations.</p>
+    <p>Throws a <code>SecurityError</code> exception in cross-origin situations.</p>
 
    </dd>
 
@@ -69873,7 +69860,7 @@
    <li><p>If the <span>browsing context container</span>'s
    <code>Document</code> does not have the <span title="same
    origin">same</span> <span>effective script origin</span> as the
-   <span>entry script</span>, then throw a <code>SECURITY_ERR</code>
+   <span>entry script</span>, then throw a <code>SecurityError</code>
    exception.</p></li>
 
    <li><p>Otherwise, return the <span>browsing context
@@ -70558,8 +70545,8 @@
 
   <h4 id="security-window">Security</h4>
 
-  <p id="security-2">User agents must raise a
-  <code>SECURITY_ERR</code> exception whenever any properties of a
+  <p id="security-2">User agents must throw a
+  <code>SecurityError</code> exception whenever any properties of a
   <code>Window</code> object are accessed by scripts whose
   <span>effective script origin</span> is not the same as the
   <code>Window</code> object's <code>Document</code>'s <span>effective
@@ -71800,7 +71787,7 @@
    <li>
 
     <p>If the <code>Document</code> has no <span>browsing
-    context</span>, throw a <code>SECURITY_ERR</code> exception and
+    context</span>, throw a <code>SecurityError</code> exception and
     abort these steps.</p>
 
    </li>
@@ -71815,7 +71802,7 @@
 
     <p>If ToASCII fails to convert one of the components of the
     string, e.g. because it is too long or because it contains invalid
-    characters, then throw a <code>SECURITY_ERR</code> exception and abort
+    characters, then throw a <code>SecurityError</code> exception and abort
     these steps. <a href="#refsRFC3490">[RFC3490]</a></p>
 
    </li>
@@ -71832,7 +71819,7 @@
      <li>
 
       <p>If the current value is an IP address, throw a
-      <code>SECURITY_ERR</code> exception and abort these steps.</p>
+      <code>SecurityError</code> exception and abort these steps.</p>
 
      </li>
 
@@ -71840,7 +71827,7 @@
 
       <p>If <var title="">new value</var>, prefixed by a U+002E FULL
       STOP (.), does not exactly match the end of the current value,
-      throw a <code>SECURITY_ERR</code> exception and abort these
+      throw a <code>SecurityError</code> exception and abort these
       steps.</p>
 
      </li>
@@ -71851,7 +71838,7 @@
       Public Suffix List, or, if <var title="">new value</var>,
       prefixed by a U+002E FULL STOP (.), matches the end of a
       suffix in the Public Suffix List, then throw a
-      <code>SECURITY_ERR</code> exception and abort these steps. <a
+      <code>SecurityError</code> exception and abort these steps. <a
       href="#refsPSL">[PSL]</a></p>
 
       <p>Suffixes must be compared after applying the IDNA ToASCII
@@ -72298,7 +72285,7 @@
      third argument, relative to the <span>entry script</span>'s <span
      title="script's base URL">base URL</span>.</li>
 
-     <li>If that fails, raise a <code>SECURITY_ERR</code> exception
+     <li>If that fails, throw a <code>SecurityError</code> exception
      and abort these steps.</li>
 
      <li>Compare the resulting <span>absolute URL</span> to <span>the
@@ -72307,7 +72294,7 @@
      title="url-path"><path></span>, <span
      title="url-query"><query></span>, and <span
      title="url-fragment"><fragment></span> components, then
-     raise a <code>SECURITY_ERR</code> exception and abort these
+     throw a <code>SecurityError</code> exception and abort these
      steps.</li>
 
      <li>If the <span>origin</span> of the resulting <span>absolute
@@ -72317,7 +72304,7 @@
      title="url-path"><path></span> or <span
      title="url-query"><query></span> components of the two
      <span title="URL">URLs</span> compared in the previous step
-     differ, raise a <code>SECURITY_ERR</code> exception and abort
+     differ, throw a <code>SecurityError</code> exception and abort
      these steps. (This prevents sandboxed content from spoofing other
      pages on the same origin.)</li>
 
@@ -72700,7 +72687,7 @@
   <code title="dom-location-assign">assign()</code> and <code
   title="dom-location-replace">replace()</code> methods is not
   successful, then the user agent must instead throw a
-  <code>SYNTAX_ERR</code> exception.</p>
+  <code>SyntaxError</code> exception.</p>
 
   <p>When the <dfn
   title="dom-location-reload"><code>reload()</code></dfn> method is
@@ -72792,7 +72779,7 @@
   to the <span>entry script</span>'s <span title="script's base
   URL">base URL</span>, and if that succeeds, return the resulting
   <span>absolute URL</span>. If it fails, it must throw a
-  <code>SYNTAX_ERR</code> exception instead.</p>
+  <code>SyntaxError</code> exception instead.</p>
 
   </div>
 
@@ -72801,8 +72788,8 @@
 
   <h5 id="security-location">Security</h5>
 
-  <p id="security-3">User agents must raise a
-  <code>SECURITY_ERR</code> exception whenever any of the members of a
+  <p id="security-3">User agents must throw a
+  <code>SecurityError</code> exception whenever any of the members of a
   <code>Location</code> object are accessed by scripts whose
   <span>effective script origin</span> is not the <span title="same
   origin">same</span> as the <code>Location</code> object's associated
@@ -76830,7 +76817,7 @@
 
     <p>Invokes the <span>application cache download process</span>.</p>
 
-    <p>Throws an <code>INVALID_STATE_ERR</code> exception if there is no application cache to update.</p>
+    <p>Throws an <code>InvalidStateError</code> exception if there is no application cache to update.</p>
 
     <p>Calling this method is not usually necessary, as user agents
     will generally take care of updating <span title="application
@@ -76859,7 +76846,7 @@
 
     <p>Switches to the most recent application cache, if there is a
     newer one. If there isn't, throws an
-    <code>INVALID_STATE_ERR</code> exception.</p>
+    <code>InvalidStateError</code> exception.</p>
 
     <p>This does not cause previously-loaded resources to be reloaded;
     for example, images do not suddenly get reloaded and style sheets
@@ -76993,7 +76980,7 @@
   <span>cache host</span> to the algorithm. If there is no such
   <span>application cache</span>, or if it is marked as <span
   title="concept-appcache-obsolete">obsolete</span>, then the method
-  must raise an <code>INVALID_STATE_ERR</code> exception instead.</p>
+  must throw an <code>InvalidStateError</code> exception instead.</p>
 
   <p>If the <dfn title="dom-appcache-abort"><code>abort()</code></dfn>
   method is invoked, the user agent must <dfn>send a signal</dfn> to
@@ -77012,8 +76999,8 @@
 
    <li><p>Check that <code>ApplicationCache</code> object's
    <span>cache host</span> is associated with an <span>application
-   cache</span>. If it is not, then raise an
-   <code>INVALID_STATE_ERR</code> exception and abort these
+   cache</span>. If it is not, then throw an
+   <code>InvalidStateError</code> exception and abort these
    steps.</p></li>
 
    <li><p>Let <var title="">cache</var> be the <span>application
@@ -77033,8 +77020,8 @@
    whose <span title="concept-appcache-completeness">completeness
    flag</span> is <i>complete</i> and that is <span
    title="concept-appcache-newer">newer</span> than <var
-   title="">cache</var>. If there is not, then raise an
-   <code>INVALID_STATE_ERR</code> exception and abort these
+   title="">cache</var>. If there is not, then throw an
+   <code>InvalidStateError</code> exception and abort these
    steps.</p></li>
 
    <li><p>Let <var title="">new cache</var> be the <span
@@ -77522,7 +77509,7 @@
   <p>User agents may impose resource limitations on scripts, for
   example CPU quotas, memory limits, total execution time limits, or
   bandwidth limitations. When a script exceeds a limit, the user agent
-  may either throw a <code>QUOTA_EXCEEDED_ERR</code> exception, abort
+  may either throw a <code>QuotaExceededError</code> exception, abort
   the script without an exception, prompt the user, or throttle script
   execution.</p>
 
@@ -78733,7 +78720,7 @@
     representing a binary byte with values 0x00 to 0xFF respectively,
     and converts it to its base64 representation, which it returns.</p>
 
-    <p>Throws an <code>INVALID_CHARACTER_ERR</code> exception if the
+    <p>Throws an <code>InvalidCharacterError</code> exception if the
     input string contains any out-of-range characters.</p>
 
    </dd>
@@ -78748,7 +78735,7 @@
     each representing a binary byte with values 0x00 to 0xFF
     respectively, corresponding to that binary data.</p>
 
-    <p>Throws an <code>INVALID_CHARACTER_ERR</code> exception if the
+    <p>Throws an <code>InvalidCharacterError</code> exception if the
     input string is not valid base64 data.</p>
 
    </dd>
@@ -78762,7 +78749,7 @@
   interface (part of Web Workers).</p>
 
   <p>The <dfn title="dom-windowbase64-btoa"><code>btoa()</code></dfn>
-  method must throw an <code>INVALID_CHARACTER_ERR</code> exception if
+  method must throw an <code>InvalidCharacterError</code> exception if
   the method's first argument contains any character whose code point
   is greater than U+00FF. Otherwise, the user agent must convert that
   argument to a sequence of octets whose <var title="">n</var>th octet
@@ -78800,14 +78787,14 @@
 
    <li><p>If the length of <var title="">input</var> divides by 4
    leaving a remainder of 1, throw an
-   <code>INVALID_CHARACTER_ERR</code> exception and abort these
+   <code>InvalidCharacterError</code> exception and abort these
    steps.</p>
 
    <li>
 
     <p>If <var title="">input</var> contains a character that is not
     in the following list of characters and character ranges, throw an
-    <code>INVALID_CHARACTER_ERR</code> exception and abort these
+    <code>InvalidCharacterError</code> exception and abort these
     steps:</p>
 
     <ul class="brief">
@@ -79617,7 +79604,7 @@
     title="">url</var> relative to the <span>entry script</span>'s
     <span title="script's base URL">base URL</span>.</p>
 
-    <p>If this fails, then throw a <code>SYNTAX_ERR</code> exception
+    <p>If this fails, then throw a <code>SyntaxError</code> exception
     and abort these steps.</p>
 
    </li>
@@ -80039,11 +80026,11 @@
     placeholder for where to put the URL of the content to be
     handled.</p>
 
-    <p>Throws a <code>SECURITY_ERR</code> exception if the user agent
+    <p>Throws a <code>SecurityError</code> exception if the user agent
     blocks the registration (this might happen if trying to register
     as a handler for "http", for instance).</p>
 
-    <p>Throws a <code>SYNTAX_ERR</code> if the "<code
+    <p>Throws a <code>SyntaxError</code> if the "<code
     title="">%s</code>" string is missing in the URL.</p>
 
    </dd>
@@ -80094,8 +80081,8 @@
     <span>whitelisted scheme</span> nor a scheme whose value starts
     with the substring "<code title="">web+</code>" and otherwise
     contains only characters in the range U+0061 LATIN SMALL LETTER A
-    to U+007A LATIN SMALL LETTER Z, the user agent must raise
-    <code>SECURITY_ERR</code> exception.</p>
+    to U+007A LATIN SMALL LETTER Z, the user agent must throw a
+    <code>SecurityError</code> exception.</p>
 
     <p>The following schemes are the <dfn title="whitelisted
     scheme">whitelisted schemes</dfn>:</p>
@@ -80145,8 +80132,8 @@
     title="dom-navigator-registerContentHandler">registerContentHandler()</code>
     method is invoked with a <span>MIME type</span> that is in the
     <span>type blacklist</span> or that the user agent has deemed a
-    privileged type, the user agent must raise
-    <code>SECURITY_ERR</code> exception.</p>
+    privileged type, the user agent must throw a
+    <code>SecurityError</code> exception.</p>
 
     <p>The following <span title="MIME type">MIME types</span> are in
     the <dfn>type blacklist</dfn>:</p>
@@ -80182,12 +80169,12 @@
     <p>A string used to build the <span>URL</span> of the page that
     will handle the requests.</p>
 
-    <p>User agents must raise a <code>SYNTAX_ERR</code> exception if
+    <p>User agents must throw a <code>SyntaxError</code> exception if
     the <var title="">url</var> argument passed to one of these
     methods does not contain the exact literal string
     "<code>%s</code>".</p>
 
-    <p>User agents must raise a <code>SYNTAX_ERR</code> if <span
+    <p>User agents must throw a <code>SyntaxError</code> if <span
     title="resolve a url">resolving</span> the <var title="">url</var>
     argument relative to the <span>entry script</span>'s <span
     title="script's base URL">base URL</span>, is not successful.</p>
@@ -80197,7 +80184,7 @@
     string "<code title="">%s</code>" which is not a valid component
     in a URL.</p>
 
-    <p>User agents must raise a <code>SECURITY_ERR</code> exception if
+    <p>User agents must throw a <code>SecurityError</code> exception if
     the resulting <span>absolute URL</span> has an <span>origin</span>
     that differs from the <span>origin</span> of the <span>entry
     script</span>.</p>
@@ -80498,12 +80485,12 @@
    relative to the <span title="script's base URL">base URL</span> of
    the <span>entry script</span>.</p></li>
 
-   <li><p>If this fails, then throw a <code>SYNTAX_ERR</code>
+   <li><p>If this fails, then throw a <code>SyntaxError</code>
    exception, aborting the method.</p></li>
 
    <li><p>If the resoluting <span>absolute URL</span>'s
    <span>origin</span> is not the <span>same origin</span> as that of
-   the <span>entry script</span> throw a <span>SECURITY_ERR</span>
+   the <span>entry script</span> throw a <span>SecurityError</span>
    exception, aborting the method.</p></li>
 
    <li><p>Return the resulting <span>absolute URL</span> as the result
@@ -81739,7 +81726,7 @@
 
     <p>Can be set, to change that state.</p>
 
-    <p>Throws a <code>SYNTAX_ERR</code> exception if the new value
+    <p>Throws a <code>SyntaxError</code> exception if the new value
     isn't one of those strings.</p>
 
    </dd>
@@ -81771,7 +81758,7 @@
   value is an <span>ASCII case-insensitive</span> match for the string
   "<code title="">false</code>" then the content attribute must be set
   to the string "<code title="">false</code>", and otherwise the
-  attribute setter must raise a <code>SYNTAX_ERR</code> exception.</p>
+  attribute setter must throw a <code>SyntaxError</code> exception.</p>
 
   <p>The <dfn
   title="dom-isContentEditable"><code>isContentEditable</code></dfn>
@@ -83199,7 +83186,7 @@
 
    <li><p>If the <code>DataTransferItemList</code> object is not in the
    <i title="concept-dnd-rw">read/write mode</i>, throw an
-   <code>INVALID_STATE_ERR</code> exception and abort these
+   <code>InvalidStateError</code> exception and abort these
    steps.</p></li>
 
    <li><p>Remove the <var title="">i</var>th item from the <span>drag
@@ -83240,7 +83227,7 @@
       title="the drag data item type string">type string</span> is
       equal to the value of the method's second argument,
       <span>converted to ASCII lowercase</span>, then throw a
-      <code>NOT_SUPPORTED_ERR</code> exception and abort these
+      <code>NotSupportedError</code> exception and abort these
       steps.</p>
 
       <p>Otherwise, add an item to the <span>drag data store item
@@ -85393,7 +85380,7 @@
    exception throwing here) -->
 
    <li><p>If both <var title="">audio</var> and <var title="">video</var>
-   are still false, then throw a <code>NOT_SUPPORTED_ERR</code>
+   are still false, then throw a <code>NotSupportedError</code>
    exception and abort these steps.</p></li>
 
    <li><p>Return, and run the remaining steps asynchronously.</p></li>
@@ -86728,7 +86715,7 @@
     <p>The maximum length of <var title="">text</var> is 504 bytes
     after encoding the string as UTF-8; attempting to send a payload
     greater than 504 bytes results in an
-    <code>INVALID_ACCESS_ERR</code> exception.</p>
+    <code>InvalidAccessError</code> exception.</p>
 
    </dd>
 
@@ -87163,7 +87150,7 @@
    <li><p>If <var title="">connection</var>'s
    <span><code>PeerConnection</code> readiness state</span> is <code
    title="dom-PeerConnection-CLOSED">CLOSED</code> (3), throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li>
 
@@ -87261,13 +87248,13 @@
    <li><p>If the <code>PeerConnection</code> object's
    <span><code>PeerConnection</code> readiness state</span> is <code
    title="dom-PeerConnection-CLOSED">CLOSED</code> (3), throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>Let <var title="">data</var> be <var title="">message</var>
    encoded as UTF-8. <a href="#refsRFC3629">[RFC3629]</a></p></li>
 
    <li><p>If <var title="">data</var> is longer than 504 bytes,
-   throw an <code>INVALID_ACCESS_ERR</code> exception and abort these
+   throw an <code>InvalidAccessError</code> exception and abort these
    steps.</p></li>
    <!-- IPv4: 576 (min IPv4 MTU size) - 20 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 504 -->
    <!-- IPv6: 1280 (min IPv6 MTU size) - 40 (IP header) - 8 (UDP header) - 44 (UDP data media stream overhead) = 1188 -->
@@ -87301,7 +87288,7 @@
    <li><p>If the <code>PeerConnection</code> object's
    <span><code>PeerConnection</code> readiness state</span> is <code
    title="dom-PeerConnection-CLOSED">CLOSED</code> (3), throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>If <var title="">stream</var> is already in the
    <code>PeerConnection</code> object's <code
@@ -87340,7 +87327,7 @@
    <li><p>If the <code>PeerConnection</code> object's
    <span><code>PeerConnection</code> readiness state</span> is <code
    title="dom-PeerConnection-CLOSED">CLOSED</code> (3), throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>If <var title="">stream</var> is not in the
    <code>PeerConnection</code> object's <code
@@ -87384,7 +87371,7 @@
    <li><p>If the <code>PeerConnection</code> object's
    <span><code>PeerConnection</code> readiness state</span> is <code
    title="dom-PeerConnection-CLOSED">CLOSED</code> (3), throw an
-   <code>INVALID_STATE_ERR</code> exception.</p></li>
+   <code>InvalidStateError</code> exception.</p></li>
 
    <li><p>Destroy the <span><code>PeerConnection</code> ICE
    Agent</span>, abruptly ending any active ICE processing and any
@@ -89195,7 +89182,7 @@
    script</span>'s <span title="script's base URL">base URL</span>,
    when the method is invoked.</p></li>
 
-   <li><p>If this fails, throw a <code>SYNTAX_ERR</code>
+   <li><p>If this fails, throw a <code>SyntaxError</code>
    exception.</p></li>
 
    <li>
@@ -89203,7 +89190,7 @@
     <p>If the <span>origin</span> of the resulting <span>absolute
     URL</span> is not the <span title="same origin">same</span> as the
     origin of the <span>entry script</span>, then throw a
-    <code>SECURITY_ERR</code> exception.</p>
+    <code>SecurityError</code> exception.</p>
 
     <p class="note">Thus, scripts must be external files with the same
     scheme as the original page: you can't load a script from a <span
@@ -89328,7 +89315,7 @@
    <li><p><span title="resolve a url">Resolve</span> the <var
    title="">scriptURL</var> argument.</p></li>
 
-   <li><p>If this fails, throw a <code>SYNTAX_ERR</code>
+   <li><p>If this fails, throw a <code>SyntaxError</code>
    exception.</p></li>
 
    <li><p>Otherwise, let <var title="">scriptURL</var> be the
@@ -89342,7 +89329,7 @@
 
     <p>If the <span>origin</span> of <var title="">scriptURL</var> is
     not the <span title="same origin">same</span> as the origin of the
-    <span>entry script</span>, then throw a <code>SECURITY_ERR</code>
+    <span>entry script</span>, then throw a <code>SecurityError</code>
     exception.</p>
 
     <p class="note">Thus, scripts must be external files with the same
@@ -89423,7 +89410,7 @@
        title="dom-WorkerGlobalScope-location">location</code>
        attribute represents an <span>absolute URL</span> that is not
        exactly equal to <var title="">scriptURL</var>, then throw a
-       <code>URL_MISMATCH_ERR</code> exception and abort all these
+       <code>URLMismatchError</code> exception and abort all these
        steps.</p></li>
 
        <li><p>Associate <var title="">worker</var> with <var
@@ -89603,14 +89590,14 @@
    <li><p><span title="resolve a url">Resolve</span> each
    argument.</p></li>
 
-   <li><p>If any fail, throw a <code>SYNTAX_ERR</code>
+   <li><p>If any fail, throw a <code>SyntaxError</code>
    exception.</p></li>
 
 <!--
    <li><p>If any of the resulting <span title="absolute URL">absolute
    URLs</span> have an <span>origin</span> that is not the <span
    title="same origin">same</span> as the origin of the script that
-   invoked the method, then throw a <code>SECURITY_ERR</code>
+   invoked the method, then throw a <code>SecurityError</code>
    exception.</p></li>
 -->
 
@@ -89637,7 +89624,7 @@
       to complete.</p>
 
       <p>If the fetching attempt failed, throw a
-      <code>NETWORK_ERR</code> exception and abort all these
+      <code>NetworkError</code> exception and abort all these
       steps.</p>
 
       <p>If the attempt succeeds, then let <var title="">source</var> be
@@ -90044,7 +90031,7 @@
    URL">base URL</span>.</p></li>
 
    <li><p>If the previous step failed, then throw a
-   <code>SYNTAX_ERR</code> exception.</p></li>
+   <code>SyntaxError</code> exception.</p></li>
 
    <li><p>Return a new <code>EventSource</code> object, and continue
    these steps in the background (without blocking scripts).</p></li>
@@ -90968,19 +90955,19 @@
    title="">url</var> argument, to obtain <var title="">host</var>,
    <var title="">port</var>, <var title="">resource name</var>, and
    <var title="">secure</var>. If this fails, throw a
-   <code>SYNTAX_ERR</code> exception and abort these steps. <a
+   <code>SyntaxError</code> exception and abort these steps. <a
    href="#refsWSP">[WSP]</a></p></li>
 
    <li><p>If <var title="">secure</var> is false but the
    <span>origin</span> of the <span>entry script</span> has a scheme
    component that is itself a secure protocol, e.g. HTTPS, then throw
-   a <code>SECURITY_ERR</code> exception.</p></li>
+   a <code>SecurityError</code> exception.</p></li>
 
    <li>
 
     <p>If <var title="">port</var> is a port to which the user agent
     is configured to block access, then throw a
-    <code>SECURITY_ERR</code> exception. (User agents typically block
+    <code>SecurityError</code> exception. (User agents typically block
     access to well-known ports like SMTP.)</p>
 
     <!-- e.g. http://www.mozilla.org/projects/netlib/PortBanning.html -->
@@ -91009,7 +90996,7 @@
    elements that comprise the value of <code
    title="http-sec-websocket-protocol">Sec-WebSocket-Protocol</code>
    header fields as defined by the WebSocket protocol specification,
-   then throw a <code>SYNTAX_ERR</code> exception and abort these
+   then throw a <code>SyntaxError</code> exception and abort these
    steps. <a href="#refsWSP">[WSP]</a></p></li>
 
    <li><p>Let <var title="">origin</var> be the <span title="ASCII
@@ -91132,17 +91119,17 @@
 
    <li><p>If the method's first argument is present but is not an
    integer equal to 1000 or in the range 3000 to 4999, throw an
-   <code>INVALID_ACCESS_ERR</code> exception and abort these
+   <code>InvalidAccessError</code> exception and abort these
    steps.</p></li>
 
    <li><p>If the method's second argument has any unpaired surrogates,
-   then throw a <code>SYNTAX_ERR</code> exception and abort these
+   then throw a <code>SyntaxError</code> exception and abort these
    steps.</p></li>
 
    <li><p>If the method's second argument is present, then let <var
    title="">reason</var> be the result of encoding that argument as
    UTF-8. If <var title="">reason</var> is longer than 123 bytes, then
-   throw a <code>SYNTAX_ERR</code> exception and abort these steps.
+   throw a <code>SyntaxError</code> exception and abort these steps.
    <a href="#refsRFC3629">[RFC3629]</a></p></li>
 
    <li><p>Run the first matching steps from the following list:</p>
@@ -91297,7 +91284,7 @@
   the new value is either the string "<code title="">blob</code>" or
   the string "<code title="">arraybuffer</code>", then set the IDL
   attribute to this new value. Otherwise, throw a
-  <code>SYNTAX_ERR</code> exception.</p>
+  <code>SyntaxError</code> exception.</p>
 
   <p class="note">This attribute allows authors to control how binary
   data is exposed to scripts. By setting the attribute to "<code
@@ -91321,7 +91308,7 @@
   connection. If the <code
   title="dom-WebSocket-readyState">readyState</code> attribute is
   <code title="dom-WebSocket-CONNECTING">CONNECTING</code>, it must
-  raise an <code>INVALID_STATE_ERR</code> exception. Otherwise, the
+  throw an <code>InvalidStateError</code> exception. Otherwise, the
   user agent must run the appropriate set of steps from the following
   list:</p>
 
@@ -91332,7 +91319,7 @@
    <dd>
 
     <p>If the <var title="">data</var> argument has any unpaired
-    surrogates, then raise a <code>SYNTAX_ERR</code> exception. If
+    surrogates, then throw a <code>SyntaxError</code> exception. If
     <i>the WebSocket connection is established</i>, and the string has
     no unpaired surrogates, and <i title="the WebSocket closing
     handshake is started">the WebSocket closing handshake has not yet
@@ -91343,7 +91330,7 @@
     <i>close the WebSocket connection</i> <span
     title="concept-websocket-close-fail">with prejudice</span>. Any
     invokation of this method with a string argument that does not
-    raise an exception must increase the <code
+    throw an exception must increase the <code
     title="dom-WebSocket-bufferedAmount">bufferedAmount</code>
     attribute by the number of bytes needed to express the argument as
     UTF-8. <a href="#refsRFC3629">[RFC3629]</a> <a
@@ -91368,7 +91355,7 @@
     by the <code>Blob</code> object. <!-- that sentence is meant to
     invoke "This interface represents immutable raw data." --> Any
     invokation of this method with a <code>Blob</code> argument that
-    does not raise an exception must increase the <code
+    does not throw an exception must increase the <code
     title="dom-WebSocket-bufferedAmount">bufferedAmount</code>
     attribute by the size of the <code>Blob</code> object's raw data,
     in bytes. <!-- that sentence is meant to invoke the same as
@@ -91395,7 +91382,7 @@
     sentence is meant to invoke "The ArrayBuffer type describes a
     buffer used to store data for the array buffer views." at the top
     of the Typed Array spec --> Any invokation of this method with an
-    <code>ArrayBuffer</code> argument that does not raise an exception
+    <code>ArrayBuffer</code> argument that does not throw an exception
     must increase the <code
     title="dom-WebSocket-bufferedAmount">bufferedAmount</code>
     attribute by the length of the <code>ArrayBuffer</code> in bytes.
@@ -91863,7 +91850,7 @@
     state the origin, set the target origin to "<code
     title="">/</code>".</p>
 
-    <p>Throws a <code>DATA_CLONE_ERR</code> if <var
+    <p>Throws a <code>DataCloneError</code> if <var
     title="">transfer</var> array contains duplicate objects or if
     <var title="">message</var> could not be cloned.</p>
 
@@ -91899,7 +91886,7 @@
     <p>If the value of the <var title="">targetOrigin</var> argument
     is neither a single U+002A ASTERISK character (*), a single U+002F
     SOLIDUS character (/), nor an <span>absolute URL</span>, then
-    throw a <code>SYNTAX_ERR</code> exception and abort the overall
+    throw a <code>SyntaxError</code> exception and abort the overall
     set of steps.</p>
 
    </li>
@@ -91930,7 +91917,7 @@
       than once, or any of the <code>Transferable</code> objects
       listed in <var title="">transfer</var> have already been <span
       title="transfer a Transferable object">transfered</span> once
-      before, then throw a <code>DATA_CLONE_ERR</code> exception and
+      before, then throw a <code>DataCloneError</code> exception and
       abort these steps.</p>
 
      </li>
@@ -92199,7 +92186,7 @@
     title="">transfer</var> are transferred, not just cloned, meaning
     that they are no longer usable on the sending side.</p>
 
-    <p>Throws a <code>DATA_CLONE_ERR</code> if <var
+    <p>Throws a <code>DataCloneError</code> if <var
     title="">transfer</var> array contains duplicate objects or the
     source or target ports, or if <var title="">message</var> could
     not be cloned.</p>
@@ -92369,7 +92356,7 @@
       than once, or any of the <code>Transferable</code> objects
       listed in <var title="">transfer</var> have already been <span
       title="transfer a Transferable object">transfered</span> once
-      before, then throw a <code>DATA_CLONE_ERR</code> exception and
+      before, then throw a <code>DataCloneError</code> exception and
       abort these steps.</p>
 
      </li>
@@ -92379,7 +92366,7 @@
       <p>If any of the objects in <var title="">transfer</var> are
       either the <var title="">source port</var> or the <var
       title="">target port</var> (if any), then throw a
-      <code>DATA_CLONE_ERR</code> exception and abort these
+      <code>DataCloneError</code> exception and abort these
       steps.</p>
 
      </li>
@@ -92424,7 +92411,7 @@
 
    <li><p>If there is no <var title="">target port</var> (i.e. if <var
    title="">source port</var> is not entangled), then abort these
-   steps.</p></li> <!-- we don't raise an exception if there is no
+   steps.</p></li> <!-- we don't throw an exception if there is no
    target port because this can happen at a moment's notice. we don't
    return false because if the port is _about_ to be closed, the
    message might not be listened for anyway. we don't do this before
@@ -92474,7 +92461,7 @@
    <li><p>If the <var title="">source port</var> is not entangled with
    another port, then return <var title="">port1</var> and abort these
    steps.</p></li>
-   <!- - we don't raise an exception because this can happen moment's
+   <!- - we don't throw an exception because this can happen moment's
    notice. we don't return null because then we'd end up with
    null derefs. better to just let the likely next postMessage call
    fall on the floor. - ->
@@ -92800,8 +92787,8 @@
   <p>If the given <var title="">key</var> <em>does</em> exist in the
   list, then it must have its value updated to <var title="">value</var>.</p>
 
-  <p>If it couldn't set the new value, the method must raise an
-  <code>QUOTA_EXCEEDED_ERR</code> exception. (Setting could fail if,
+  <p>If it couldn't set the new value, the method must throw an
+  <code>QuotaExceededError</code> exception. (Setting could fail if,
   e.g., the user has disabled storage for the site, or if the quota
   has been exceeded.)</p>
 
@@ -92950,13 +92937,13 @@
 
   <ol>
 
-   <li><p>The user agent may throw a <code>SECURITY_ERR</code>
+   <li><p>The user agent may throw a <code>SecurityError</code>
    exception instead of returning a <code>Storage</code> object if the
    request violates a policy decision (e.g. if the user agent is
    configured to not allow the page to persist data).</p></li>
 
    <li><p>If the <code>Document</code>'s <span>origin</span> is not a
-   scheme/host/port tuple, then throw a <code>SECURITY_ERR</code>
+   scheme/host/port tuple, then throw a <code>SecurityError</code>
    exception and abort these steps.</p></li>
 
    <li><p>Check to see if the user agent has allocated a local storage
@@ -92998,7 +92985,7 @@
 
   <h6 id="security-localStorage">Security</h6>
 
-  <p>User agents must raise a <code>SECURITY_ERR</code> exception
+  <p>User agents must throw a <code>SecurityError</code> exception
   whenever any of the members of a <code>Storage</code> object
   originally returned by the <code
   title="dom-localStorage">localStorage</code> attribute are accessed
@@ -93151,7 +93138,7 @@
 
   <!--<p>If the storage area space limit is reached during a <code
   title="dom-Storage-setItem">setItem()</code> call, the method will
-  raise an exception.</p>-->
+  throw an exception.</p>-->
 
   <p>A mostly arbitrary limit of five megabytes per
   <span>origin</span> is recommended. Implementation feedback is
@@ -103191,7 +103178,7 @@
   algorithm</dfn>. The algorithm takes as input a DOM
   <code>Element</code>, <code>Document</code>, or
   <code>DocumentFragment</code> referred to as <var title="">the
-  node</var>, and either returns a string or raises an exception.</p>
+  node</var>, and either returns a string or throws an exception.</p>
 
   <p class="note">This algorithm serializes the <em>children</em> of
   the node being serialized, not the node itself.</p>
@@ -103417,8 +103404,8 @@
 
       <p>Other node types (e.g. <code title="">Attr</code>) cannot
       occur as children of elements. If, despite this, they somehow do
-      occur, this algorithm must raise an
-      <code>INVALID_STATE_ERR</code> exception.</p>
+      occur, this algorithm must throw an
+      <code>InvalidStateError</code> exception.</p>
 
      </li>
 
@@ -103902,7 +103889,7 @@
 
   <p>The <dfn>XML fragment serialization algorithm</dfn> for a
   <code>Document</code> or <code>Element</code> node either returns a
-  fragment of XML that represents that node or raises an
+  fragment of XML that represents that node or throws an
   exception.</p>
 
   <p>For <code>Document</code>s, the algorithm must return a string in
@@ -103942,8 +103929,8 @@
   namespace-well-formed.</p>
 
   <p>If any of the following error cases are found in the DOM subtree
-  being serialized, then the algorithm must raise an
-  <code>INVALID_STATE_ERR</code> exception instead of returning a
+  being serialized, then the algorithm must throw an
+  <code>InvalidStateError</code> exception instead of returning a
   string:</p>
 
   <ul>
@@ -104005,14 +103992,14 @@
   <p class="note">These are the only ways to make a DOM
   unserializable. The DOM enforces all the other XML constraints; for
   example, trying to append two elements to a <code>Document</code>
-  node will raise a <code>HIERARCHY_REQUEST_ERR</code> exception.</p>
+  node will throw a <code>HierarchyRequestError</code> exception.</p>
 
 
 
   <h3>Parsing XHTML fragments</h3>
 
   <p>The <dfn>XML fragment parsing algorithm</dfn> either returns a
-  <code>Document</code> or raises a <code>SYNTAX_ERR</code> exception.
+  <code>Document</code> or throws a <code>SyntaxError</code> exception.
   Given a string <var title="">input</var> and an optional context
   element <var title="concept-frag-parse-context">context</var>, the
   algorithm is as follows:</p>
@@ -104070,7 +104057,7 @@
    <li>
 
     <p>If there is an XML well-formedness or XML namespace
-    well-formedness error, then raise a <code>SYNTAX_ERR</code>
+    well-formedness error, then throw a <code>SyntaxError</code>
     exception and abort these steps.</p>
 
    </li>
@@ -116265,7 +116252,6 @@
  v2  * become more consistent about what markup we use to mark up
        productions (nothing? <i>? <code>?)
  v2  * use <code>Document</code> consistently instead of 'document'.
- v2  * s/raise/throw/g
  v2  * be clearer about arrays/lists/collections being zero-based
        despite using the term "/index/th".
  v2  * use the sample widgets:




More information about the Commit-Watchers mailing list