We also have to reset direction
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 11 Jan 2012 12:45:25 -0700
changeset 682 625762f16fc9
parent 681 6aaa4b8455c9
child 683 5157ed0618cc
We also have to reset direction
editing.html
selecttest/unload.html
source.html
--- a/editing.html	Wed Jan 11 12:32:45 2012 -0700
+++ b/editing.html	Wed Jan 11 12:45:25 2012 -0700
@@ -772,8 +772,8 @@
 
 <p>As one of the <a class=external data-anolis-spec=html href=http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#unloading-document-cleanup-steps>unloading document cleanup
 steps</a>, the user agent must remove any <a class=external data-anolis-spec=dom href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-range title=concept-range>range</a> from the <a href=#concept-selection title=concept-selection>selection</a>
-associated with the <code class=external data-anolis-spec=dom><a href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document>Document</a></code>'s <a class=external data-anolis-spec=html href=http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context title="browsing context">browsing context</a>, so the <a href=#concept-selection title=concept-selection>selection</a>'s
-<a class=external data-anolis-spec=dom href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-range title=concept-range>range</a> is null.
+associated with the <code class=external data-anolis-spec=dom><a href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document>Document</a></code>'s <a class=external data-anolis-spec=html href=http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context title="browsing context">browsing context</a> (so the <a href=#concept-selection title=concept-selection>selection</a>'s
+<a class=external data-anolis-spec=dom href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-range title=concept-range>range</a> is null) and set its <a href=#concept-selection-dir title=concept-selection-dir>direction</a> to <i title="">forwards</i>.
 
 <p class=comments>This paragraph is vague.  It needs to be replaced by detailed
 conformance requirements saying exactly what to do for particular keystrokes,
--- a/selecttest/unload.html	Wed Jan 11 12:32:45 2012 -0700
+++ b/selecttest/unload.html	Wed Jan 11 12:45:25 2012 -0700
@@ -7,9 +7,12 @@
 
 // This tests the requirement "As one of the unloading document cleanup steps,
 // the user agent must remove any range from the selection associated with the
-// Document's browsing context, so the selection's range is null."  To do so,
-// it creates an iframe and runs document.open().  TODO: Test additional ways
-// of unloading the document, like back and forward.
+// Document's browsing context (so the selection's range is null) and set its
+// direction to forwards."  To do so, it creates an iframe and runs
+// document.open().
+//
+// TODO: Test additional ways of unloading the document, like back and forward.
+// TODO: Test that selection direction is reset.
 
 var iframe = document.createElement("iframe");
 var t = async_test("Selection.rangeCount must be reset to 0 after document.open()");
--- a/source.html	Wed Jan 11 12:32:45 2012 -0700
+++ b/source.html	Wed Jan 11 12:45:25 2012 -0700
@@ -712,8 +712,8 @@
 
 <p>As one of the <span data-anolis-spec=html>unloading document cleanup
 steps</span>, the user agent must remove any [[range]] from the [[selection]]
-associated with the [[document]]'s [[browsingcontext]], so the [[selection]]'s
-[[range]] is null.
+associated with the [[document]]'s [[browsingcontext]] (so the [[selection]]'s
+[[range]] is null) and set its [[seldir]] to <i title>forwards</i>.
 
 <p class=comments>This paragraph is vague.  It needs to be replaced by detailed
 conformance requirements saying exactly what to do for particular keystrokes,