Skip to content

Commit

Permalink
[e] (0) Use DOM's hooks for defining the magic 'load' event in The End
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23806
Affected topics: DOM APIs, HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8271 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 12, 2013
1 parent 5a2bc16 commit ffe373b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
11 changes: 5 additions & 6 deletions complete.html
Expand Up @@ -71502,7 +71502,7 @@ <h5 id=event-firing><span class=secno>7.1.6.3 </span>Event firing</h5>
<p><dfn id=fire-a-simple-event title="fire a simple event">Firing a simple event named <var title="">e</var></dfn> means
that a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event with the name <var title="">e</var>, which does not bubble (except where otherwise stated) and is not cancelable
(except where otherwise stated), and which uses the <code><a href=#event>Event</a></code> interface, must be created
and dispatched at the given target.</p>
and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatched</a> at the given target.</p>

<p><dfn id=fire-a-synthetic-mouse-event title="fire a synthetic mouse event">Firing a synthetic mouse event named <var title="">e</var></dfn> means that an event with the name <var title="">e</var>, which is <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (except where otherwise stated), does not bubble
(except where otherwise stated), is not cancelable (except where otherwise stated), and which uses
Expand Down Expand Up @@ -91625,11 +91625,10 @@ <h4 id=the-end><span class=secno>12.2.6 </span>The end</h4>
<ol><li><p>Set the <a href=#current-document-readiness>current document readiness</a> to "<code title="">complete</code>"<!--
this also fires an event synchronously during the task -->.</li>

<li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>, <a href=#fire-a-simple-event>fire a simple
event</a> named <code title=event-load>load</code> at the <code><a href=#document>Document</a></code>'s
<code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to
the <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the <code><a href=#window>Window</a></code>
object).</li>
<li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>, create a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event named <code title=event-load>load</code> that does not bubble and is not cancelable and which uses the
<code><a href=#event>Event</a></code> interface, and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatch it at
the <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
<code>Document</code> object.</a></li>

</ol></li>

Expand Down
11 changes: 5 additions & 6 deletions index
Expand Up @@ -71502,7 +71502,7 @@ interface <dfn id=windoweventhandlers>WindowEventHandlers</dfn> {
<p><dfn id=fire-a-simple-event title="fire a simple event">Firing a simple event named <var title="">e</var></dfn> means
that a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event with the name <var title="">e</var>, which does not bubble (except where otherwise stated) and is not cancelable
(except where otherwise stated), and which uses the <code><a href=#event>Event</a></code> interface, must be created
and dispatched at the given target.</p>
and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatched</a> at the given target.</p>

<p><dfn id=fire-a-synthetic-mouse-event title="fire a synthetic mouse event">Firing a synthetic mouse event named <var title="">e</var></dfn> means that an event with the name <var title="">e</var>, which is <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (except where otherwise stated), does not bubble
(except where otherwise stated), is not cancelable (except where otherwise stated), and which uses
Expand Down Expand Up @@ -91625,11 +91625,10 @@ document.body.appendChild(text);
<ol><li><p>Set the <a href=#current-document-readiness>current document readiness</a> to "<code title="">complete</code>"<!--
this also fires an event synchronously during the task -->.</li>

<li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>, <a href=#fire-a-simple-event>fire a simple
event</a> named <code title=event-load>load</code> at the <code><a href=#document>Document</a></code>'s
<code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to
the <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the <code><a href=#window>Window</a></code>
object).</li>
<li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>, create a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event named <code title=event-load>load</code> that does not bubble and is not cancelable and which uses the
<code><a href=#event>Event</a></code> interface, and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatch it at
the <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
<code>Document</code> object.</a></li>

</ol></li>

Expand Down
14 changes: 7 additions & 7 deletions source
Expand Up @@ -79863,7 +79863,7 @@ interface <dfn>WindowEventHandlers</dfn> {
that a <span data-x="concept-events-trusted">trusted</span> event with the name <var
data-x="">e</var>, which does not bubble (except where otherwise stated) and is not cancelable
(except where otherwise stated), and which uses the <code>Event</code> interface, must be created
and dispatched at the given target.</p>
and <span data-x="concept-event-dispatch">dispatched</span> at the given target.</p>

<p><dfn data-x="fire a synthetic mouse event">Firing a synthetic mouse event named <var
data-x="">e</var></dfn> means that an event with the name <var data-x="">e</var>, which is <span
Expand Down Expand Up @@ -102016,12 +102016,12 @@ document.body.appendChild(text);
<li><p>Set the <span>current document readiness</span> to "<code data-x="">complete</code>"<!--
this also fires an event synchronously during the task -->.</p></li>

<li><p>If the <code>Document</code> is in a <span>browsing context</span>, <span>fire a simple
event</span> named <code data-x="event-load">load</code> at the <code>Document</code>'s
<code>Window</code> object, but with its <code data-x="dom-event-target">target</code> set to
the <code>Document</code> object (and the <code
data-x="dom-event-currentTarget">currentTarget</code> set to the <code>Window</code>
object).</p></li>
<li><p>If the <code>Document</code> is in a <span>browsing context</span>, create a <span
data-x="concept-events-trusted">trusted</span> event named <code
data-x="event-load">load</code> that does not bubble and is not cancelable and which uses the
<code>Event</code> interface, and <span data-x="concept-event-dispatch">dispatch</soan> it at
the <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
<code>Document</code> object.</p></li>

</ol>

Expand Down

0 comments on commit ffe373b

Please sign in to comment.