HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3003Move onundo and onredo from Document to Window.2009-04-27 23:50
@@ -12673,36 +12673,40 @@ not-slash     = %x0000-002E / %x0030-%10FFFF
    <dt>Content attributes:</dt>
    <dd><span>Global attributes</span></dd>
    <dd><code title="handler-window-onbeforeunload">onbeforeunload</code></dd>
    <dd><code title="handler-window-onerror">onerror</code></dd>
    <dd><code title="handler-window-onhashchange">onhashchange</code></dd>
    <dd><code title="handler-window-onload">onload</code></dd>
    <dd><code title="handler-window-onmessage">onmessage</code></dd>
    <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>
 <pre class="idl">interface <dfn>HTMLBodyElement</dfn> : <span>HTMLElement</span> {
            attribute <span>Function</span> <span title="handler-window-onbeforeunload">onbeforeunload</span>;
            attribute <span>Function</span> <span title="handler-window-onerror">onerror</span>;
            attribute <span>Function</span> <span title="handler-window-onhashchange">onhashchange</span>;
            attribute <span>Function</span> <span title="handler-window-onload">onload</span>;
            attribute <span>Function</span> <span title="handler-window-onmessage">onmessage</span>;
            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>
   </dl>
 
   <p>The <code>body</code> element <span>represents</span> the main
   content of the document.</p>
 
   <p>In conforming documents, there is only one <code>body</code>
   element. The <code title="dom-document-body">document.body</code>
@@ -45437,25 +45441,27 @@ interface <dfn>Window</dfn> {
            attribute <span>Function</span> <span title="handler-window-onmessage">onmessage</span>;
            attribute <span>Function</span> <span title="handler-onmousedown">onmousedown</span>;
            attribute <span>Function</span> <span title="handler-onmousemove">onmousemove</span>;
            attribute <span>Function</span> <span title="handler-onmouseout">onmouseout</span>;
            attribute <span>Function</span> <span title="handler-onmouseover">onmouseover</span>;
            attribute <span>Function</span> <span title="handler-onmouseup">onmouseup</span>;
            attribute <span>Function</span> <span title="handler-onmousewheel">onmousewheel</span>;
            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>
 
  <!-- XXX http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp
           http://www.mozilla.org/docs/dom/domref/dom_window_ref.html
           http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindow.idl - scrollBy, etc
           http://lxr.mozilla.org/mozilla/source/dom/public/idl/base/nsIDOMWindowInternal.idl - DOM level 0
    -->
 
   <dl class="domintro">
@@ -47588,22 +47594,24 @@ interface <dfn>Function</dfn> {
     <tr><th><span title="event handler attributes">event handler attribute</span> <th><span>Event handler event type</span>
    <tbody>
     <tr><td><dfn title="handler-window-onbeforeunload"><code>onbeforeunload</code></dfn> <td> <code title="event-beforeunload">beforeunload</code>
     <tr><td><dfn title="handler-window-onerror"><code>onerror</code></dfn> <td> <code title="event-error">error</code>
     <tr><td><dfn title="handler-window-onhashchange"><code>onhashchange</code></dfn> <td> <code title="event-hashchange">hashchange</code> <!-- new -->
     <tr><td><dfn title="handler-window-onload"><code>onload</code></dfn> <td> <code title="event-load">load</code> <!-- widely used -->
     <tr><td><dfn title="handler-window-onmessage"><code>onmessage</code></dfn> <td> <code title="event-message">message</code> <!-- new for postMessage -->
     <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>
 
   <p class="note">The <code title="handler-window-onerror">onerror</code>
   handler is also used for <a
   href="#runtime-script-errors">reporting script errors</a>.</p>
 
   </div>
 
 
@@ -58722,21 +58730,21 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
 
   <p>If the DOM changes cannot be undone (e.g. because the DOM state
   is no longer consistent with the changes represented in the entry),
   then the user agent must simply remove the <span>DOM changes</span>
   entry, without doing anything else.</p>
 
   <p>If the entry immediately before the <span>undo position</span> is
   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>
 
   <p>Any calls to <code title="dom-undoManager-add">add()</code> while
   the event is being handled will be used to populate the redo
   history, and will then be used if the user invokes the "redo"
   command to undo his undo.</p>
 
 
   <h4><dfn title="do-redo">Redo: moving forward in the undo transaction history</dfn></h4>
@@ -58764,21 +58772,21 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
 
   <p>If the DOM changes cannot be redone (e.g. because the DOM state
   is no longer consistent with the changes represented in the entry),
   then the user agent must simply remove the <span>DOM changes</span>
   entry, without doing anything else.</p>
 
   <p>If the entry immediately after the <span>undo position</span> is
   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>
 
   </div>
 
 
   <h4>The <code>UndoManagerEvent</code> interface and the <code title="event-undo">undo</code> and <code title="event-redo">redo</code> events</h4>
 
   <pre class="idl">interface <dfn>UndoManagerEvent</dfn> : Event {
   readonly attribute any <span title="dom-UndoManagerEvent-data">data</span>;

|