[html5] r2458 - [gi] (2) Storage should fire a quote-specific exception when out of quota. Also, [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Nov 26 02:02:15 PST 2008
Author: ianh
Date: 2008-11-26 02:02:14 -0800 (Wed, 26 Nov 2008)
New Revision: 2458
Modified:
index
source
Log:
[gi] (2) Storage should fire a quote-specific exception when out of quota. Also, replace 'security exception' with SECURITY_ERR, and cross-ref all exceptions.
Modified: index
===================================================================
--- index 2008-11-26 09:32:12 UTC (rev 2457)
+++ index 2008-11-26 10:02:14 UTC (rev 2458)
@@ -266,7 +266,8 @@
<li><a href=#htmloptionscollection><span class=secno>2.8.2.3 </span>HTMLOptionsCollection</a></ol></li>
<li><a href=#domtokenlist><span class=secno>2.8.3 </span>DOMTokenList</a></li>
<li><a href=#domstringmap><span class=secno>2.8.4 </span>DOMStringMap</a></li>
- <li><a href=#dom-feature-strings><span class=secno>2.8.5 </span>DOM feature strings</a></ol></ol></li>
+ <li><a href=#dom-feature-strings><span class=secno>2.8.5 </span>DOM feature strings</a></li>
+ <li><a href=#exceptions><span class=secno>2.8.6 </span>Exceptions</a></ol></ol></li>
<li><a href=#dom><span class=secno>3 </span>Semantics and structure of HTML documents</a>
<ol>
<li><a href=#semantics-intro><span class=secno>3.1 </span>Introduction</a></li>
@@ -642,14 +643,13 @@
<li><a href=#event-loops><span class=secno>5.4.2 </span>Event loops</a>
<ol>
<li><a href=#generic-task-sources><span class=secno>5.4.2.1 </span>Generic task sources</a></ol></li>
- <li><a href=#security-exceptions><span class=secno>5.4.3 </span>Security exceptions</a></li>
- <li><a href=#javascript-protocol><span class=secno>5.4.4 </span>The <code title="">javascript:</code> protocol</a></li>
- <li><a href=#events><span class=secno>5.4.5 </span>Events</a>
+ <li><a href=#javascript-protocol><span class=secno>5.4.3 </span>The <code title="">javascript:</code> protocol</a></li>
+ <li><a href=#events><span class=secno>5.4.4 </span>Events</a>
<ol>
- <li><a href=#event-handler-attributes><span class=secno>5.4.5.1 </span>Event handler attributes</a></li>
- <li><a href=#event-firing><span class=secno>5.4.5.2 </span>Event firing</a></li>
- <li><a href=#events-and-the-window-object><span class=secno>5.4.5.3 </span>Events and the <code>Window</code> object</a></li>
- <li><a href=#runtime-script-errors><span class=secno>5.4.5.4 </span>Runtime script errors</a></ol></ol></li>
+ <li><a href=#event-handler-attributes><span class=secno>5.4.4.1 </span>Event handler attributes</a></li>
+ <li><a href=#event-firing><span class=secno>5.4.4.2 </span>Event firing</a></li>
+ <li><a href=#events-and-the-window-object><span class=secno>5.4.4.3 </span>Events and the <code>Window</code> object</a></li>
+ <li><a href=#runtime-script-errors><span class=secno>5.4.4.4 </span>Runtime script errors</a></ol></ol></li>
<li><a href=#user-prompts><span class=secno>5.5 </span>User prompts</a>
<ol>
<li><a href=#simple-dialogs><span class=secno>5.5.1 </span>Simple dialogs</a></li>
@@ -1917,18 +1917,18 @@
<p>Unless otherwise specified, if a DOM attribute that is a floating
point number type (<code title="">float</code>) is assigned an
- Infinity or Not-a-Number value, a <code class=XXX>NOT_SUPPORTED_ERR</code> exception must be
+ Infinity or Not-a-Number value, a <code class=XXX><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be
raised.</p>
<p>Unless otherwise specified, if a method with an argument that is a
floating point number type (<code title="">float</code>) is passed
- an Infinity or Not-a-Number value, a <code class=XXX>NOT_SUPPORTED_ERR</code> exception must be
+ an Infinity or Not-a-Number value, a <code class=XXX><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be
raised.</p>
<!-- XXX DOMB -->
<p>Unless otherwise specified, if a method is passed fewer
arguments than is defined for that method in its IDL definition,
- a <code class=XXX>NOT_SUPPORTED_ERR</code> exception must be
+ a <code class=XXX><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be
raised.</p>
<!-- XXX DOMB -->
@@ -5031,7 +5031,7 @@
the conforming value associated with the state that the attribute
would be in if set to the given new value, otherwise, if the new
value is the empty string, then the content attribute must be
- removed, otherwise, the setter must raise a <code>SYNTAX_ERR</code>
+ removed, otherwise, the setter must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
exception.</p>
<p>If a reflecting DOM attribute is a <code>DOMString</code> but
@@ -5080,7 +5080,7 @@
be returned. If, on the other hand, it fails, 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 fire an <code>INDEX_SIZE_ERR</code> exception. Otherwise, the
+ must fire an <code><a href=#index_size_err>INDEX_SIZE_ERR</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>
in base ten and then that string must be used as the new content
@@ -5316,12 +5316,12 @@
<li><p>If <var title="">element</var> is an ancestor of the
<code><a href=#the-select-element>select</a></code> element element on which the
<code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> is rooted, then throw a
- <code>HIERARCHY_REQUEST_ERR</code> exception.</li>
+ <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</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
element on which the <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> is rooted,
- then throw a <code>NOT_FOUND_ERR</code> exception.</li>
+ then throw a <code><a href=#not_found_err>NOT_FOUND_ERR</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>
@@ -5390,7 +5390,7 @@
algorithm:</p>
<ol><li>If the <var title="">token</var> argument contains any <a href=#space-character title="space character">space characters</a>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
+ <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
<li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
@@ -5407,7 +5407,7 @@
algorithm:</p>
<ol><li>If the <var title="">token</var> argument contains any <a href=#space-character title="space character">space characters</a>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
+ <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
<li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
@@ -5430,7 +5430,7 @@
algorithm:</p>
<ol><li>If the <var title="">token</var> argument contains any <a href=#space-character title="space character">space characters</a>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
+ <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
<li>Otherwise, <a href=#remove-a-token-from-a-string title="remove a token from a string">remove
@@ -5441,7 +5441,7 @@
algorithm:</p>
<ol><li>If the <var title="">token</var> argument contains any <a href=#space-character title="space character">space characters</a>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
+ <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
<li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
@@ -5532,9 +5532,36 @@
not guaranteed that an implementation that supports "<code title="">HTML</code>" "<code>5.0</code>" also supports "<code title="">HTML</code>" "<code>2.0</code>".</p>
+ <h4 id=exceptions><span class=secno>2.8.6 </span>Exceptions</h4>
+ <p>The following <code>DOMException</code> codes are defined in DOM
+ Core. <a href=#refsDOMCORE>[DOMCORE]</a></p>
- <h2 id=dom><span class=secno>3 </span>Semantics and structure of HTML documents</h2>
+ <ol><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> <!-- actually in XHR for now -->
+ <li value=19><dfn id=network_err><code>NETWORK_ERR</code></dfn></li> <!-- actually in XHR for now -->
+ <li value=20><dfn id=abort_err><code>ABORT_ERR</code></dfn></li> <!-- actually in XHR for now -->
+ <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually in workers for now -->
+ <li value=22><dfn id=quota_exceeded_err><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
+ <li value=81><dfn id=parse_err><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
+ <li value=82><dfn id=serialise_err><code>SERIALISE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
+ </ol><h2 id=dom><span class=secno>3 </span>Semantics and structure of HTML documents</h2>
<h3 id=semantics-intro><span class=secno>3.1 </span>Introduction</h3>
@@ -5641,7 +5668,7 @@
<h4 id=security><span class=secno>3.2.2 </span>Security</h4>
- <p>User agents must raise a <a href=#security-exception>security exception</a> whenever
+ <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever
any of the members of an <code><a href=#htmldocument>HTMLDocument</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
@@ -5687,7 +5714,7 @@
<p id=sandboxCookies>On getting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed origin
browsing context flag</a> is set on the <a href=#browsing-context>browsing
context</a> of the document, the user agent must raise a
- <a href=#security-exception>security exception</a>. Otherwise, it must return the same
+ <code><a href=#security_err>SECURITY_ERR</a></code> exception. Otherwise, it must return the same
string as the value of the <code title="">Cookie</code> HTTP header
it would include if <a href=#fetch title=fetch>fetching</a> the resource
indicated by <span>the document's address</span><!-- XXXDOCURL -->
@@ -5695,8 +5722,8 @@
<p>On setting, if the <a href=#sandboxed-origin-browsing-context-flag>sandboxed origin browsing context
flag</a> is set on the <a href=#browsing-context>browsing context</a> of the
- document, the user agent must raise a <a href=#security-exception>security
- exception</a>. Otherwise, the user agent must act as it would
+ document, the user agent must raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+ exception. Otherwise, the user agent must act as it would
when processing cookies if it had just attempted to
<a href=#fetch>fetch</a> <span>the document's address</span><!-- XXXDOCURL
--> over HTTP, and had received a response with a
@@ -5895,7 +5922,7 @@
<ol><li>If the new value is not a <code><a href=#the-body-element>body</a></code> or
<code>frameset</code> element, then raise a
- <code>HIERARCHY_REQUEST_ERR</code> exception and abort these
+ <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception and abort these
steps.</li>
<li>Otherwise, if the new value is the same as <a href=#the-body-element-1>the body
@@ -7351,7 +7378,7 @@
that method returned. If the <code title=dom-document-defaultView>defaultView</code> attribute of the
<code>DocumentView</code> interface of the <code><a href=#htmldocument>HTMLDocument</a></code>
object is null, then the method must raise an
- <code>INVALID_ACCESS_ERR</code> exception.</p>
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
<p>The <dfn id=dom-document-close title=dom-document-close><code>close()</code></dfn>
method must do nothing if there is no <a href=#script-created-parser>script-created
@@ -7546,7 +7573,7 @@
<p>If <var title="">target</var>'s parent node is a
<code>Document</code> object, throw a
- <code>NO_MODIFICATION_ALLOWED_ERR</code> exception and abort these
+ <code><a href=#no_modification_allowed_err>NO_MODIFICATION_ALLOWED_ERR</a></code> exception and abort these
steps.</p>
</li>
@@ -7624,7 +7651,7 @@
<p>If <var title="">target</var>'s parent node is a
<code>Document</code> object, then throw a
- <code>NO_MODIFICATION_ALLOWED_ERR</code> exception and abort
+ <code><a href=#no_modification_allowed_err>NO_MODIFICATION_ALLOWED_ERR</a></code> exception and abort
these steps.
<p>Otherwise, let <var title="">context</var> be the parent node
@@ -7647,7 +7674,7 @@
<dd>
- <p>Throw a <code>SYNTAX_ERR</code> exception.</p>
+ <p>Throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
</dd>
@@ -7757,7 +7784,7 @@
<p>If any of the following cases are found in the DOM being
serialized, the user agent must raise an
- <code>INVALID_STATE_ERR</code> exception:</p>
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception:</p>
<ul><li>A <code>Document</code> node with no child element nodes.</li>
@@ -7793,7 +7820,7 @@
</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 set an attribute with a name that contains an
- equals sign (=) will raised an <code>INVALID_CHARACTER_ERR</code>
+ equals sign (=) will raised an <code><a href=#invalid_character_err>INVALID_CHARACTER_ERR</a></code>
exception.</p>
<p>On setting, in an XML context, the <code title=dom-innerHTML-XML><a href=#dom-innerhtml-xml>innerHTML</a></code> DOM attribute on
@@ -7845,7 +7872,7 @@
<p>If the parser found an XML well-formedness or XML namespace
well-formedness error, the attribute's setter must raise a
- <code>SYNTAX_ERR</code> exception and abort these steps.</p>
+ <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.</p>
</li>
@@ -7899,7 +7926,7 @@
and <dfn id=dom-insertadjacenthtml-xml title=dom-insertAdjacentHTML-XML><code>insertAdjacentHTML()</code></dfn>
methods, and the <dfn id=dom-outerhtml-xml title=dom-outerHTML-XML><code>outerHTML</code></dfn> attribute on
both getting and setting, must raise an
- <code>INVALID_ACCESS_ERR</code> exception.</p>
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
<!--
Where would document.write() insert?
@@ -11620,7 +11647,7 @@
<ol><li><p>If the <code title=event-DOMActivate>DOMActivate</code>
event in question is not <span title=concept-events-trusted>trusted</span> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code> method call was the reason for the
event being dispatched), and the <code><a href=#the-a-element>a</a></code> element's <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute is <span class=XXX>...</span> then raise an
- <code>INVALID_ACCESS_ERR</code> exception and abort these
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
steps.</li>
<li><p>If the target of the <code title=event-click>click</code>
@@ -17925,7 +17952,7 @@
attribute gives the desired speed at which the <a href=#media-resource>media
resource</a> is to play, as a multiple of its intrinsic
speed. The attribute is mutable, but on setting, if the new value is
- 0.0, a <code>NOT_SUPPORTED_ERR</code> exception must be raised
+ 0.0, a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised
instead of the value being changed. It must initially have the value
1.0.</p>
@@ -17936,7 +17963,7 @@
then the implication is that the user is using a feature such as
fast forward or slow motion playback. The attribute is mutable, but
on setting, if the new value is 0.0, a
- <code>NOT_SUPPORTED_ERR</code> exception must be raised instead of
+ <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception must be raised instead of
the value being changed. Otherwise, the playback must change speed
(if the element is <a href=#potentially-playing>potentially playing</a>). It must initially
have the value 1.0.</p>
@@ -18165,7 +18192,7 @@
that the user agent must run the following steps:</p>
<ol><li><p>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 the user
- agent must raise an <code>INVALID_STATE_ERR</code> exception (if
+ agent must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception (if
the seek was in response to a DOM method call or setting of a DOM
attribute), and abort these steps.</li>
@@ -18179,7 +18206,7 @@
<li><p>If the (possibly now changed) <var title="">new playback
position</var> is not in one of the ranges given in the <code title=dom-media-seekable><a href=#dom-media-seekable>seekable</a></code> attribute, then the user
- agent must raise an <code>INDEX_SIZE_ERR</code> exception (if the
+ agent must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception (if the
seek was in response to a DOM method call or setting of a DOM
attribute), and abort these steps.</li>
@@ -18298,7 +18325,7 @@
linear. The loudest setting may be lower than the system's loudest
possible setting; for example the user could have set a maximum
volume. 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
+ then, on setting, an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be
raised instead.</p>
<p>The <dfn id=dom-media-muted title=dom-media-muted><code>muted</code></dfn>
@@ -18343,7 +18370,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 raise <code><a href=#index_size_err>INDEX_SIZE_ERR</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>
@@ -19133,8 +19160,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>INDEX_SIZE_ERR</code> exception must be raised. If the <var title="">color</var> cannot be parsed as a CSS color, then a
- <code>SYNTAX_ERR</code> exception must be raised. Otherwise, the
+ <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception must be raised. If the <var title="">color</var> cannot be parsed as a CSS color, then a
+ <code><a href=#syntax_err>SYNTAX_ERR</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 a CSS
<color> value. If multiple stops are added at the same offset
@@ -19148,7 +19175,7 @@
<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>NOT_SUPPORTED_ERR</code> exception. Otherwise, the method must
+ <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception. Otherwise, the method must
return a linear <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the
specified line.</p>
@@ -19170,9 +19197,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><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></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><a href=#index_size_err>INDEX_SIZE_ERR</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>
@@ -19244,7 +19271,7 @@
<code title="">no-repeat</code>. If the empty string or null 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> exception. User agents must recognize the
+ <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception. User agents must recognize the
four values described above exactly (e.g. they must not do case
folding). The method must return a <code><a href=#canvaspattern>CanvasPattern</a></code> object
suitably initialized.</p>
@@ -19252,20 +19279,20 @@
<p>The <var title="">image</var> argument must be an instance of an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> or <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code>. If
the <var title="">image</var> is of the wrong type or null, the
- implementation must raise a <code>TYPE_MISMATCH_ERR</code>
+ implementation must raise a <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code>
exception.</p>
<!-- drawImage() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, then
- the implementation must raise an <code>INVALID_STATE_ERR</code>
+ the implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception.</p>
<!-- drawImage() has an equivalent paragraph -->
<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>INVALID_STATE_ERR</code>
+ implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception.</p>
<!-- drawImage() has an equivalent paragraph -->
@@ -19613,7 +19640,7 @@
the arguments and the last point in the subpath.</p>
<p>Negative values for <var title="">radius</var> must cause the
- implementation to raise an <code>INDEX_SIZE_ERR</code>
+ implementation to raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>
<p>Let the point (<var title="">x0</var>, <var title="">y0</var>) be
@@ -19694,7 +19721,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 raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>
@@ -20200,13 +20227,13 @@
<p>The <var title="">image</var> argument must be an instance of an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> or <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code>. If
the <var title="">image</var> is of the wrong type or null, the
- implementation must raise a <code>TYPE_MISMATCH_ERR</code>
+ implementation must raise a <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</a></code>
exception.</p>
<!-- createPattern() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, then
- the implementation must raise an <code>INVALID_STATE_ERR</code>
+ the implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception.</p>
<!-- createPattern() has an equivalent paragraph -->
@@ -20225,7 +20252,7 @@
<p>If the source rectangle is not entirely within the source image,
or 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>
+ <code><a href=#index_size_err>INDEX_SIZE_ERR</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>),
@@ -20283,8 +20310,8 @@
<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>NOT_SUPPORTED_ERR</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>
+ <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>
exception.</p>
<p><code><a href=#imagedata>ImageData</a></code> objects must be initialized so that their
@@ -20340,11 +20367,11 @@
<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>NOT_SUPPORTED_ERR</code> exception.</p>
+ method must raise a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception.</p>
<p>If the first argument to the method is null or not an
<code><a href=#imagedata>ImageData</a></code> object then the <code title=dom-context-2d-putImageData><a href=#dom-context-2d-putimagedata>putImageData()</a></code> method
- must raise a <code>TYPE_MISMATCH_ERR</code> exception.</p>
+ must raise a <code><a href=#type_mismatch_err>TYPE_MISMATCH_ERR</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>
@@ -20647,14 +20674,14 @@
</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 <a href=#security-exception>security
- exception</a>.</p>
+ false is called, the method must raise a <code><a href=#security_err>SECURITY_ERR</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 <a href=#security-exception>security
- exception</a>.</p>
+ correct arguments, the method must raise a <code><a href=#security_err>SECURITY_ERR</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
@@ -20856,7 +20883,7 @@
<ol><li>If the <code title=event-DOMActivate>DOMActivate</code> event
in question is not <span title=concept-events-trusted>trusted</span> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code> method call was the reason for the
event being dispatched), and the <code><a href=#the-area-element>area</a></code> element's <code title=attr-area-target>target</code> attribute is <span class=XXX>...</span> then raise an
- <code>INVALID_ACCESS_ERR</code> exception.</li>
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</li>
<li>Otherwise, the user agent must <a href=#following-hyperlinks title="following
hyperlinks">follow the hyperlink</a> defined by the
@@ -21299,7 +21326,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>HIERARCHY_REQUEST_ERR</code> DOM exception must be
+ then a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be
raised instead.</p>
<p>The <dfn id=dom-table-createcaption title=dom-table-createCaption><code>createCaption()</code></dfn>
@@ -21322,7 +21349,7 @@
<code><a href=#the-table-element>table</a></code> element that is neither a <code><a href=#the-caption-element>caption</a></code>
element nor a <code><a href=#the-colgroup-element>colgroup</a></code> element, if any, or at the end
of the table otherwise. If the new value is not a <code><a href=#the-thead-element>thead</a></code>
- element, then a <code>HIERARCHY_REQUEST_ERR</code> DOM exception
+ element, then a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception
must be raised instead.</p>
<p>The <dfn id=dom-table-createthead title=dom-table-createTHead><code>createTHead()</code></dfn>
@@ -21349,7 +21376,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>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised
+ a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> DOM exception must be raised
instead.</p>
<p>The <dfn id=dom-table-createtfoot title=dom-table-createTFoot><code>createTFoot()</code></dfn>
@@ -21403,7 +21430,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>INDEX_SIZE_ERR</code>
+ <dd>The method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</dd>
<dt>If the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection has
@@ -21449,7 +21476,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>INDEX_SIZE_ERR</code> exception, and these
+ instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</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>
@@ -21590,7 +21617,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>INDEX_SIZE_ERR</code>
+ collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>
<p>If <var title="">index</var> is equal to −1 or equal to the
@@ -21608,7 +21635,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>INDEX_SIZE_ERR</code> exception.</p>
+ instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
@@ -21730,7 +21757,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>INDEX_SIZE_ERR</code>
+ collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>
<p>If <var title="">index</var> is equal to −1 or equal to the
@@ -21748,7 +21775,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>INDEX_SIZE_ERR</code> exception.</p>
+ instead raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
<h4 id=the-td-element><span class=secno>4.9.10 </span>The <dfn><code>td</code></dfn> element</h4>
@@ -26786,7 +26813,7 @@
value.</dd>
</dl><p>If the attribute does not apply, then on getting and setting it
- must throw an <code>INVALID_ACCESS_ERR</code> exception.</p>
+ must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
<hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> DOM
attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an
@@ -26809,7 +26836,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>INVALID_ACCESS_ERR</code> exception; otherwise, if
+ throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</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
@@ -26836,7 +26863,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>INVALID_ACCESS_ERR</code> exception. Otherwise, if
+ throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception. Otherwise, if
the <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>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,
@@ -26854,17 +26881,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>INVALID_ACCESS_ERR</code> exception, and abort these
+ throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</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>INVALID_ACCESS_ERR</code> exception, and abort these
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</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>INVALID_ACCESS_ERR</code> exception, and abort
+ then throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception, and abort
these steps; otherwise, let <var title="">value</var> be the result
of that algorithm.</li>
@@ -26880,10 +26907,10 @@
current state, on <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>INVALID_ACCESS_ERR</code> exception.</li>
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</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>INVALID_ACCESS_ERR</code> exception.</li>
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</li>
<li><p>Set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the
element to <var title="">value as string</var>.</li>
@@ -30757,7 +30784,7 @@
attribute must return the number of rows currently present in the
selection. The <dfn id=dom-datagridselection-item title=dom-DataGridSelection-item><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th row in the selection. If the argument is out
of range (less than zero or greater than the number of selected rows
- minus one), then it must raise an <code>INDEX_SIZE_ERR</code>
+ minus one), then it must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception. <a href=#refsDOM3CORE>[DOM3CORE]</a></p>
<p>The <dfn id=dom-datagridselection-isselected title=dom-DataGridSelection-isSelected><code>isSelected()</code></dfn>
@@ -30769,7 +30796,7 @@
method takes two arguments, <var title="">row</var> and <var title="">selected</var>. When invoked, it must set the selection
state of row <var title="">row</var> to selected if <var title="">selected</var> is true, and unselected if it is false. If
<var title="">row</var> is not a row in the data grid, the method
- must raise an <code>INDEX_SIZE_ERR</code> exception. If the
+ must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. If the
specified row is not rendered because one of its ancestors is
closed, the method must do nothing.</p>
@@ -32196,7 +32223,7 @@
<li><p>If the <a href=#parent-browsing-context>parent browsing context</a>'s <a href=#active-document>active
document</a> does not have the <span>same</span> <a href=#effective-script-origin>effective
script origin</a> as the script that is accessing the <code title=dom-frameElement><a href=#dom-frameelement>frameElement</a></code> attribute, then throw
- a <a href=#security-exception>security exception</a>.</li>
+ a <code><a href=#security_err>SECURITY_ERR</a></code> exception.</li>
<li><p>Otherwise, return the <a href=#browsing-context-container>browsing context
container</a> for <var title="">b</var>.</li>
@@ -32519,7 +32546,7 @@
<h4 id=security-2><span class=secno>5.2.1 </span>Security</h4>
- <p>User agents must raise a <a href=#security-exception>security exception</a> whenever
+ <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever
any of the members 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 <a href=#browsing-context>browsing context</a>'s
@@ -32967,13 +32994,13 @@
string otherwise. On getting, the attribute must return its current
value, unless the document was created by
<code>XMLHttpRequest</code>, in which case it must throw an
- <code>INVALID_ACCESS_ERR</code> exception. On setting, the user
+ <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception. On setting, the user
agent must run the following algorithm:</p>
<ol><li>
<p>If the document was created by <code>XMLHttpRequest</code>,
- throw an <code>INVALID_ACCESS_ERR</code> exception and abort these
+ throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort these
steps.</p>
</li>
@@ -32986,7 +33013,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 <a href=#security-exception>security exception</a> and abort
+ characters, then throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort
these steps. <a href=#refsRFC3490>[RFC3490]</a></p>
</li>
@@ -32999,8 +33026,8 @@
<ol><li>
- <p>If the current value is an IP address, throw a <a href=#security-exception>security
- exception</a> and abort these steps.</p>
+ <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>
</li>
@@ -33008,7 +33035,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 <a href=#security-exception>security exception</a> and abort these
+ throw a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort these
steps.</p>
</li>
@@ -33286,15 +33313,8 @@
</dd>
- </dl><h4 id=security-exceptions><span class=secno>5.4.3 </span>Security exceptions</h4>
+ </dl><!-- SCRIPT EXEC --><h4 id=javascript-protocol><span class=secno>5.4.3 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
- <p class=XXX>Define <dfn id=security-exception>security exception</dfn>.</p>
-
-
-
- <!-- SCRIPT EXEC -->
- <h4 id=javascript-protocol><span class=secno>5.4.4 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
-
<p>A URL using the <code title="">javascript:</code> protocol must,
if and when <dfn id=concept-js-deref title=concept-js-deref>dereferenced</dfn>, be
evaluated by executing the script obtained using the content
@@ -33372,7 +33392,7 @@
or when the user has disabled scripting altogether.</p>
- <h4 id=events><span class=secno>5.4.5 </span>Events</h4>
+ <h4 id=events><span class=secno>5.4.4 </span>Events</h4>
<p class=XXX>We need to define how to handle events that are
to be fired on a Document that is no longer the active document of
@@ -33384,7 +33404,7 @@
when the document isn't active.</p>
- <h5 id=event-handler-attributes><span class=secno>5.4.5.1 </span>Event handler attributes</h5>
+ <h5 id=event-handler-attributes><span class=secno>5.4.4.1 </span>Event handler attributes</h5>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cscript%3E%0Aw(a%3Ddocument.implementation.createDocument(null%2C%20null%2C%20null))%3B%0Aw(a.appendChild(a.createElementNS('http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml'%2C%20'html')))%3B%0Aw(b%3Da.firstChild.appendChild(a.createElementNS('http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml'%2C%20'body')))%3B%0Aw(b.test%20%3D%20w)%3B%0Aw(b.setAttribute('onclick'%2C%20'test(%22fire%3A%20%22%20%2B%20event)'))%3B%0Aw(b.onclick)%3B%0Aw(e%3Da.createEvent('Event'))%3B%0Aw(e.initEvent('click'%2C%20false%2C%20false))%3B%0Aw(b.dispatchEvent(e))%3B%0A%3C%2Fscript%3E -->
@@ -33693,7 +33713,7 @@
itself.)</p>
- <h5 id=event-firing><span class=secno>5.4.5.2 </span>Event firing</h5>
+ <h5 id=event-firing><span class=secno>5.4.4.2 </span>Event firing</h5>
<p class=XXX>maybe this should be moved higher up
(terminology? conformance? DOM?) Also, the whole terminology thing
@@ -33763,7 +33783,7 @@
dispatched in expected ways.</p>
- <h5 id=events-and-the-window-object><span class=secno>5.4.5.3 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
+ <h5 id=events-and-the-window-object><span class=secno>5.4.4.3 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
<p>When an event is dispatched at a DOM node in a
<code>Document</code> in a <a href=#browsing-context>browsing context</a>, if the
@@ -33779,7 +33799,7 @@
<code><a href=#window>Window</a></code> object at the end of the phase, unless bubbling
has been prevented.</li>
- </ol><h5 id=runtime-script-errors><span class=secno>5.4.5.4 </span>Runtime script errors</h5>
+ </ol><h5 id=runtime-script-errors><span class=secno>5.4.4.4 </span>Runtime script errors</h5>
<p><em>This section only applies to user agents that support
scripting in general and ECMAScript in particular.</em></p>
@@ -34482,15 +34502,13 @@
</dd>
- </dl><p>User agents should raise <a href=#security-exception title="security
- exception">security exceptions</a> if the methods are called with
- <var title="">protocol</var> or <var title="">mimeType</var> values
- that the UA deems to be "privileged". For example, a site attempting
- to register a handler for <code>http</code> URLs or
- <code>text/html</code> content in a Web browser would likely cause
- an exception to be raised.</p>
+ </dl><p>User agents should raise <code><a href=#security_err>SECURITY_ERR</a></code> exceptions if
+ the methods are called with <var title="">protocol</var> or <var title="">mimeType</var> values that the UA deems to be
+ "privileged". For example, a site attempting to register a handler
+ for <code>http</code> URLs or <code>text/html</code> content in a
+ Web browser would likely cause an exception to be raised.</p>
- <p>User agents must raise a <code>SYNTAX_ERR</code> exception if the
+ <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</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>
@@ -35970,11 +35988,11 @@
<ol><li><p>If the <code><a href=#applicationcache>ApplicationCache</a></code> object is not
associated with any application cache, then raise an
- <code>INVALID_STATE_ERR</code> exception and abort these
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
steps.</li>
<li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> the <var title="">url</var> argument. If this fails, raise a
- <code>SYNTAX_ERR</code> exception and abort these steps.</li>
+ <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.</li>
<li><p>If there is already a resource in in the <a href=#application-cache>application
cache</a> with which the <code><a href=#applicationcache>ApplicationCache</a></code> object is
@@ -35989,11 +36007,11 @@
<ol><li><p>If the <code><a href=#applicationcache>ApplicationCache</a></code> object is not
associated with any application cache, then raise an
- <code>INVALID_STATE_ERR</code> exception and abort these
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
steps.</li>
<li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> the <var title="">url</var> argument. If this fails, raise a
- <code>SYNTAX_ERR</code> exception and abort these steps.</li>
+ <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort these steps.</li>
<li><p>If there is already a resource in in the <a href=#application-cache>application
cache</a> with which the <code><a href=#applicationcache>ApplicationCache</a></code> object is
@@ -36002,8 +36020,8 @@
and abort these steps.</li>
<li><p>If <var title="">url</var> has a different <a href=#url-scheme title=url-scheme><scheme></a> component than the
- manifest's URL, then raise a <a href=#security-exception>security
- exception</a>.</li>
+ manifest's URL, then raise a <code><a href=#security_err>SECURITY_ERR</a></code>
+ exception.</li>
<li><p>Return, but do not abort these steps.</li>
@@ -36026,7 +36044,7 @@
must be removed entirely (such that if it is re-added, it will be
loaded from the network again). If the <code><a href=#applicationcache>ApplicationCache</a></code>
object is not associated with any application cache, then the method
- must raise an <code>INVALID_STATE_ERR</code> exception instead.</p>
+ must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead.</p>
<p class=warning>Authors should bear in mind that multiple scripts
could be simultaneously modifying the same application cache.</p>
@@ -36037,7 +36055,7 @@
cache</a> with which the <code><a href=#applicationcache>ApplicationCache</a></code> object is
associated, but with no <a href=#browsing-context>browsing context</a>. If there is
no such application cache, then the method must raise an
- <code>INVALID_STATE_ERR</code> exception instead.</p>
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception instead.</p>
<p>If the <dfn id=dom-appcache-swapcache title=dom-appcache-swapCache><code>swapCache()</code></dfn> method
is invoked, the user agent must run the following steps:
@@ -36050,7 +36068,7 @@
<p>Check that <var title="">document</var> is associated with an
<a href=#application-cache>application cache</a>. If it is not, then raise an
- <code>INVALID_STATE_ERR</code> exception and abort these
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
steps.</p>
<p class=note>This is not the same thing as the
@@ -36077,7 +36095,7 @@
same group as <var title="">cache</var> which has an entry
categorized as a <a href=#concept-appcache-manifest title=concept-appcache-manifest>manifest</a> that is newer
than <var title="">cache</var>. If there is not, then raise an
- <code>INVALID_STATE_ERR</code> exception and abort these
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
steps.</li>
<li><p>Let <var title="">new cache</var> be the newest
@@ -36330,14 +36348,14 @@
<ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
third argument.</li>
- <li>If that fails, raise a <a href=#security-exception>security exception</a> and
+ <li>If that fails, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and
abort the <code title=dom-history-pushState><a href=#dom-history-pushstate>pushState()</a></code>
steps.</li>
<li>Compare the resulting <a href=#absolute-url>absolute URL</a> to <span>the
document's address</span><!-- XXXDOCURL -->. 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 <a href=#security-exception>security exception</a> and abort the <code title=dom-history-pushState><a href=#dom-history-pushstate>pushState()</a></code> steps.</li>
+ raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and abort the <code title=dom-history-pushState><a href=#dom-history-pushstate>pushState()</a></code> steps.</li>
</ol><p>For the purposes of the comparison in the above substeps, the
<a href=#url-path title=url-path><path></a> and <a href=#url-query title=url-query><query></a> components can only be the
@@ -36531,13 +36549,13 @@
<hr><p>The <dfn id=dom-location-resolveurl title=dom-location-resolveURL><code>resolveURL(<var title="">url</var>)</code></dfn> method must <a href=#resolve-a-url title="resolve a
url">resolve</a> its <var title="">url</var> argument, and if
that succeeds, return the resulting <a href=#absolute-url>absolute URL</a>. If it
- fails, it must throw a <code>SYNTAX_ERR</code> exception
+ fails, it must throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception
instead.</p>
<h5 id=security-3><span class=secno>5.8.4.1 </span>Security</h5>
- <p>User agents must raise a <a href=#security-exception>security exception</a> whenever
+ <p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</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 <code>Document</code>'s <a href=#effective-script-origin>effective script
@@ -37468,7 +37486,7 @@
now for clarity, but if people ask, put it back. this is part of the
spec.]--> If <var title="">n</var> is less than zero or greater than
or equal to the number of key/value pairs in the object, then this
- method must raise an <code>INDEX_SIZE_ERR</code> exception.</p>
+ method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception.</p>
<p>The <dfn id=dom-storage-getitem title=dom-Storage-getItem><code>getItem(<var title="">key</var>)</code></dfn> method must return the current
value associated with the given <var title="">key</var>. If the
@@ -37487,7 +37505,7 @@
<var title="">value</var> argument.</p>
<p>If it couldn't set the new value, the method must raise an
- <code>INVALID_ACCESS_ERR</code> exception. (Setting could fail if,
+ <code><a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a></code> exception. (Setting could fail if,
e.g., the user has disabled storage for the domain, or if the quota
has been exceeded.)</p>
@@ -37758,9 +37776,9 @@
<p>If the database version provided is not the empty string, and the
database already exists but has a different version, then the method
- must raise an <code>INVALID_STATE_ERR</code> exception.</p>
+ must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
- <p>The user agent may also raise a <a href=#security-exception>security exception</a>
+ <p>The user agent may also raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
in case the request violates a policy decision (e.g. if the user
agent is configured to not allow the page to open databases).</p>
@@ -37883,7 +37901,7 @@
<code><a href=#sqltransactioncallback>SQLTransactionCallback</a></code>,
<code><a href=#sqlstatementcallback>SQLStatementCallback</a></code>, or
<code><a href=#sqlstatementerrorcallback>SQLStatementErrorCallback</a></code> then raise an
- <code>INVALID_STATE_ERR</code> exception. (Calls from inside a
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. (Calls from inside a
<code><a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a></code> thus raise an
exception. The <code><a href=#sqltransactionerrorcallback>SQLTransactionErrorCallback</a></code> handler is
only called once a transaction has failed, and no SQL statements
@@ -37977,7 +37995,7 @@
database, if the statement inserted a row. If the statement inserted
multiple rows, the ID of the last row must be the one returned. If
the statement did not insert a row, then the attribute must instead
- raise an <code>INVALID_ACCESS_ERR</code> exception.</p>
+ raise an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
<p>The <dfn id=dom-sqlresultset-rowsaffected title=dom-SQLResultSet-rowsAffected><code>rowsAffected</code></dfn>
attribute must return the number of rows that were affected by the
@@ -38003,7 +38021,7 @@
<p>The <dfn id=dom-sqlresultsetrowlist-item title=dom-SQLResultSetRowList-item><code>item(<var title="">index</var>)</code></dfn> attribute must return the row
with the given index <var title="">index</var>. If there is no such
- row, then the method must raise an <code>INDEX_SIZE_ERR</code>
+ row, then the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>
<p>Each row must be represented by a native ordered dictionary data
@@ -40073,7 +40091,7 @@
is itself true. Otherwise it must return false.</p>
<p>The <dfn id=dom-selection-collapse title=dom-selection-collapse><code>collapse(<var title="">parentNode</var>, <var title="">offset</var>)</code></dfn>
- method must raise a <code>WRONG_DOCUMENT_ERR</code> DOM exception if
+ method must raise a <code><a href=#wrong_document_err>WRONG_DOCUMENT_ERR</a></code> DOM exception if
<var title="">parentNode</var>'s <code>Document</code> is not the
<code><a href=#htmldocument>HTMLDocument</a></code> object with which the
<code><a href=#selection-0>Selection</a></code> object is associated. Otherwise it is, and
@@ -40083,13 +40101,13 @@
their arguments.</p>
<p>The <dfn id=dom-selection-collapsetostart title=dom-selection-collapseToStart><code>collapseToStart()</code></dfn>
- method must raise an <code>INVALID_STATE_ERR</code> DOM exception if
+ method must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> DOM exception if
there are no ranges in the list. Otherwise, it must invoke the <code title=dom-selection-collapse><a href=#dom-selection-collapse>collapse()</a></code> method with the
<code title="">startContainer</code> and <code title="">startOffset</code> values of the first <code>Range</code>
object in the list as the arguments.</p>
<p>The <dfn id=dom-selection-collapsetoend title=dom-selection-collapseToEnd><code>collapseToEnd()</code></dfn>
- method must raise an <code>INVALID_STATE_ERR</code> DOM exception if
+ method must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> DOM exception if
there are no ranges in the list. Otherwise, it must invoke the <code title=dom-selection-collapse><a href=#dom-selection-collapse>collapse()</a></code> method with the
<code title="">endContainer</code> and <code title="">endOffset</code> values of the last <code>Range</code>
object in the list as the arguments.</p>
@@ -40112,7 +40130,7 @@
method must return the <var title="">index</var>th range in the list. If
<var title="">index</var> is less than zero or greater or equal to the value
returned by the <code title=dom-selection-rangeCount><a href=#dom-selection-rangecount>rangeCount</a></code> attribute, then
- the method must raise an <code>INDEX_SIZE_ERR</code> DOM
+ the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> DOM
exception.</p>
<p>The <dfn id=dom-selection-addrange title=dom-selection-addRange><code>addRange(<var title="">range</var>)</code></dfn>
@@ -40232,7 +40250,7 @@
<p>When these methods and attributes are used with
<code><a href=#the-input-element>input</a></code> elements that are not displaying simple text
- fields, they must raise an <code>INVALID_STATE_ERR</code>
+ fields, they must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception.</p>
@@ -40279,7 +40297,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>SYNTAX_ERR</code> exception.</p>
+ attribute setter must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
<p>The <dfn id=dom-iscontenteditable title=dom-isContentEditable><code>isContentEditable</code></dfn>
DOM attribute, on getting, must return true if the element is
@@ -41522,7 +41540,7 @@
<p>The <dfn id=dom-undomanager-remove title=dom-UndoManager-remove><code>remove(<var title="">index</var>)</code></dfn> method must remove the <a href=#undo-object>undo
object</a> entry with the specified <var title="">index</var>. If
the index is less than zero or greater than or equal to <code title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></code> then the method must
- raise an <code>INDEX_SIZE_ERR</code> exception. <a href=#dom-changes>DOM
+ raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. <a href=#dom-changes>DOM
changes</a> entries are unaffected by this method.</p>
<p>The <dfn id=dom-undomanager-clearundo title=dom-UndoManager-clearUndo><code>clearUndo()</code></dfn>
@@ -41818,7 +41836,7 @@
<p><strong>Action:</strong> The user agent must run the following
steps:</p>
<ol><li><p>If the document is an <span>XML document</span>, then
- throw an <code>INVALID_ACCESS_ERR</code> exception and abort
+ throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception and abort
these steps.</li>
<li><p>If the <var title="">value</var> argument wasn't
specified, abort these steps without doing anything.</li>
@@ -42110,7 +42128,7 @@
to the <a href=#concept-eventsource-list title=concept-eventsource-list>list of event
sources</a> for that object. The same URL can be registered
multiple times. If the URL fails to resolve, then the user agent
- must raise a <code>SYNTAX_ERR</code> exception.</p>
+ must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
<p>When the <dfn id=dom-remoteeventtarget-removeeventsource title=dom-RemoteEventTarget-removeEventSource><code>removeEventSource(<var title="">src</var>)</code></dfn> method is invoked, the user agent
must <a href=#resolve-a-url title="resolve a url">resolve</a> the <a href=#url>URL</a>
@@ -42630,7 +42648,7 @@
when compared in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner. If
it does, it has, and it is, then the user agent must asynchronously
<a href=#establish-a-web-socket-connection>establish a Web Socket connection</a> to <var title="">url</var>. Otherwise, the constructor must raise a
- <code>SYNTAX_ERR</code> exception.</p>
+ <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
<p>The <dfn id=dom-websocket-url title=dom-WebSocket-URL><code>URL</code></dfn>
attribute must return the value that was passed to the
@@ -42657,7 +42675,7 @@
<p>The <dfn id=dom-websocket-postmessage title=dom-WebSocket-postMessage><code>postMessage(<var title="">data</var>)</code></dfn> method transmits data using the
connection. If the connection is not established (<code title=dom-WebSocket-readyState><a href=#dom-websocket-readystate>readyState</a></code> is not <code title=dom-WebSocket-OPEN><a href=#dom-websocket-open>OPEN</a></code>), it must raise an
- <code>INVALID_STATE_ERR</code> exception. If the connection
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. If the connection
<em>is</em> established, then the user agent must <a href=#send-data-using-the-web-socket>send <var title="">data</var> using the Web Socket</a>.</p>
<p>The <dfn id=dom-websocket-disconnect title=dom-WebSocket-disconnect><code>disconnect()</code></dfn>
@@ -43517,7 +43535,7 @@
or <a href=#resolve-a-url title="resolve a url">resolving</a> it results in a
<a href=#url>URL</a> with a <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code> component
that is neither empty nor a single U+002F SOLIDUS character (/),
- then throw a <code>SYNTAX_ERR</code> exception and abort the
+ then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the
overall set of steps.</p>
</li>
@@ -43584,7 +43602,7 @@
or <a href=#resolve-a-url title="resolve a url">resolving</a> it results in a
<a href=#url>URL</a> with a <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code> component
that is neither empty nor a single U+002F SOLIDUS character (/),
- then throw a <code>SYNTAX_ERR</code> exception and abort the
+ then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the
overall set of steps.</p>
</li>
@@ -43787,7 +43805,7 @@
caller to raise:</p>
<ol><li><p>If the <var title="">original port</var> is not entangled
- without another port, then return an <code>INVALID_STATE_ERR</code>
+ without another port, then return an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception and abort all these steps.</li>
<li><p>Let the <var title="">remote port</var> be the port with
@@ -43845,7 +43863,7 @@
following substeps:</p>
<ol><li><p>If the <var title="">data port</var> is the <var title="">source port</var> or the <var title="">target
- port</var>, then throw an <code>INVALID_ACCESS_ERR</code>
+ port</var>, then throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
exception and abort all these steps.</li>
<li><p>Try to obtain a <var title="">new data port</var> by <a href=#clone-a-port title="clone a port">cloning</a> the <var title="">data
@@ -50897,7 +50915,7 @@
</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>INVALID_STATE_ERR</code> exception.</p>
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
</li>
Modified: source
===================================================================
--- source 2008-11-26 09:32:12 UTC (rev 2457)
+++ source 2008-11-26 10:02:14 UTC (rev 2458)
@@ -5518,8 +5518,41 @@
title="">HTML</code>" "<code>2.0</code>".</p>
+ <h4>Exceptions</h4>
+ <p>The following <code>DOMException</code> codes are defined in DOM
+ Core. <a href="#refsDOMCORE">[DOMCORE]</a></p>
+ <ol>
+ <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> <!-- actually in XHR for now -->
+ <li value="19"><dfn><code>NETWORK_ERR</code></dfn></li> <!-- actually in XHR for now -->
+ <li value="20"><dfn><code>ABORT_ERR</code></dfn></li> <!-- actually in XHR for now -->
+ <li value="21"><dfn><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually in workers for now -->
+ <li value="22"><dfn><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
+ <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
+ <li value="82"><dfn><code>SERIALISE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
+ </ol>
+
+
+
+
<h2 id="dom">Semantics and structure of HTML documents</h2>
<h3 id="semantics-intro">Introduction</h3>
@@ -5633,7 +5666,7 @@
<h4>Security</h4>
- <p>User agents must raise a <span>security exception</span> whenever
+ <p>User agents must raise a <code>SECURITY_ERR</code> exception whenever
any of the members of an <code>HTMLDocument</code> object are
accessed by scripts whose <span>effective script origin</span> is
not the <span title="same origin">same</span> as the
@@ -5686,7 +5719,7 @@
<p id="sandboxCookies">On getting, if the <span>sandboxed origin
browsing context flag</span> is set on the <span>browsing
context</span> of the document, the user agent must raise a
- <span>security exception</span>. Otherwise, it must return the same
+ <code>SECURITY_ERR</code> exception. Otherwise, it must return the same
string as the value of the <code title="">Cookie</code> HTTP header
it would include if <span title="fetch">fetching</span> the resource
indicated by <span>the document's address</span><!-- XXXDOCURL -->
@@ -5696,8 +5729,8 @@
<p>On setting, if the <span>sandboxed origin browsing context
flag</span> is set on the <span>browsing context</span> of the
- document, the user agent must raise a <span>security
- exception</span>. Otherwise, the user agent must act as it would
+ document, the user agent must raise a <code>SECURITY_ERR</code>
+ exception. Otherwise, the user agent must act as it would
when processing cookies if it had just attempted to
<span>fetch</span> <span>the document's address</span><!-- XXXDOCURL
--> over HTTP, and had received a response with a
@@ -22720,15 +22753,15 @@
<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 <span>security
- exception</span>.</p>
+ false is called, the method must raise a <code>SECURITY_ERR</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 <span>security
- exception</span>.</p>
+ correct arguments, the method must raise a <code>SECURITY_ERR</code>
+ exception.</p>
<p class="note">Even resetting the canvas state by changing its
<code title="attr-canvas-width">width</code> or <code
@@ -36601,7 +36634,7 @@
document</span> does not have the <span>same</span> <span>effective
script origin</span> as the script that is accessing the <code
title="dom-frameElement">frameElement</code> attribute, then throw
- a <span>security exception</span>.</p></li>
+ a <code>SECURITY_ERR</code> exception.</p></li>
<li><p>Otherwise, return the <span>browsing context
container</span> for <var title="">b</var>.</p></li>
@@ -36966,7 +36999,7 @@
<h4>Security</h4>
- <p>User agents must raise a <span>security exception</span> whenever
+ <p>User agents must raise a <code>SECURITY_ERR</code> exception whenever
any of the members 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 <span>browsing context</span>'s
@@ -37509,7 +37542,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 <span>security exception</span> and abort
+ characters, then throw a <code>SECURITY_ERR</code> exception and abort
these steps. <a href="#refsRFC3490">[RFC3490]</a></p>
</li>
@@ -37525,8 +37558,8 @@
<li>
- <p>If the current value is an IP address, throw a <span>security
- exception</span> and abort these steps.</p>
+ <p>If the current value is an IP address, throw a <code>SECURITY_ERR</code>
+ exception and abort these steps.</p>
</li>
@@ -37534,7 +37567,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 <span>security exception</span> and abort these
+ throw a <code>SECURITY_ERR</code> exception and abort these
steps.</p>
</li>
@@ -37849,12 +37882,7 @@
</dl>
- <h4>Security exceptions</h4>
- <p class="XXX">Define <dfn>security exception</dfn>.</p>
-
-
-
<!-- SCRIPT EXEC -->
<h4 id="javascript-protocol"><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
@@ -39196,13 +39224,12 @@
</dl>
- <p>User agents should raise <span title="security
- exception">security exceptions</span> if the methods are called with
- <var title="">protocol</var> or <var title="">mimeType</var> values
- that the UA deems to be "privileged". For example, a site attempting
- to register a handler for <code>http</code> URLs or
- <code>text/html</code> content in a Web browser would likely cause
- an exception to be raised.</p>
+ <p>User agents should raise <code>SECURITY_ERR</code> exceptions if
+ the methods are called with <var title="">protocol</var> or <var
+ title="">mimeType</var> values that the UA deems to be
+ "privileged". For example, a site attempting to register a handler
+ for <code>http</code> URLs or <code>text/html</code> content in a
+ Web browser would likely cause an exception to be raised.</p>
<p>User agents must raise a <code>SYNTAX_ERR</code> exception if the
<var title="">url</var> argument passed to one of these methods does
@@ -40948,8 +40975,8 @@
<li><p>If <var title="">url</var> has a different <span
title="url-scheme"><scheme></span> component than the
- manifest's URL, then raise a <span>security
- exception</span>.</p></li>
+ manifest's URL, then raise a <code>SECURITY_ERR</code>
+ exception.</p></li>
<li><p>Return, but do not abort these steps.</p></li>
@@ -41337,7 +41364,7 @@
<li><span title="resolve a url">Resolve</span> the value of the
third argument.</li>
- <li>If that fails, raise a <span>security exception</span> and
+ <li>If that fails, raise a <code>SECURITY_ERR</code> exception and
abort the <code title="dom-history-pushState">pushState()</code>
steps.</li>
@@ -41347,7 +41374,7 @@
title="url-path"><path></span>, <span
title="url-query"><query></span>, and <span
title="url-fragment"><fragment></span> components, then
- raise a <span>security exception</span> and abort the <code
+ raise a <code>SECURITY_ERR</code> exception and abort the <code
title="dom-history-pushState">pushState()</code> steps.</li>
</ol>
@@ -41591,7 +41618,7 @@
<h5>Security</h5>
- <p>User agents must raise a <span>security exception</span> whenever
+ <p>User agents must raise a <code>SECURITY_ERR</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>
@@ -42652,7 +42679,7 @@
<var title="">value</var> argument.</p>
<p>If it couldn't set the new value, the method must raise an
- <code>INVALID_ACCESS_ERR</code> exception. (Setting could fail if,
+ <code>QUOTA_EXCEEDED_ERR</code> exception. (Setting could fail if,
e.g., the user has disabled storage for the domain, or if the quota
has been exceeded.)</p>
@@ -42958,7 +42985,7 @@
database already exists but has a different version, then the method
must raise an <code>INVALID_STATE_ERR</code> exception.</p>
- <p>The user agent may also raise a <span>security exception</span>
+ <p>The user agent may also raise a <code>SECURITY_ERR</code> exception
in case the request violates a policy decision (e.g. if the user
agent is configured to not allow the page to open databases).</p>
More information about the Commit-Watchers
mailing list