Skip to content

Commit

Permalink
[e] (0) Remove UndoManager from W3C HTML5 spec since it's not really …
Browse files Browse the repository at this point in the history
…fully baked yet.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11021

git-svn-id: http://svn.whatwg.org/webapps@5735 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 1, 2011
1 parent 73b0f46 commit 9703dc6
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 40 deletions.
38 changes: 25 additions & 13 deletions complete.html
Expand Up @@ -11913,13 +11913,16 @@ <h4 id=opening-the-input-stream><span class=secno>3.5.1 </span>Opening the input
<li><p>Replace the <code><a href=#document>Document</a></code>'s singleton objects with
new instances of those objects. (This includes in particular the
<code><a href=#window>Window</a></code>, <code><a href=#location>Location</a></code>, <code><a href=#history-0>History</a></code>,
<code><a href=#applicationcache>ApplicationCache</a></code>, <code><a href=#undomanager>UndoManager</a></code>, and
<code><a href=#navigator>Navigator</a></code>, objects, the various <code><a href=#barprop>BarProp</a></code>
objects, the two <code><a href=#storage-0>Storage</a></code> objects, the various
<code><a href=#htmlcollection>HTMLCollection</a></code> objects, and objects defined by other
specifications, like <code>Selection</code>. It also includes all
the Web IDL prototypes in the JavaScript binding, including the
<code><a href=#document>Document</a></code> object's prototype.)</li>
<code><a href=#applicationcache>ApplicationCache</a></code>,

<code><a href=#undomanager>UndoManager</a></code>,

and <code><a href=#navigator>Navigator</a></code>, objects, the various
<code><a href=#barprop>BarProp</a></code> objects, the two <code><a href=#storage-0>Storage</a></code> objects,
the various <code><a href=#htmlcollection>HTMLCollection</a></code> objects, and objects
defined by other specifications, like <code>Selection</code>. It
also includes all the Web IDL prototypes in the JavaScript binding,
including the <code><a href=#document>Document</a></code> object's prototype.)</li>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E...%3Ciframe%20src%3D%22document%22%3E%3C%2Fiframe%3E%0A%3Cscript%3Eonload%20%3D%20function%20()%20%7B%20f%20%3D%20document.getElementsByTagName('iframe')%5B0%5D%3B%20d%20%3D%20f.contentWindow.document%3B%20%7D%3C%2Fscript%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22w(d.documentElement.innerHTML)%22%20value%3D%22dump%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cscript%3Evar%20x%20%3D%20new%20XMLHttpRequest()%3Bx.open(%26quot%3BGET%26quot%3B%2C%20%26quot%3BGET%26quot%3B)%3Bx.onreadystatechange%3Dfunction()%20%7B%20alert(x.readyState)%3B%20%7D%3Bx.send(null)%3B%3C%2Fscript%3E')%3Bd.close()%3B%20setTimeout(function()%20%7B%20d.open()%3B%20d.write('%3Cp%3Etest%3C%2Fp%3E')%3B%20d.close()%20%7D%2C%200)%3B%22%20value%3D%22xhr%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.onclick%20%3D%20function()%20%7B%20w('click')%20%7D%22%20value%3D%22add%20click%20handler%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cp%3Etest%3C%2Fp%3E')%3B%20d.close()%22%20value%3D%22replace%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cp%3E%3Cscript%3Ei%20%3D%200%3B%20setTimeout(%26quot%3Bparent.w(i%2B%2B)%26quot%3B%2C%202000)%3C%2Fscript%3E%3C%2Fp%3E')%3B%20d.close()%22%20value%3D%22replace%20with%20timer%22%3E -->
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A...%3Ciframe%3E%3C%2Fiframe%3E%0D%0A%3Cscript%3E%0D%0Aonload%20%3D%20function%20()%20%7B%0D%0A%20frames%5B0%5D.test%20%3D%201%0D%0A%20w(frames%5B0%5D.test)%3B%0D%0A%20var%20a%20%3D%20frames%5B0%5D.document.location.assign%3B%0D%0A%20w(a)%3B%0D%0A%20w(frames%5B0%5D.document.location.assign%20%3D%3D%3D%20a)%3B%0D%0A%20frames%5B0%5D.document.open()%3B%0D%0A%20frames%5B0%5D.document.write('%3Cscript%3Edocument.write(test)%3C%5C%2Fscript%3E')%3B%0D%0A%20frames%5B0%5D.document.close()%3B%0D%0A%20w(frames%5B0%5D.test)%3B%0D%0A%20w(frames%5B0%5D.document.location.assign%20%3D%3D%3D%20a)%3B%0D%0A%7D%0D%0A%3C%2Fscript%3E -->
Expand Down Expand Up @@ -57679,7 +57682,9 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;

readonly attribute <a href=#undomanager>UndoManager</a> <a href=#dom-undomanager title=dom-undoManager>undoManager</a>;

[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-locationbar title=dom-window-locationbar>locationbar</a>;
[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-menubar title=dom-window-menubar>menubar</a>;
[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-personalbar title=dom-window-personalbar>personalbar</a>;
Expand Down Expand Up @@ -68395,8 +68400,8 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-dr
operation, device input events (e.g. mouse and keyboard events) must
be suppressed. In addition, the user agent must track all DOM
changes made during the drag-and-drop operation, and add them to its
<a href=#undo>undo history</a> as one atomic operation once the
drag-and-drop operation has ended.</p>
<a href=#undo-transaction-history>undo transaction history</a> as one atomic operation once
the drag-and-drop operation has ended.</p>

<p>During the drag operation, the element directly indicated by the
user as the drop target is called the <dfn id=immediate-user-selection>immediate user
Expand Down Expand Up @@ -69266,6 +69271,7 @@ <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.7.9 </span>
</div>



<h3 id=undo><span class=secno>8.8 </span><dfn>Undo history</dfn></h3>

<div class=impl>
Expand Down Expand Up @@ -69947,8 +69953,11 @@ <h3 id=editing-apis><span class=secno>8.9 </span>Editing APIs</h3>
<dd class=impl><strong>Action</strong>: The user agent must <a href=#redo:-moving-forward-in-the-undo-transaction-history title=do-redo>move forward one step</a> in its <a href=#undo-transaction-history>undo
transaction history</a>, restoring the associated state. If the
<a href=#undo-position>undo position</a> is at the end of the <a href=#undo-transaction-history>undo
transaction history</a>, the user agent must do nothing. See the
<a href=#undo>undo history</a>.</dd>
transaction history</a>, the user agent must do nothing.

See the <a href=#undo>undo history</a>.

</dd>
<dd><strong>Enabled When</strong>: The <a href=#undo-position>undo position</a>
is not at the end of the <a href=#undo-transaction-history>undo transaction
history</a>.</dd>
Expand Down Expand Up @@ -70007,8 +70016,11 @@ <h3 id=editing-apis><span class=secno>8.9 </span>Editing APIs</h3>
<dd class=impl><strong>Action</strong>: The user agent must <a href=#undo:-moving-back-in-the-undo-transaction-history title=do-undo>move back one step</a> in its <a href=#undo-transaction-history>undo
transaction history</a>, restoring the associated state. If the
<a href=#undo-position>undo position</a> is at the start of the <a href=#undo-transaction-history>undo
transaction history</a>, the user agent must do nothing. See the
<a href=#undo>undo history</a>.</dd>
transaction history</a>, the user agent must do nothing.

See the <a href=#undo>undo history</a>.

</dd>
<dd><strong>Enabled When</strong>: The <a href=#undo-position>undo position</a>
is not at the start of the <a href=#undo-transaction-history>undo transaction
history</a>.</dd>
Expand Down
42 changes: 29 additions & 13 deletions index
Expand Up @@ -11892,13 +11892,16 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<li><p>Replace the <code><a href=#document>Document</a></code>'s singleton objects with
new instances of those objects. (This includes in particular the
<code><a href=#window>Window</a></code>, <code><a href=#location>Location</a></code>, <code><a href=#history-0>History</a></code>,
<code><a href=#applicationcache>ApplicationCache</a></code>, <code><a href=#undomanager>UndoManager</a></code>, and
<code><a href=#navigator>Navigator</a></code>, objects, the various <code><a href=#barprop>BarProp</a></code>
objects, the two <code>Storage</code> objects, the various
<code><a href=#htmlcollection>HTMLCollection</a></code> objects, and objects defined by other
specifications, like <code>Selection</code>. It also includes all
the Web IDL prototypes in the JavaScript binding, including the
<code><a href=#document>Document</a></code> object's prototype.)</li>
<code><a href=#applicationcache>ApplicationCache</a></code>,

<code><a href=#undomanager>UndoManager</a></code>,

and <code><a href=#navigator>Navigator</a></code>, objects, the various
<code><a href=#barprop>BarProp</a></code> objects, the two <code>Storage</code> objects,
the various <code><a href=#htmlcollection>HTMLCollection</a></code> objects, and objects
defined by other specifications, like <code>Selection</code>. It
also includes all the Web IDL prototypes in the JavaScript binding,
including the <code><a href=#document>Document</a></code> object's prototype.)</li>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E...%3Ciframe%20src%3D%22document%22%3E%3C%2Fiframe%3E%0A%3Cscript%3Eonload%20%3D%20function%20()%20%7B%20f%20%3D%20document.getElementsByTagName('iframe')%5B0%5D%3B%20d%20%3D%20f.contentWindow.document%3B%20%7D%3C%2Fscript%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22w(d.documentElement.innerHTML)%22%20value%3D%22dump%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cscript%3Evar%20x%20%3D%20new%20XMLHttpRequest()%3Bx.open(%26quot%3BGET%26quot%3B%2C%20%26quot%3BGET%26quot%3B)%3Bx.onreadystatechange%3Dfunction()%20%7B%20alert(x.readyState)%3B%20%7D%3Bx.send(null)%3B%3C%2Fscript%3E')%3Bd.close()%3B%20setTimeout(function()%20%7B%20d.open()%3B%20d.write('%3Cp%3Etest%3C%2Fp%3E')%3B%20d.close()%20%7D%2C%200)%3B%22%20value%3D%22xhr%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.onclick%20%3D%20function()%20%7B%20w('click')%20%7D%22%20value%3D%22add%20click%20handler%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cp%3Etest%3C%2Fp%3E')%3B%20d.close()%22%20value%3D%22replace%22%3E%0A%3Cinput%20type%3Dbutton%20onclick%3D%22d.open()%3B%20d.write('%3Cp%3E%3Cscript%3Ei%20%3D%200%3B%20setTimeout(%26quot%3Bparent.w(i%2B%2B)%26quot%3B%2C%202000)%3C%2Fscript%3E%3C%2Fp%3E')%3B%20d.close()%22%20value%3D%22replace%20with%20timer%22%3E -->
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A...%3Ciframe%3E%3C%2Fiframe%3E%0D%0A%3Cscript%3E%0D%0Aonload%20%3D%20function%20()%20%7B%0D%0A%20frames%5B0%5D.test%20%3D%201%0D%0A%20w(frames%5B0%5D.test)%3B%0D%0A%20var%20a%20%3D%20frames%5B0%5D.document.location.assign%3B%0D%0A%20w(a)%3B%0D%0A%20w(frames%5B0%5D.document.location.assign%20%3D%3D%3D%20a)%3B%0D%0A%20frames%5B0%5D.document.open()%3B%0D%0A%20frames%5B0%5D.document.write('%3Cscript%3Edocument.write(test)%3C%5C%2Fscript%3E')%3B%0D%0A%20frames%5B0%5D.document.close()%3B%0D%0A%20w(frames%5B0%5D.test)%3B%0D%0A%20w(frames%5B0%5D.document.location.assign%20%3D%3D%3D%20a)%3B%0D%0A%7D%0D%0A%3C%2Fscript%3E -->
Expand Down Expand Up @@ -57661,7 +57664,9 @@ interface <dfn id=window>Window</dfn> {
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;

readonly attribute <a href=#undomanager>UndoManager</a> <a href=#dom-undomanager title=dom-undoManager>undoManager</a>;

[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-locationbar title=dom-window-locationbar>locationbar</a>;
[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-menubar title=dom-window-menubar>menubar</a>;
[Replaceable] readonly attribute <a href=#barprop>BarProp</a> <a href=#dom-window-personalbar title=dom-window-personalbar>personalbar</a>;
Expand Down Expand Up @@ -68403,8 +68408,8 @@ interface <dfn>FunctionObjectCallback</dfn> {
operation, device input events (e.g. mouse and keyboard events) must
be suppressed. In addition, the user agent must track all DOM
changes made during the drag-and-drop operation, and add them to its
<a href=#undo>undo history</a> as one atomic operation once the
drag-and-drop operation has ended.</p>
<a href=#undo-transaction-history>undo transaction history</a> as one atomic operation once
the drag-and-drop operation has ended.</p>

<p>During the drag operation, the element directly indicated by the
user as the drop target is called the <dfn id=immediate-user-selection>immediate user
Expand Down Expand Up @@ -69274,6 +69279,7 @@ interface <dfn>FunctionObjectCallback</dfn> {
</div>



<h3 id=undo><span class=secno>8.8 </span><dfn>Undo history</dfn></h3>

<div class=impl>
Expand Down Expand Up @@ -69955,8 +69961,11 @@ interface <dfn>FunctionObjectCallback</dfn> {
<dd class=impl><strong>Action</strong>: The user agent must <a href=#redo:-moving-forward-in-the-undo-transaction-history title=do-redo>move forward one step</a> in its <a href=#undo-transaction-history>undo
transaction history</a>, restoring the associated state. If the
<a href=#undo-position>undo position</a> is at the end of the <a href=#undo-transaction-history>undo
transaction history</a>, the user agent must do nothing. See the
<a href=#undo>undo history</a>.</dd>
transaction history</a>, the user agent must do nothing.

See the <a href=#undo>undo history</a>.

</dd>
<dd><strong>Enabled When</strong>: The <a href=#undo-position>undo position</a>
is not at the end of the <a href=#undo-transaction-history>undo transaction
history</a>.</dd>
Expand Down Expand Up @@ -70015,8 +70024,11 @@ interface <dfn>FunctionObjectCallback</dfn> {
<dd class=impl><strong>Action</strong>: The user agent must <a href=#undo:-moving-back-in-the-undo-transaction-history title=do-undo>move back one step</a> in its <a href=#undo-transaction-history>undo
transaction history</a>, restoring the associated state. If the
<a href=#undo-position>undo position</a> is at the start of the <a href=#undo-transaction-history>undo
transaction history</a>, the user agent must do nothing. See the
<a href=#undo>undo history</a>.</dd>
transaction history</a>, the user agent must do nothing.

See the <a href=#undo>undo history</a>.

</dd>
<dd><strong>Enabled When</strong>: The <a href=#undo-position>undo position</a>
is not at the start of the <a href=#undo-transaction-history>undo transaction
history</a>.</dd>
Expand Down Expand Up @@ -88727,10 +88739,12 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<td> <code><a href=#event>Event</a></code>
<td> Fired at the <code><a href=#document>Document</a></code> when it finishes parsing and again when all its subresources have finished loading


<tr><td> <code title=event-redo><a href=#event-redo>redo</a></code>
<td> <code><a href=#undomanagerevent>UndoManagerEvent</a></code>
<td> Fired at the <code><a href=#window>Window</a></code> object when the user <a href=#redo:-moving-forward-in-the-undo-transaction-history title=do-redo>goes forward in the undo transaction history</a>


<tr><td> <code title=event-reset>reset</code>
<td> <code><a href=#event>Event</a></code>
<td> Fired at a <code><a href=#the-form-element>form</a></code> element when it is <a href=#concept-form-reset title=concept-form-reset>reset</a>
Expand All @@ -88743,10 +88757,12 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<td> <code><a href=#event>Event</a></code>
<td> Fired at a <code><a href=#the-form-element>form</a></code> element when it is <a href=#concept-form-submit title=concept-form-submit>submitted</a>


<tr><td> <code title=event-undo><a href=#event-undo>undo</a></code>
<td> <code><a href=#undomanagerevent>UndoManagerEvent</a></code>
<td> Fired at the <code><a href=#window>Window</a></code> object when the user <a href=#undo:-moving-back-in-the-undo-transaction-history title=do-undo>goes backward in the undo transaction history</a>


<tr><td> <code title=event-unload>unload</code>
<td> <code><a href=#event>Event</a></code>
<td> Fired at the <code><a href=#window>Window</a></code> object when the page is going away
Expand Down

0 comments on commit 9703dc6

Please sign in to comment.