Skip to content
Permalink
Browse files

[e] (0) Use DOM's hooks for defining the magic 'load' event in The End

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 ffe373b5c406da2deff19887fd8e55a5d0add6ee
Showing with 17 additions and 19 deletions.
  1. +5 −6 complete.html
  2. +5 −6 index
  3. +7 −7 source
<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
<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>

11 index
<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
<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>

14 source
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
<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>

0 comments on commit ffe373b

Please sign in to comment.
You can’t perform that action at this time.