|
71 | 71 | <p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
|
72 | 72 | <hgroup>
|
73 | 73 | <h1 class="p-name no-ref allcaps" id="title">DOM</h1>
|
74 |
| - <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-04-18">18 April 2016</time></span></h2> |
| 74 | + <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-04-19">19 April 2016</time></span></h2> |
75 | 75 | </hgroup>
|
76 | 76 | <div data-fill-with="spec-metadata">
|
77 | 77 | <dl>
|
@@ -2737,13 +2737,14 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
|
2737 | 2737 | </ol>
|
2738 | 2738 | <hr>
|
2739 | 2739 | <p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" id="dom-document-createevent"><code>createEvent(<var>interface</var>)</code><a class="self-link" href="#dom-document-createevent"></a></dfn> method, when
|
2740 |
| -invoked, must run these steps:</p> |
| 2740 | +invoked, must run these steps: </p> |
2741 | 2741 | <ol>
|
2742 |
| - <li>Let <var>constructor</var> be null. |
2743 | 2742 | <li>
|
2744 |
| - If <var>interface</var> is an <a data-link-type="dfn" href="#ascii-case-insensitive">ASCII case-insensitive</a> match for any of the strings in the |
2745 |
| - first column in the following table, set <var>constructor</var> to the |
2746 |
| - interface in the second column on the same row as the matching string: |
| 2743 | + <p>Let <var>constructor</var> be null. </p> |
| 2744 | + <li> |
| 2745 | + <p>If <var>interface</var> is an <a data-link-type="dfn" href="#ascii-case-insensitive">ASCII case-insensitive</a> match for any of the strings in the |
| 2746 | + first column in the following table, then set <var>constructor</var> to the interface in the |
| 2747 | + second column on the same row as the matching string: </p> |
2747 | 2748 | <table>
|
2748 | 2749 | <thead>
|
2749 | 2750 | <tr>
|
@@ -2876,11 +2877,19 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
|
2876 | 2877 | <td><code class="idl"><a data-link-type="idl">WheelEvent</a></code>
|
2877 | 2878 | <td><a data-link-type="biblio" href="#biblio-uievents">[UIEVENTS]</a>
|
2878 | 2879 | </table>
|
2879 |
| - <li>If <var>constructor</var> is null, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#notsupportederror">NotSupportedError</a></code>. |
2880 |
| - <li>Let <var>event</var> be the result of <a data-link-type="dfn" href="#concept-event-constructor">invoking</a> the initial |
2881 |
| - value of <var>constructor</var> with the empty string as argument. |
2882 |
| - <li>Unset <var>event</var>’s <a data-link-type="dfn" href="#initialized-flag">initialized flag</a>. |
2883 |
| - <li>Return <var>event</var>. |
| 2880 | + <li> |
| 2881 | + <p>If <var>constructor</var> is null, then <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#notsupportederror">NotSupportedError</a></code>. </p> |
| 2882 | + <li> |
| 2883 | + <p>If the initial value of <var>constructor</var> is undefined, then <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#notsupportederror">NotSupportedError</a></code>. </p> |
| 2884 | + <p class="note" role="note">Typically user agents disable support for touch events in some configurations, in |
| 2885 | + which case the initial value of <code class="idl"><a data-link-type="idl" href="https://www.w3.org/TR/touch-events/#touchevent-interface">TouchEvent</a></code> is undefined. </p> |
| 2886 | + <li> |
| 2887 | + <p>Let <var>event</var> be the result of <a data-link-type="dfn" href="#concept-event-constructor">invoking</a> the initial |
| 2888 | + value of <var>constructor</var> with the empty string as argument. </p> |
| 2889 | + <li> |
| 2890 | + <p>Unset <var>event</var>’s <a data-link-type="dfn" href="#initialized-flag">initialized flag</a>. </p> |
| 2891 | + <li> |
| 2892 | + <p>Return <var>event</var>. </p> |
2884 | 2893 | </ol>
|
2885 | 2894 | <p class="note" role="note"><a data-link-type="dfn" href="#concept-event">Event</a> constructors ought to be used instead. </p>
|
2886 | 2895 | <hr>
|
@@ -3183,7 +3192,7 @@ <h3 class="heading settled" data-level="4.9" id="interface-element"><span class=
|
3183 | 3192 | <p>Set <var>result</var> to <a data-link-type="abstract-op" href="https://tc39.github.io/ecma262/#sec-construct">Construct</a>(<var>C</var>). Rethrow any
|
3184 | 3193 | exceptions. </p>
|
3185 | 3194 | <li>
|
3186 |
| - <p>If <var>result</var> does not implement the <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/dom.html#htmlelement">HTMLElement</a></code> interface, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl" href="https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror">TypeError</a></code> exception. </p> |
| 3195 | + <p>If <var>result</var> does not implement the <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/dom.html#htmlelement">HTMLElement</a></code> interface, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code class="idl"><a data-link-type="idl">TypeError</a></code> exception. </p> |
3187 | 3196 | <p class="note" role="note">This is meant to be a brand check to ensure that the object was allocated by the <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/dom.html#htmlelement">HTMLElement</a></code> constructor. See <a href="https://github.com/heycam/webidl/issues/97">webidl #97</a> about making this more
|
3188 | 3197 | precise. </p>
|
3189 | 3198 | <li>
|
@@ -4929,7 +4938,7 @@ <h3 class="heading settled" data-level="8.1" id="dom-events-changes"><span class
|
4929 | 4938 | </ul>
|
4930 | 4939 | <h3 class="heading settled" data-level="8.2" id="dom-core-changes"><span class="secno">8.2. </span><span class="content">DOM Core</span><a class="self-link" href="#dom-core-changes"></a></h3>
|
4931 | 4940 | <p>These are the changes made to the features described in <cite>DOM Level 3 Core</cite>.</p>
|
4932 |
| - <p><code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#idl-DOMString">DOMString</a></code>, <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#dfn-domexception">DOMException</a></code>, and <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#common-domtimestamp">DOMTimeStamp</a></code> are now defined in Web IDL.</p> |
| 4941 | + <p><code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#idl-DOMString">DOMString</a></code>, <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#dfn-DOMException">DOMException</a></code>, and <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#common-domtimestamp">DOMTimeStamp</a></code> are now defined in Web IDL.</p> |
4933 | 4942 | <p><code class="idl"><a data-link-type="idl" href="#node">Node</a></code> now inherits from <code class="idl"><a data-link-type="idl" href="#eventtarget">EventTarget</a></code>.</p>
|
4934 | 4943 | <p><a data-link-type="dfn" href="#concept-node">Nodes</a> are implicitly <a data-link-type="dfn" href="#concept-node-adopt">adopted</a> across <a data-link-type="dfn" href="#concept-document">document</a> boundaries.</p>
|
4935 | 4944 | <p><a data-link-type="dfn" href="#concept-doctype">Doctypes</a> now always have a <a data-link-type="dfn" href="#concept-node-document">node document</a> and can be moved
|
@@ -6020,7 +6029,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
|
6020 | 6029 | <a data-link-type="biblio">[ECMASCRIPT]</a> defines the following terms:
|
6021 | 6030 | <ul>
|
6022 | 6031 | <li><a href="https://tc39.github.io/ecma262/#sec-construct">Construct</a>
|
6023 |
| - <li><a href="https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-typeerror">TypeError</a> |
6024 | 6032 | </ul>
|
6025 | 6033 | <li>
|
6026 | 6034 | <a data-link-type="biblio">[css-animations-1]</a> defines the following terms:
|
@@ -6090,7 +6098,19 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
|
6090 | 6098 | <li>
|
6091 | 6099 | <a data-link-type="biblio">[WEBIDL]</a> defines the following terms:
|
6092 | 6100 | <ul>
|
| 6101 | + <li><a href="https://heycam.github.io/webidl/#dfn-DOMException">DOMException</a> |
6093 | 6102 | <li><a href="https://heycam.github.io/webidl/#idl-DOMString">DOMString</a>
|
| 6103 | + <li><a href="https://heycam.github.io/webidl/#hierarchyrequesterror">HierarchyRequestError</a> |
| 6104 | + <li><a href="https://heycam.github.io/webidl/#inuseattributeerror">InUseAttributeError</a> |
| 6105 | + <li><a href="https://heycam.github.io/webidl/#indexsizeerror">IndexSizeError</a> |
| 6106 | + <li><a href="https://heycam.github.io/webidl/#invalidcharactererror">InvalidCharacterError</a> |
| 6107 | + <li><a href="https://heycam.github.io/webidl/#invalidnodetypeerror">InvalidNodeTypeError</a> |
| 6108 | + <li><a href="https://heycam.github.io/webidl/#invalidstateerror">InvalidStateError</a> |
| 6109 | + <li><a href="https://heycam.github.io/webidl/#namespaceerror">NamespaceError</a> |
| 6110 | + <li><a href="https://heycam.github.io/webidl/#notfounderror">NotFoundError</a> |
| 6111 | + <li><a href="https://heycam.github.io/webidl/#notsupportederror">NotSupportedError</a> |
| 6112 | + <li><a href="https://heycam.github.io/webidl/#syntaxerror">SyntaxError</a> |
| 6113 | + <li><a href="https://heycam.github.io/webidl/#wrongdocumenterror">WrongDocumentError</a> |
6094 | 6114 | </ul>
|
6095 | 6115 | </ul>
|
6096 | 6116 | <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
|
|
0 commit comments