Skip to content
Permalink
Browse files

[] (0) Move onundo and onredo from Document to Window.

git-svn-id: http://svn.whatwg.org/webapps@3003 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Apr 27, 2009
1 parent d92adfd commit 0497e5ffdd22eea272575c4470fc1ff2a0074344
Showing with 20 additions and 4 deletions.
  1. +10 −2 index
  2. +10 −2 source
12 index
<dd><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></dd>
<dd><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></dd>
<dd><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></dd>
<dd><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></dd>
<dd><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></dd>
<dd><code title=handler-window-onstorage><a href=#handler-window-onstorage>onstorage</a></code></dd>
<dd><code title=handler-window-onundo><a href=#handler-window-onundo>onundo</a></code></dd>
<dd><code title=handler-window-onunload><a href=#handler-window-onunload>onunload</a></code></dd>
<dt>DOM interface:</dt>
<dd>
attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onstorage title=handler-window-onstorage>onstorage</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onundo title=handler-window-onundo>onundo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onunload title=handler-window-onunload>onunload</a>;
};</pre>
</dd>
attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
attribute <a href=#function>Function</a> <a href=#handler-onscroll title=handler-onscroll>onscroll</a>;
attribute <a href=#function>Function</a> <a href=#handler-onselect title=handler-onselect>onselect</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onstorage title=handler-window-onstorage>onstorage</a>;
attribute <a href=#function>Function</a> <a href=#handler-onsubmit title=handler-onsubmit>onsubmit</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onundo title=handler-window-onundo>onundo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onunload title=handler-window-onunload>onunload</a>;
};</pre>

<tr><td><dfn id=handler-window-onoffline title=handler-window-onoffline><code>onoffline</code></dfn> <td> <code title=event-offline><a href=#event-offline>offline</a></code> <!-- new -->
<tr><td><dfn id=handler-window-ononline title=handler-window-ononline><code>ononline</code></dfn> <td> <code title=event-online><a href=#event-online>online</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onpopstate title=handler-window-onpopstate><code>onpopstate</code></dfn> <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onredo title=handler-window-onredo><code>onredo</code></dfn> <td> <code title=event-redo><a href=#event-redo>redo</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- XXX should define when it fires -->
<tr><td><dfn id=handler-window-onstorage title=handler-window-onstorage><code>onstorage</code></dfn> <td> <code title=event-storage>storage</code> <!-- new -->
<tr><td><dfn id=handler-window-onundo title=handler-window-onundo><code>onundo</code></dfn> <td> <code title=event-undo><a href=#event-undo>undo</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onunload title=handler-window-onunload><code>onunload</code></dfn> <td> <code title=event-unload>unload</code> <!-- widely used -->
</table><p class=note>The <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code>
handler is also used for <a href=#runtime-script-errors>reporting script errors</a>.</p>
<p>If the entry immediately before the <a href=#undo-position>undo position</a> is
an <a href=#undo-object>undo object</a> entry, then the user agent must first
remove that <a href=#undo-object>undo object</a> entry from the <a href=#undo-transaction-history>undo
transaction history</a>, and then must fire an <code title=event-undo><a href=#event-undo>undo</a></code> event on the <code>Document</code>
transaction history</a>, and then must fire an <code title=event-undo><a href=#event-undo>undo</a></code> event at the <code><a href=#window>Window</a></code>
object, using the <a href=#undo-object>undo object</a> entry's associated undo
object as the event's data.</p>

<p>If the entry immediately after the <a href=#undo-position>undo position</a> is
an <a href=#undo-object>undo object</a> entry, then the user agent must first
remove that <a href=#undo-object>undo object</a> entry from the <a href=#undo-transaction-history>undo
transaction history</a>, and then must fire a <code title=event-undo><a href=#event-undo>redo</a></code> event on the <code>Document</code>
transaction history</a>, and then must fire a <code title=event-redo><a href=#event-redo>redo</a></code> event at the <code><a href=#window>Window</a></code>
object, using the <a href=#undo-object>undo object</a> entry's associated undo
object as the event's data.</p>

12 source
@@ -12680,8 +12680,10 @@ not-slash = %x0000-002E / %x0030-%10FFFF
<dd><code title="handler-window-onoffline">onoffline</code></dd>
<dd><code title="handler-window-ononline">ononline</code></dd>
<dd><code title="handler-window-onpopstate">onpopstate</code></dd>
<dd><code title="handler-window-onredo">onredo</code></dd>
<dd><code title="handler-window-onresize">onresize</code></dd>
<dd><code title="handler-window-onstorage">onstorage</code></dd>
<dd><code title="handler-window-onundo">onundo</code></dd>
<dd><code title="handler-window-onunload">onunload</code></dd>
<dt>DOM interface:</dt>
<dd>
@@ -12694,8 +12696,10 @@ not-slash = %x0000-002E / %x0030-%10FFFF
attribute <span>Function</span> <span title="handler-window-onoffline">onoffline</span>;
attribute <span>Function</span> <span title="handler-window-ononline">ononline</span>;
attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
attribute <span>Function</span> <span title="handler-window-onredo">onredo</span>;
attribute <span>Function</span> <span title="handler-window-onresize">onresize</span>;
attribute <span>Function</span> <span title="handler-window-onstorage">onstorage</span>;
attribute <span>Function</span> <span title="handler-window-onundo">onundo</span>;
attribute <span>Function</span> <span title="handler-window-onunload">onunload</span>;
};</pre>
</dd>
attribute <span>Function</span> <span title="handler-window-ononline">ononline</span>;
attribute <span>Function</span> <span title="handler-window-onoffline">onoffline</span>;
attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
attribute <span>Function</span> <span title="handler-window-onredo">onredo</span>;
attribute <span>Function</span> <span title="handler-window-onresize">onresize</span>;
attribute <span>Function</span> <span title="handler-onscroll">onscroll</span>;
attribute <span>Function</span> <span title="handler-onselect">onselect</span>;
attribute <span>Function</span> <span title="handler-window-onstorage">onstorage</span>;
attribute <span>Function</span> <span title="handler-onsubmit">onsubmit</span>;
attribute <span>Function</span> <span title="handler-window-onundo">onundo</span>;
attribute <span>Function</span> <span title="handler-window-onunload">onunload</span>;
};</pre>

<tr><td><dfn title="handler-window-onoffline"><code>onoffline</code></dfn> <td> <code title="event-offline">offline</code> <!-- new -->
<tr><td><dfn title="handler-window-ononline"><code>ononline</code></dfn> <td> <code title="event-online">online</code> <!-- new -->
<tr><td><dfn title="handler-window-onpopstate"><code>onpopstate</code></dfn> <td> <code title="event-popstate">popstate</code> <!-- new -->
<tr><td><dfn title="handler-window-onredo"><code>onredo</code></dfn> <td> <code title="event-redo">redo</code> <!-- new -->
<tr><td><dfn title="handler-window-onresize"><code>onresize</code></dfn> <td> <code title="event-resize">resize</code> <!-- widely used --> <!-- XXX should define when it fires -->
<tr><td><dfn title="handler-window-onstorage"><code>onstorage</code></dfn> <td> <code title="event-storage">storage</code> <!-- new -->
<tr><td><dfn title="handler-window-onundo"><code>onundo</code></dfn> <td> <code title="event-undo">undo</code> <!-- new -->
<tr><td><dfn title="handler-window-onunload"><code>onunload</code></dfn> <td> <code title="event-unload">unload</code> <!-- widely used -->
</table>

an <span>undo object</span> entry, then the user agent must first
remove that <span>undo object</span> entry from the <span>undo
transaction history</span>, and then must fire an <code
title="event-undo">undo</code> event on the <code>Document</code>
title="event-undo">undo</code> event at the <code>Window</code>
object, using the <span>undo object</span> entry's associated undo
object as the event's data.</p>

an <span>undo object</span> entry, then the user agent must first
remove that <span>undo object</span> entry from the <span>undo
transaction history</span>, and then must fire a <code
title="event-undo">redo</code> event on the <code>Document</code>
title="event-redo">redo</code> event at the <code>Window</code>
object, using the <span>undo object</span> entry's associated undo
object as the event's data.</p>

0 comments on commit 0497e5f

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