[html5] r7660 - [giow] (3) Define designMode to set focus and selection. Fixing https://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jan 25 21:44:52 PST 2013


Author: ianh
Date: 2013-01-25 21:44:51 -0800 (Fri, 25 Jan 2013)
New Revision: 7660

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Define designMode to set focus and selection.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17743
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-01-26 01:18:38 UTC (rev 7659)
+++ complete.html	2013-01-26 05:44:51 UTC (rev 7660)
@@ -77160,7 +77160,8 @@
     <p>Returns "<code title="">on</code>" if the document is editable,
     and "<code title="">off</code>" if it isn't.</p>
 
-    <p>Can be set, to change the document's current state.</p>
+    <p>Can be set, to change the document's current state. This focuses the document and resets the
+    selection in that document.</p>
 
    </dd>
 
@@ -77168,20 +77169,25 @@
 
   <p>The <code title=dom-document-designMode><a href=#designMode>designMode</a></code> IDL
   attribute on the <code><a href=#document>Document</a></code> object takes two values,
-  "<code title="">on</code>" and "<code title="">off</code>". When it
-  is set, the new value must be compared in an <a href=#ascii-case-insensitive>ASCII
-  case-insensitive</a> manner to these two values. If it matches
+  "<code title="">on</code>" and "<code title="">off</code>". On
+  setting, the new value must be compared in an <a href=#ascii-case-insensitive>ASCII
+  case-insensitive</a> manner to these two values; if it matches
   the "<code title="">on</code>" value, then <code title=dom-document-designMode><a href=#designMode>designMode</a></code> must be enabled,
   and if it matches the "<code title="">off</code>" value, then <code title=dom-document-designMode><a href=#designMode>designMode</a></code> must be
   disabled. Other values must be ignored.</p>
 
-  <p>When <code title=dom-document-designMode><a href=#designMode>designMode</a></code> is
-  enabled, the IDL attribute must return the value "<code title="">on</code>", and when it is disabled, it must return the
+  <p>On getting, if <code title=dom-document-designMode><a href=#designMode>designMode</a></code> is
+  enabled, the IDL attribute must return the value "<code title="">on</code>"; otherwise it is disabled, and the attribute must return the
   value "<code title="">off</code>".</p>
 
   <p>The last state set must persist until the document is destroyed
   or the state is changed. Initially, documents must have their <code title=dom-document-designMode><a href=#designMode>designMode</a></code> disabled.</p>
 
+  <p>When the <code title=dom-document-designMode><a href=#designMode>designMode</a></code> changes from being disabled to
+  being enabled, the user agent must synchronously reset the document's <a href=#active-range>active range</a>'s
+  start and end boundary points to be at the start of the <code><a href=#document>Document</a></code> and then run the
+  <a href=#focusing-steps>focusing steps</a> for the root element of the <code><a href=#document>Document</a></code>, if any.</p>
+
   </div>
 
 

Modified: index
===================================================================
--- index	2013-01-26 01:18:38 UTC (rev 7659)
+++ index	2013-01-26 05:44:51 UTC (rev 7660)
@@ -77160,7 +77160,8 @@
     <p>Returns "<code title="">on</code>" if the document is editable,
     and "<code title="">off</code>" if it isn't.</p>
 
-    <p>Can be set, to change the document's current state.</p>
+    <p>Can be set, to change the document's current state. This focuses the document and resets the
+    selection in that document.</p>
 
    </dd>
 
@@ -77168,20 +77169,25 @@
 
   <p>The <code title=dom-document-designMode><a href=#designMode>designMode</a></code> IDL
   attribute on the <code><a href=#document>Document</a></code> object takes two values,
-  "<code title="">on</code>" and "<code title="">off</code>". When it
-  is set, the new value must be compared in an <a href=#ascii-case-insensitive>ASCII
-  case-insensitive</a> manner to these two values. If it matches
+  "<code title="">on</code>" and "<code title="">off</code>". On
+  setting, the new value must be compared in an <a href=#ascii-case-insensitive>ASCII
+  case-insensitive</a> manner to these two values; if it matches
   the "<code title="">on</code>" value, then <code title=dom-document-designMode><a href=#designMode>designMode</a></code> must be enabled,
   and if it matches the "<code title="">off</code>" value, then <code title=dom-document-designMode><a href=#designMode>designMode</a></code> must be
   disabled. Other values must be ignored.</p>
 
-  <p>When <code title=dom-document-designMode><a href=#designMode>designMode</a></code> is
-  enabled, the IDL attribute must return the value "<code title="">on</code>", and when it is disabled, it must return the
+  <p>On getting, if <code title=dom-document-designMode><a href=#designMode>designMode</a></code> is
+  enabled, the IDL attribute must return the value "<code title="">on</code>"; otherwise it is disabled, and the attribute must return the
   value "<code title="">off</code>".</p>
 
   <p>The last state set must persist until the document is destroyed
   or the state is changed. Initially, documents must have their <code title=dom-document-designMode><a href=#designMode>designMode</a></code> disabled.</p>
 
+  <p>When the <code title=dom-document-designMode><a href=#designMode>designMode</a></code> changes from being disabled to
+  being enabled, the user agent must synchronously reset the document's <a href=#active-range>active range</a>'s
+  start and end boundary points to be at the start of the <code><a href=#document>Document</a></code> and then run the
+  <a href=#focusing-steps>focusing steps</a> for the root element of the <code><a href=#document>Document</a></code>, if any.</p>
+
   </div>
 
 

Modified: source
===================================================================
--- source	2013-01-26 01:18:38 UTC (rev 7659)
+++ source	2013-01-26 05:44:51 UTC (rev 7660)
@@ -90178,7 +90178,8 @@
     <p>Returns "<code title="">on</code>" if the document is editable,
     and "<code title="">off</code>" if it isn't.</p>
 
-    <p>Can be set, to change the document's current state.</p>
+    <p>Can be set, to change the document's current state. This focuses the document and resets the
+    selection in that document.</p>
 
    </dd>
 
@@ -90188,24 +90189,29 @@
 
   <p>The <code title="dom-document-designMode">designMode</code> IDL
   attribute on the <code>Document</code> object takes two values,
-  "<code title="">on</code>" and "<code title="">off</code>". When it
-  is set, the new value must be compared in an <span>ASCII
-  case-insensitive</span> manner to these two values. If it matches
+  "<code title="">on</code>" and "<code title="">off</code>". On
+  setting, the new value must be compared in an <span>ASCII
+  case-insensitive</span> manner to these two values; if it matches
   the "<code title="">on</code>" value, then <code
   title="dom-document-designMode">designMode</code> must be enabled,
   and if it matches the "<code title="">off</code>" value, then <code
   title="dom-document-designMode">designMode</code> must be
   disabled. Other values must be ignored.</p>
 
-  <p>When <code title="dom-document-designMode">designMode</code> is
+  <p>On getting, if <code title="dom-document-designMode">designMode</code> is
   enabled, the IDL attribute must return the value "<code
-  title="">on</code>", and when it is disabled, it must return the
+  title="">on</code>"; otherwise it is disabled, and the attribute must return the
   value "<code title="">off</code>".</p>
 
   <p>The last state set must persist until the document is destroyed
   or the state is changed. Initially, documents must have their <code
   title="dom-document-designMode">designMode</code> disabled.</p>
 
+  <p>When the <code title="dom-document-designMode">designMode</code> changes from being disabled to
+  being enabled, the user agent must synchronously reset the document's <span>active range</span>'s
+  start and end boundary points to be at the start of the <code>Document</code> and then run the
+  <span>focusing steps</span> for the root element of the <code>Document</code>, if any.</p>
+
   </div>
 
 




More information about the Commit-Watchers mailing list