[html5] r5574 - [acgiow] (0) Make </rt> optional in WebSRT. Add some ideas for the drag-and-drop [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 4 14:23:21 PDT 2010


Author: ianh
Date: 2010-10-04 14:23:19 -0700 (Mon, 04 Oct 2010)
New Revision: 5574

Modified:
   complete.html
   index
   source
Log:
[acgiow] (0) Make </rt> optional in WebSRT. Add some ideas for the drag-and-drop model.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10113

Modified: complete.html
===================================================================
--- complete.html	2010-10-01 18:56:31 UTC (rev 5573)
+++ complete.html	2010-10-04 21:23:19 UTC (rev 5574)
@@ -214,7 +214,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 1 October 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 4 October 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -28713,10 +28713,13 @@
     <ol><li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby base.</li>
      <li>The string "<code title=""><rt></code>".</li>
      <li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby text component of th ruby annotation.</li>
-     <li>The string "<code title=""></rt></code>".</li>
+     <li>The string "<code title=""></rt></code>". If this is
+     the last occurance of this group of components in the
+     <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a>, then this last end tag string
+     may be omitted.</li>
     </ol></li>
-   <li>Optioonally, a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
-   <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
+   <li>If the last end tag string was not omitted: Optionally, a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
+   <li>If the last end tag string was not omitted: Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
    <li>The string "<code title=""></ruby></code>".</li>
   </ol><div class=impl>
 
@@ -29586,8 +29589,13 @@
        is "<code title="">rt</code>" and <var title="">current</var> is
        a <a href=#websrt-ruby-text-object>WebSRT Ruby Text Object</a>.</li>
 
-      </ul><p>Otherwise, ignore the token.</p>
+      </ul><p>Otherwise, if the tag name of the end tag token <var title="">token</var> is "<code title="">ruby</code>" and <var title="">current</var> is a <a href=#websrt-ruby-text-object>WebSRT Ruby Text
+      Object</a>, then let <var title="">current</var> be the
+      parent node of <var title="">current</var> of the parent node of
+      <var title="">current</var>.</p>
 
+      <p>Otherwise, ignore the token.</p>
+
      </dd>
 
     </dl></li>
@@ -68407,6 +68415,7 @@
      * We should let drop targets communicate back to drag sources if
        they want to communicate. (e.g. expose Window, and thus
        postMessage(), on the dataTransfer object on drop.)
+       Or maybe just use a MessagePort!
 
        We should let drag sources provide a set of options via a
        context menu when the drop happens. (So that, e.g., the source
@@ -68436,14 +68445,19 @@
                           .add(blobData)
                           .add(fileData)
                           .add(dataTransferItem)
+                          .add(promise)
                           .clear()
 
          DataTransferItem.kind = 'string', 'file', 'blob', ...
                          .type = MIME type
-                         .binary = boolean
+                         .binaryOnly
                          .getTextData(function callback (data)) - throws if binary is true
-                         .getBlob() - returns File or Blob
+                         .getBlob() - returns File or Blob (which are async anyway)
 
+         DataTransferPromise.type = 'string' or 'file' or 'blob'
+                            .onneeddata - can wait until this fires to provide data
+                            .setData() - call this once you have data, must be the right type
+
 -->
 
   <p>This section defines an event-based drag-and-drop mechanism.</p>

Modified: index
===================================================================
--- index	2010-10-01 18:56:31 UTC (rev 5573)
+++ index	2010-10-04 21:23:19 UTC (rev 5574)
@@ -218,7 +218,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>HTML5 (including next generation additions still in development)</h1>
-    <h2 class="no-num no-toc">Draft Standard — 1 October 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 4 October 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -28693,10 +28693,13 @@
     <ol><li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby base.</li>
      <li>The string "<code title=""><rt></code>".</li>
      <li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby text component of th ruby annotation.</li>
-     <li>The string "<code title=""></rt></code>".</li>
+     <li>The string "<code title=""></rt></code>". If this is
+     the last occurance of this group of components in the
+     <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a>, then this last end tag string
+     may be omitted.</li>
     </ol></li>
-   <li>Optioonally, a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
-   <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
+   <li>If the last end tag string was not omitted: Optionally, a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
+   <li>If the last end tag string was not omitted: Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
    <li>The string "<code title=""></ruby></code>".</li>
   </ol><div class=impl>
 
@@ -29566,8 +29569,13 @@
        is "<code title="">rt</code>" and <var title="">current</var> is
        a <a href=#websrt-ruby-text-object>WebSRT Ruby Text Object</a>.</li>
 
-      </ul><p>Otherwise, ignore the token.</p>
+      </ul><p>Otherwise, if the tag name of the end tag token <var title="">token</var> is "<code title="">ruby</code>" and <var title="">current</var> is a <a href=#websrt-ruby-text-object>WebSRT Ruby Text
+      Object</a>, then let <var title="">current</var> be the
+      parent node of <var title="">current</var> of the parent node of
+      <var title="">current</var>.</p>
 
+      <p>Otherwise, ignore the token.</p>
+
      </dd>
 
     </dl></li>
@@ -68413,6 +68421,7 @@
      * We should let drop targets communicate back to drag sources if
        they want to communicate. (e.g. expose Window, and thus
        postMessage(), on the dataTransfer object on drop.)
+       Or maybe just use a MessagePort!
 
        We should let drag sources provide a set of options via a
        context menu when the drop happens. (So that, e.g., the source
@@ -68442,14 +68451,19 @@
                           .add(blobData)
                           .add(fileData)
                           .add(dataTransferItem)
+                          .add(promise)
                           .clear()
 
          DataTransferItem.kind = 'string', 'file', 'blob', ...
                          .type = MIME type
-                         .binary = boolean
+                         .binaryOnly
                          .getTextData(function callback (data)) - throws if binary is true
-                         .getBlob() - returns File or Blob
+                         .getBlob() - returns File or Blob (which are async anyway)
 
+         DataTransferPromise.type = 'string' or 'file' or 'blob'
+                            .onneeddata - can wait until this fires to provide data
+                            .setData() - call this once you have data, must be the right type
+
 -->
 
   <p>This section defines an event-based drag-and-drop mechanism.</p>

Modified: source
===================================================================
--- source	2010-10-01 18:56:31 UTC (rev 5573)
+++ source	2010-10-04 21:23:19 UTC (rev 5574)
@@ -31299,11 +31299,14 @@
      <li><span>WebSRT cue internal text</span>, representing the ruby base.</li>
      <li>The string "<code title=""><rt></code>".</li>
      <li><span>WebSRT cue internal text</span>, representing the ruby text component of th ruby annotation.</li>
-     <li>The string "<code title=""></rt></code>".</li>
+     <li>The string "<code title=""></rt></code>". If this is
+     the last occurance of this group of components in the
+     <span>WebSRT cue ruby span</span>, then this last end tag string
+     may be omitted.</li>
     </ol>
    </li>
-   <li>Optioonally, a <span>WebSRT line terminator</span>.</li>
-   <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <span>WebSRT line terminator</span>.</li>
+   <li>If the last end tag string was not omitted: Optionally, a <span>WebSRT line terminator</span>.</li>
+   <li>If the last end tag string was not omitted: Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <span>WebSRT line terminator</span>.</li>
    <li>The string "<code title=""></ruby></code>".</li>
   </ol>
 
@@ -32353,6 +32356,13 @@
 
       </ul>
 
+      <p>Otherwise, if the tag name of the end tag token <var
+      title="">token</var> is "<code title="">ruby</code>" and <var
+      title="">current</var> is a <span>WebSRT Ruby Text
+      Object</span>, then let <var title="">current</var> be the
+      parent node of <var title="">current</var> of the parent node of
+      <var title="">current</var>.</p>
+
       <p>Otherwise, ignore the token.</p>
 
      </dd>
@@ -77548,6 +77558,7 @@
      * We should let drop targets communicate back to drag sources if
        they want to communicate. (e.g. expose Window, and thus
        postMessage(), on the dataTransfer object on drop.)
+       Or maybe just use a MessagePort!
 
        We should let drag sources provide a set of options via a
        context menu when the drop happens. (So that, e.g., the source
@@ -77577,14 +77588,19 @@
                           .add(blobData)
                           .add(fileData)
                           .add(dataTransferItem)
+                          .add(promise)
                           .clear()
 
          DataTransferItem.kind = 'string', 'file', 'blob', ...
                          .type = MIME type
-                         .binary = boolean
+                         .binaryOnly
                          .getTextData(function callback (data)) - throws if binary is true
-                         .getBlob() - returns File or Blob
+                         .getBlob() - returns File or Blob (which are async anyway)
 
+         DataTransferPromise.type = 'string' or 'file' or 'blob'
+                            .onneeddata - can wait until this fires to provide data
+                            .setData() - call this once you have data, must be the right type
+
 -->
 
   <p>This section defines an event-based drag-and-drop mechanism.</p>




More information about the Commit-Watchers mailing list