Skip to content

Commit

Permalink
[e] (0) fix exception references to match where things are now defined
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=27408
Affected topics: DOM APIs

git-svn-id: https://svn.whatwg.org/webapps@8887 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 4, 2015
1 parent e2f88d6 commit 91799e2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 61 deletions.
23 changes: 10 additions & 13 deletions complete.html
Expand Up @@ -2378,6 +2378,12 @@ <h4 id=dependencies>2.2.2 Dependencies</h4>

</ul>

<p>The term <dfn id=throw>throw</dfn> in this specification is used as defined in the WebIDL
specification. The following exception names are defined by WebIDL and used by this
specification:</p>

<ol class=brief><li value=1><dfn id=indexsizeerror><code>IndexSizeError</code></dfn><li value=3><dfn id=hierarchyrequesterror><code>HierarchyRequestError</code></dfn><li value=5><dfn id=invalidcharactererror><code>InvalidCharacterError</code></dfn><li value=8><dfn id=notfounderror><code>NotFoundError</code></dfn><li value=9><dfn id=notsupportederror><code>NotSupportedError</code></dfn><li value=11><dfn id=invalidstateerror><code>InvalidStateError</code></dfn><li value=12><dfn id=syntaxerror><code>SyntaxError</code></dfn><li value=15><dfn id=invalidaccesserror><code>InvalidAccessError</code></dfn><li value=18><dfn id=securityerror><code>SecurityError</code></dfn><li value=19><dfn id=networkerror><code>NetworkError</code></dfn><li value=21><dfn id=urlmismatcherror><code>URLMismatchError</code></dfn><li value=22><dfn id=quotaexceedederror><code>QuotaExceededError</code></dfn><li value=23><dfn id=timeouterror><code>TimeoutError</code></dfn><li value=25><dfn id=datacloneerror><code>DataCloneError</code></dfn><li><dfn id=typeerror><code>TypeError</code></dfn></ol>

<p>When this specification requires a user agent to <dfn id=create-a-date-object>create a <code>Date</code> object</dfn> representing a particular time (which could be the
special value Not-a-Number), the milliseconds component of that time, if any, must be truncated
to an integer, and the time value of the newly created <code id=dependencies:idl-date><a href=#idl-date>Date</a></code>
Expand All @@ -2403,8 +2409,8 @@ <h4 id=dependencies>2.2.2 Dependencies</h4>
<p>The term <dfn id=javascript-global-environment>JavaScript global environment</dfn> refers to the <i>global
environment</i> concept defined in the ECMAScript specification.</p>

<p>The ECMAScript <dfn id=js-syntaxerror><code>SyntaxError</code></dfn> and <dfn id=typeerror><code>TypeError</code></dfn> exceptions are also defined in the ECMAScript
specification. <a href=#refsECMA262>[ECMA262]</a></p>
<p>The ECMAScript <dfn id=js-syntaxerror><code>SyntaxError</code></dfn> exception is also
defined in the ECMAScript specification. <a href=#refsECMA262>[ECMA262]</a></p>

<p>The <dfn id=arraybuffer>ArrayBuffer</dfn> and related object types and underlying concepts from the
ECMAScript Specification are used for several features in this specification. <a href=#refsECMA262>[ECMA262]</a><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27030" title="ArrayBuffer and friends are now covered by IDL.">27030</a></div>
Expand Down Expand Up @@ -2432,19 +2438,10 @@ <h4 id=dependencies>2.2.2 Dependencies</h4>

<p>In particular, the following features are defined in the DOM specification: <a href=#refsDOM>[DOM]</a></p>

<ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=domexception><code>DOMException</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=node-document><a href=https://dom.spec.whatwg.org/#concept-node-document>node document</a></dfn> concept<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcollection-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></dfn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-document-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-appendchild><code>appendChild()</code></dfn> method<li><dfn id=dom-node-clonenode><code>cloneNode()</code></dfn> method<li><dfn id=dom-document-importnode><code>importNode()</code></dfn> method<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>replace</dfn>, and <dfn id=concept-node-adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=concept-node-insert-ext><a href=https://dom.spec.whatwg.org/#concept-node-insert-ext>insertion steps</a></dfn>,
<ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=node-document><a href=https://dom.spec.whatwg.org/#concept-node-document>node document</a></dfn> concept<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcollection-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></dfn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-document-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-appendchild><code>appendChild()</code></dfn> method<li><dfn id=dom-node-clonenode><code>cloneNode()</code></dfn> method<li><dfn id=dom-document-importnode><code>importNode()</code></dfn> method<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>replace</dfn>, and <dfn id=concept-node-adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=concept-node-insert-ext><a href=https://dom.spec.whatwg.org/#concept-node-insert-ext>insertion steps</a></dfn>,
<dfn id=concept-node-remove-ext><a href=https://dom.spec.whatwg.org/#concept-node-remove-ext>removing steps</a></dfn>,
and <dfn id=concept-node-adopt-ext><a href=https://dom.spec.whatwg.org/#concept-node-adopt-ext>adopting steps</a></dfn> hooks<li>The <dfn id=attribute-list>attribute list</dfn> concept.<li>The <dfn id=concept-cd-data>data</dfn> of a text node.<li><dfn id=event><code>Event</code></dfn> interface<li><dfn id=eventtarget><code>EventTarget</code></dfn> interface<li><dfn id=eventinit><code>EventInit</code></dfn> dictionary type<li><dfn id=dom-event-target><code>target</code></dfn> attribute<li><dfn id=dom-event-currenttarget><code>currentTarget</code></dfn> attribute<li><dfn id=dom-event-istrusted><code>isTrusted</code></dfn> attribute<li><dfn id=dom-event-initevent><code>initEvent()</code></dfn> method<li><dfn id=dom-eventtarget-addeventlistener><code>addEventListener()</code></dfn> method<li>The <dfn id=concept-event-type>type</dfn> of an event<li>The concept of an <dfn id=concept-event-listener>event listener</dfn> and the <a href=#concept-event-listener id=dependencies:concept-event-listener>event listeners</a> associated with an <code id=dependencies:eventtarget><a href=#eventtarget>EventTarget</a></code><li>The concept of a <dfn id=concept-event-target-override>target override</dfn><li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn><li>The <dfn id="document's-character-encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type>content type</dfn> of a <code id=dependencies:document><a href=#document>Document</a></code><li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn><li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-quirks mode</dfn><li>The algorithm to <dfn id=concept-node-clone>clone</dfn> a <code id=dependencies:node><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext>cloning steps</dfn> used by that algorithm<li>The concept of <dfn id=base-url-change-steps>base URL change steps</dfn> and the definition of what happens when an element is <dfn id=affected-by-a-base-url-change>affected by a base URL change</dfn><li>The concept of an element's <dfn id=concept-id>unique identifier (ID)</dfn><li>The concept of a DOM <dfn id=concept-range>range</dfn>, and the terms <dfn id=concept-range-start>start</dfn>, <dfn id=concept-range-end>end</dfn>, and <dfn id=concept-range-bp>boundary point</dfn> as applied to ranges.<li><dfn id=mutationobserver><code>MutationObserver</code></dfn> interface and <dfn id=mutation-observers><a href=https://dom.spec.whatwg.org/#mutation-observers>mutation observers</a></dfn> in general<li><dfn id=promise>Promise</dfn> interface<li>The <dfn id=concept-resolver>resolver</dfn> concept<li>The <dfn id=concept-resolver-fulfill>fulfill</dfn> and <dfn id=concept-resolver-reject>reject</dfn> algorithms</ul>

<p>The term <dfn id=throw>throw</dfn> in this specification is used as defined in the DOM specification.
The following <code id=dependencies:domexception><a href=#domexception>DOMException</a></code> types are defined in the DOM specification: <a href=#refsDOM>[DOM]</a><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27408" title="Maintenance: all exceptions moved from DOM to IDL. IDL also defines the exceptions listed under JavaScript.">27408</a></div>

<ol class=brief><li value=1><dfn id=indexsizeerror><code>IndexSizeError</code></dfn><li value=3><dfn id=hierarchyrequesterror><code>HierarchyRequestError</code></dfn><li value=4><dfn id=wrongdocumenterror><code>WrongDocumentError</code></dfn><li value=5><dfn id=invalidcharactererror><code>InvalidCharacterError</code></dfn><li value=7><dfn id=nomodificationallowederror><code>NoModificationAllowedError</code></dfn><li value=8><dfn id=notfounderror><code>NotFoundError</code></dfn><li value=9><dfn id=notsupportederror><code>NotSupportedError</code></dfn><li value=11><dfn id=invalidstateerror><code>InvalidStateError</code></dfn><li value=12><dfn id=syntaxerror><code>SyntaxError</code></dfn><li value=13><dfn id=invalidmodificationerror><code>InvalidModificationError</code></dfn><li value=14><dfn id=namespaceerror><code>NamespaceError</code></dfn><li value=15><dfn id=invalidaccesserror><code>InvalidAccessError</code></dfn><li value=18><dfn id=securityerror><code>SecurityError</code></dfn><li value=19><dfn id=networkerror><code>NetworkError</code></dfn><li value=20><dfn id=aborterror><code>AbortError</code></dfn><li value=21><dfn id=urlmismatcherror><code>URLMismatchError</code></dfn><li value=22><dfn id=quotaexceedederror><code>QuotaExceededError</code></dfn><li value=23><dfn id=timeouterror><code>TimeoutError</code></dfn><li value=24><dfn id=invalidnodetypeerror><code>InvalidNodeTypeError</code></dfn><li value=25><dfn id=datacloneerror><code>DataCloneError</code></dfn></ol>

<p class=example>For example, to <i>throw a <code id=dependencies:timeouterror><a href=#timeouterror>TimeoutError</a></code> exception</i>, a user
agent would construct a <code id=dependencies:domexception-2><a href=#domexception>DOMException</a></code> object whose type was the string "<code>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>

<ul class=brief><li><dfn id=mouseevent><code>MouseEvent</code></dfn> interface<li>The <code id=dependencies:mouseevent><a href=#mouseevent>MouseEvent</a></code> interface's <dfn id=dom-mouseevent-relatedtarget><code>relatedTarget</code></dfn> attribute<li><dfn id=mouseeventinit><code>MouseEventInit</code></dfn> dictionary type<li>The <dfn id=focusevent><code>FocusEvent</code></dfn> interface<li>The <code id=dependencies:focusevent><a href=#focusevent>FocusEvent</a></code> interface's <dfn id=dom-focusevent-relatedtarget><code>relatedTarget</code></dfn> attribute<li>The <dfn id=uievent><a href=https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-UIEvent><code>UIEvent</code></a></dfn> interface<li>The <code id=dependencies:uievent><a data-x-internal=uievent href=https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-UIEvent>UIEvent</a></code> interface's <dfn id=dom-uievent-view><code>view</code></dfn> attribute<li>The <code id=dependencies:uievent-2><a data-x-internal=uievent href=https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-UIEvent>UIEvent</a></code> interface's <dfn id=dom-uievent-detail><code>detail</code></dfn> attribute<li><dfn id=event-click><code>click</code></dfn> event<li><dfn id=event-dblclick><code>dblclick</code></dfn> event<li><dfn id=event-mousedown><code>mousedown</code></dfn> event<li><dfn id=event-mouseenter><code>mouseenter</code></dfn> event<li><dfn id=event-mouseleave><code>mouseleave</code></dfn> event<li><dfn id=event-mousemove><code>mousemove</code></dfn> event<li><dfn id=event-mouseout><code>mouseout</code></dfn> event<li><dfn id=event-mouseover><code>mouseover</code></dfn> event<li><dfn id=event-mouseup><code>mouseup</code></dfn> event<li><dfn id=event-mousewheel><code>mousewheel</code></dfn> event<li><dfn id=event-keydown><code>keydown</code></dfn> event<li><dfn id=event-keyup><code>keyup</code></dfn> event<li><dfn id=event-keypress><code>keypress</code></dfn> event</ul>
Expand Down Expand Up @@ -38657,7 +38654,7 @@ <h4 id=the-textarea-element>4.10.11 The <dfn><code>textarea</code></dfn> element

<p>The <a href=#concept-form-reset-control id=the-textarea-element:concept-form-reset-control>reset algorithm</a> for <code id=the-textarea-element:the-textarea-element-9><a href=#the-textarea-element>textarea</a></code>
elements is to set the element's <a href=#concept-textarea-raw-value id=the-textarea-element:concept-textarea-raw-value-6>raw value</a> to the
value of the element's <code id=the-textarea-element:textcontent-3><a href=#textcontent>textContent</a></code> IDL attribute.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27072" title="When the parser inserts TEXTAREA element, the only chance to set its Raw Value is by the TEXTAREA's [...]">27072</a></div><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27504" title="The reset algorithm does not specify whether or not to set the dirty value flag back to false.">27504</a></div>
value of the element's <code id=the-textarea-element:textcontent-3><a href=#textcontent>textContent</a></code> IDL attribute.<div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27504" title="The reset algorithm does not specify whether or not to set the dirty value flag back to false.">27504</a></div>

<p>When a <code id=the-textarea-element:the-textarea-element-10><a href=#the-textarea-element>textarea</a></code> element is popped off the <a href=#stack-of-open-elements id=the-textarea-element:stack-of-open-elements>stack of open elements</a> of
an <a href=#html-parser id=the-textarea-element:html-parser>HTML parser</a> or <a href=#xml-parser id=the-textarea-element:xml-parser>XML parser</a>, then the user agent must invoke the
Expand Down

0 comments on commit 91799e2

Please sign in to comment.