Skip to content

Commit

Permalink
[acgiow] (0) Make </rt> optional in WebSRT. Add some ideas for the dr…
Browse files Browse the repository at this point in the history
…ag-and-drop model.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10113

git-svn-id: http://svn.whatwg.org/webapps@5574 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 4, 2010
1 parent f03ba09 commit 730a016
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 19 deletions.
28 changes: 21 additions & 7 deletions complete.html
Expand Up @@ -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 &mdash; 1 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 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>-->
Expand Down Expand Up @@ -28713,10 +28713,13 @@ <h6 id=syntax-0><span class=secno>4.8.10.11.1 </span>Syntax</h6>
<ol><li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby base.</li>
<li>The string "<code title="">&lt;rt&gt;</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="">&lt;/rt&gt;</code>".</li>
<li>The string "<code title="">&lt;/rt&gt;</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="">&lt;/ruby&gt;</code>".</li>
</ol><div class=impl>

Expand Down Expand Up @@ -29586,7 +29589,12 @@ <h6 id=parsing-0><span class=secno>4.8.10.11.2 </span>Parsing</h6>
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>

Expand Down Expand Up @@ -68407,6 +68415,7 @@ <h3 id=dnd><span class=secno>8.9 </span><dfn>Drag and drop</dfn></h3>
* 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
Expand Down Expand Up @@ -68436,13 +68445,18 @@ <h3 id=dnd><span class=secno>8.9 </span><dfn>Drag and drop</dfn></h3>
.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

-->

Expand Down
28 changes: 21 additions & 7 deletions index
Expand Up @@ -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 &mdash; 1 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 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>-->
Expand Down Expand Up @@ -28693,10 +28693,13 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
<ol><li><a href=#websrt-cue-internal-text>WebSRT cue internal text</a>, representing the ruby base.</li>
<li>The string "<code title="">&lt;rt&gt;</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="">&lt;/rt&gt;</code>".</li>
<li>The string "<code title="">&lt;/rt&gt;</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="">&lt;/ruby&gt;</code>".</li>
</ol><div class=impl>

Expand Down Expand Up @@ -29566,7 +29569,12 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
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>

Expand Down Expand Up @@ -68413,6 +68421,7 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
* 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
Expand Down Expand Up @@ -68442,13 +68451,18 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
.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

-->

Expand Down
26 changes: 21 additions & 5 deletions source
Expand Up @@ -31299,11 +31299,14 @@ interface <dfn>TimedTrackCue</dfn> {
<li><span>WebSRT cue internal text</span>, representing the ruby base.</li>
<li>The string "<code title="">&lt;rt&gt;</code>".</li>
<li><span>WebSRT cue internal text</span>, representing the ruby text component of th ruby annotation.</li>
<li>The string "<code title="">&lt;/rt&gt;</code>".</li>
<li>The string "<code title="">&lt;/rt&gt;</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="">&lt;/ruby&gt;</code>".</li>
</ol>

Expand Down Expand Up @@ -32353,6 +32356,13 @@ interface <dfn>TimedTrackCue</dfn> {

</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>
Expand Down Expand Up @@ -77548,6 +77558,7 @@ interface <dfn>NavigatorAbilities</dfn> {
* 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
Expand Down Expand Up @@ -77577,13 +77588,18 @@ interface <dfn>NavigatorAbilities</dfn> {
.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

-->

Expand Down

0 comments on commit 730a016

Please sign in to comment.