Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (3) Define designMode to set focus and selection.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17743
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7660 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 26, 2013
1 parent 3f98c97 commit 29317dd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
18 changes: 12 additions & 6 deletions complete.html
Expand Up @@ -77160,28 +77160,34 @@ <h4 id=making-entire-documents-editable:-the-designmode-idl-attribute><span clas
<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>

</dl><div class=impl>

<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>


Expand Down
18 changes: 12 additions & 6 deletions index
Expand Up @@ -77160,28 +77160,34 @@ addShortcutKeyLabel(document.getElementById('c'));</pre>
<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>

</dl><div class=impl>

<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>


Expand Down
18 changes: 12 additions & 6 deletions source
Expand Up @@ -90178,7 +90178,8 @@ addShortcutKeyLabel(document.getElementById('c'));</pre>
<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>

Expand All @@ -90188,24 +90189,29 @@ addShortcutKeyLabel(document.getElementById('c'));</pre>

<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>


Expand Down

0 comments on commit 29317dd

Please sign in to comment.