[html5] r7154 - [giow] (2) Tighten up the definition of how selections are deleted in drag-and-d [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 28 14:52:32 PDT 2012
Author: ianh
Date: 2012-06-28 14:52:30 -0700 (Thu, 28 Jun 2012)
New Revision: 7154
Modified:
complete.html
index
source
Log:
[giow] (2) Tighten up the definition of how selections are deleted in drag-and-drop.
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2012-06-28 21:25:28 UTC (rev 7153)
+++ complete.html 2012-06-28 21:52:30 UTC (rev 7154)
@@ -3174,8 +3174,8 @@
rendered, even if, unbeknownst to the implementation, the image also
contained animation data.</p>
- <p class=example>A MPEG-4 video file would not be considered to be
- in a supported format if the compression format used was not
+ <p class=example>An MPEG-4 video file would not be considered to
+ be in a supported format if the compression format used was not
supported, even if the implementation could determine the dimensions
of the movie from the file's metadata.</p>
@@ -76402,10 +76402,10 @@
<dfn id=dom-document-querycommandsupported title=dom-document-queryCommandSupported><code>queryCommandSupported()</code></dfn>, and
<dfn id=dom-document-querycommandvalue title=dom-document-queryCommandValue><code>queryCommandValue()</code></dfn>
- methods, and text selections are defined in the HTML Editing APIs
- specification. The interaction of editing and the undo/redo features
- in user agents is defined by the UndoManager and DOM Transaction
- specification. <a href=#refsEDITING>[EDITING]</a> <a href=#refsUNDO>[UNDO]</a></p>
+ methods, text selections, and the <dfn id=delete-the-selection>delete the selection</dfn>
+ algorithm are defined in the HTML Editing APIs specification. The
+ interaction of editing and the undo/redo features in user agents is
+ defined by the UndoManager and DOM Transaction specification. <a href=#refsEDITING>[EDITING]</a> <a href=#refsUNDO>[UNDO]</a></p>
<!-- those might get merged in here eventually -->
@@ -78488,22 +78488,16 @@
default action of the <code title=event-dragend><a href=#event-dragend>dragend</a></code>
event:</p>
- <dl class=switch><dt>If <var title="">dropped</var> is true, and the
- <a href=#current-target-element>current target element</a> is a text field (e.g.
- <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
- <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
- <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a> state), and the
+ <dl class=switch><dt>If <var title="">dropped</var> is true, the <a href=#current-target-element>current
+ target element</a> is a <i>text field</i> (see below), the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
- operation is a selection in the DOM</dt>
+ operation is a selection in the DOM that is entirely contained
+ within an <a href=#editing-host>editing host</a></dt>
- <dd><p>The user agent should delete the range representing the
- dragged selection from the DOM.</dd>
+ <dd><p><a href=#delete-the-selection>Delete the selection</a>.</dd>
- <dt>If <var title="">dropped</var> is true, and the
- <a href=#current-target-element>current target element</a> is a text field (e.g.
- <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
- <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
- <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a> state), and the
+ <dt>If <var title="">dropped</var> is true, the <a href=#current-target-element>current
+ target element</a> is a <i>text field</i> (see below), the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>
@@ -78522,8 +78516,22 @@
<dd><p>The event has no default action.</dd>
- </dl></li>
+ </dl><p>For the purposes of this step, a <i>text field</i> is a
+ <code><a href=#the-textarea-element>textarea</a></code> element or an <code><a href=#the-input-element>input</a></code> element
+ whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
+ one of the
+ <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>,
+ <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>,
+ <a href="#telephone-state-(type=tel)" title=attr-input-type-tel>Tel</a>,
+ <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>,
+ <a href="#e-mail-state-(type=email)" title=attr-input-type-email>E-mail</a>,
+ <a href="#password-state-(type=password)" title=attr-input-type-password>Password</a>, or
+ <a href="#number-state-(type=number)" title=attr-input-type-number>Number</a>
+ states.</p>
+
+ </li>
+
</ol></li>
</ol><p class=note>User agents are encouraged to consider how to react
Modified: index
===================================================================
--- index 2012-06-28 21:25:28 UTC (rev 7153)
+++ index 2012-06-28 21:52:30 UTC (rev 7154)
@@ -3174,8 +3174,8 @@
rendered, even if, unbeknownst to the implementation, the image also
contained animation data.</p>
- <p class=example>A MPEG-4 video file would not be considered to be
- in a supported format if the compression format used was not
+ <p class=example>An MPEG-4 video file would not be considered to
+ be in a supported format if the compression format used was not
supported, even if the implementation could determine the dimensions
of the movie from the file's metadata.</p>
@@ -76402,10 +76402,10 @@
<dfn id=dom-document-querycommandsupported title=dom-document-queryCommandSupported><code>queryCommandSupported()</code></dfn>, and
<dfn id=dom-document-querycommandvalue title=dom-document-queryCommandValue><code>queryCommandValue()</code></dfn>
- methods, and text selections are defined in the HTML Editing APIs
- specification. The interaction of editing and the undo/redo features
- in user agents is defined by the UndoManager and DOM Transaction
- specification. <a href=#refsEDITING>[EDITING]</a> <a href=#refsUNDO>[UNDO]</a></p>
+ methods, text selections, and the <dfn id=delete-the-selection>delete the selection</dfn>
+ algorithm are defined in the HTML Editing APIs specification. The
+ interaction of editing and the undo/redo features in user agents is
+ defined by the UndoManager and DOM Transaction specification. <a href=#refsEDITING>[EDITING]</a> <a href=#refsUNDO>[UNDO]</a></p>
<!-- those might get merged in here eventually -->
@@ -78488,22 +78488,16 @@
default action of the <code title=event-dragend><a href=#event-dragend>dragend</a></code>
event:</p>
- <dl class=switch><dt>If <var title="">dropped</var> is true, and the
- <a href=#current-target-element>current target element</a> is a text field (e.g.
- <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
- <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
- <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a> state), and the
+ <dl class=switch><dt>If <var title="">dropped</var> is true, the <a href=#current-target-element>current
+ target element</a> is a <i>text field</i> (see below), the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
- operation is a selection in the DOM</dt>
+ operation is a selection in the DOM that is entirely contained
+ within an <a href=#editing-host>editing host</a></dt>
- <dd><p>The user agent should delete the range representing the
- dragged selection from the DOM.</dd>
+ <dd><p><a href=#delete-the-selection>Delete the selection</a>.</dd>
- <dt>If <var title="">dropped</var> is true, and the
- <a href=#current-target-element>current target element</a> is a text field (e.g.
- <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
- <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
- <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a> state), and the
+ <dt>If <var title="">dropped</var> is true, the <a href=#current-target-element>current
+ target element</a> is a <i>text field</i> (see below), the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>
@@ -78522,8 +78516,22 @@
<dd><p>The event has no default action.</dd>
- </dl></li>
+ </dl><p>For the purposes of this step, a <i>text field</i> is a
+ <code><a href=#the-textarea-element>textarea</a></code> element or an <code><a href=#the-input-element>input</a></code> element
+ whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
+ one of the
+ <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>,
+ <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>,
+ <a href="#telephone-state-(type=tel)" title=attr-input-type-tel>Tel</a>,
+ <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>,
+ <a href="#e-mail-state-(type=email)" title=attr-input-type-email>E-mail</a>,
+ <a href="#password-state-(type=password)" title=attr-input-type-password>Password</a>, or
+ <a href="#number-state-(type=number)" title=attr-input-type-number>Number</a>
+ states.</p>
+
+ </li>
+
</ol></li>
</ol><p class=note>User agents are encouraged to consider how to react
Modified: source
===================================================================
--- source 2012-06-28 21:25:28 UTC (rev 7153)
+++ source 2012-06-28 21:52:30 UTC (rev 7154)
@@ -2046,8 +2046,8 @@
rendered, even if, unbeknownst to the implementation, the image also
contained animation data.</p>
- <p class="example">A MPEG-4 video file would not be considered to be
- in a supported format if the compression format used was not
+ <p class="example">An MPEG-4 video file would not be considered to
+ be in a supported format if the compression format used was not
supported, even if the implementation could determine the dimensions
of the movie from the file's metadata.</p>
@@ -89413,11 +89413,11 @@
<dfn title="dom-document-queryCommandSupported"><code>queryCommandSupported()</code></dfn>, and
<dfn title="dom-document-queryCommandValue"><code>queryCommandValue()</code></dfn>
- methods, and text selections are defined in the HTML Editing APIs
- specification. The interaction of editing and the undo/redo features
- in user agents is defined by the UndoManager and DOM Transaction
- specification. <a href="#refsEDITING">[EDITING]</a> <a
- href="#refsUNDO">[UNDO]</a></p>
+ methods, text selections, and the <dfn>delete the selection</dfn>
+ algorithm are defined in the HTML Editing APIs specification. The
+ interaction of editing and the undo/redo features in user agents is
+ defined by the UndoManager and DOM Transaction specification. <a
+ href="#refsEDITING">[EDITING]</a> <a href="#refsUNDO">[UNDO]</a></p>
<!-- those might get merged in here eventually -->
@@ -91918,23 +91918,17 @@
<dl class="switch">
- <dt>If <var title="">dropped</var> is true, and the
- <span>current target element</span> is a text field (e.g.
- <code>textarea</code>, or an <code>input</code> element whose
- <code title="attr-input-type">type</code> attribute is in the
- <span title="attr-input-type-text">Text</span> state), and the
+ <dt>If <var title="">dropped</var> is true, the <span>current
+ target element</span> is a <i>text field</i> (see below), the
<span>current drag operation</span> is "<code
title="">move</code>", and the source of the drag-and-drop
- operation is a selection in the DOM</dt>
+ operation is a selection in the DOM that is entirely contained
+ within an <span>editing host</span></dt>
- <dd><p>The user agent should delete the range representing the
- dragged selection from the DOM.</p></dd>
+ <dd><p><span>Delete the selection</span>.</p></dd>
- <dt>If <var title="">dropped</var> is true, and the
- <span>current target element</span> is a text field (e.g.
- <code>textarea</code>, or an <code>input</code> element whose
- <code title="attr-input-type">type</code> attribute is in the
- <span title="attr-input-type-text">Text</span> state), and the
+ <dt>If <var title="">dropped</var> is true, the <span>current
+ target element</span> is a <i>text field</i> (see below), the
<span>current drag operation</span> is "<code
title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>
@@ -91957,6 +91951,20 @@
</dl>
+ <p>For the purposes of this step, a <i>text field</i> is a
+ <code>textarea</code> element or an <code>input</code> element
+ whose <code title="attr-input-type">type</code> attribute is in
+ one of the
+ <span title="attr-input-type-text">Text</span>,
+ <span title="attr-input-type-search">Search</span>,
+ <span title="attr-input-type-tel">Tel</span>,
+ <span title="attr-input-type-url">URL</span>,
+ <span title="attr-input-type-email">E-mail</span>,
+ <span title="attr-input-type-password">Password</span>, or
+ <span title="attr-input-type-number">Number</span>
+ states.</p>
+
+
</li>
</ol>
More information about the Commit-Watchers
mailing list