[html5] r8859 - [e] (0) Simplify how we define how to get chapters out of WebVTT Fixing https:// [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 26 14:12:16 PST 2014


Author: ianh
Date: 2014-11-26 14:12:12 -0800 (Wed, 26 Nov 2014)
New Revision: 8859

Modified:
   complete.html
   index
   source
Log:
[e] (0) Simplify how we define how to get chapters out of WebVTT
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=27102
Affected topics: Video Text Tracks

Modified: complete.html
===================================================================
--- complete.html	2014-11-26 20:39:04 UTC (rev 8858)
+++ complete.html	2014-11-26 22:12:12 UTC (rev 8859)
@@ -13619,7 +13619,7 @@
 
   <h3 id=text-level-semantics>4.5 Text-level semantics</h3>
 
-  <h4 id=the-a-element>4.5.1 The <dfn><code>a</code></dfn> element</h4><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27047" title="There should be a difference between a having an href attribute and a not having an href attribute. See bug 27022 comment 0.">27047</a></div>
+  <h4 id=the-a-element>4.5.1 The <dfn><code>a</code></dfn> element</h4>
 
   <dl class=element><dt><a href=#concept-element-categories id=the-a-element:concept-element-categories>Categories</a>:<dd><a href=#flow-content-2 id=the-a-element:flow-content-2>Flow content</a>.<dd><a href=#phrasing-content-2 id=the-a-element:phrasing-content-2>Phrasing content</a>.<dd><a href=#interactive-content-2 id=the-a-element:interactive-content-2>Interactive content</a>.<dd><a href=#palpable-content-2 id=the-a-element:palpable-content-2>Palpable content</a>.<dt><a href=#concept-element-contexts id=the-a-element:concept-element-contexts>Contexts in which this element can be used</a>:<dd>Where <a href=#phrasing-content-2 id=the-a-element:phrasing-content-2-2>phrasing content</a> is expected.<dt><a href=#concept-element-content-model id=the-a-element:concept-element-content-model>Content model</a>:<dd><a href=#transparent id=the-a-element:transparent>Transparent</a>, but there must be no <a href=#interactive-content-2 id=the-a-element:interactive-content-2-2>interacti
 ve content</a> descendant.<dt><a href=#concept-element-tag-omission id=the-a-element:concept-element-tag-omission>Tag omission in text/html</a>:<dd>Neither tag is omissible.<dt><a href=#concept-element-attributes id=the-a-element:concept-element-attributes>Content attributes</a>:<dd><a href=#global-attributes id=the-a-element:global-attributes>Global attributes</a><dd><code id=the-a-element:attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> — Address of the <a href=#hyperlink id=the-a-element:hyperlink>hyperlink</a><dd><code id=the-a-element:attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> — <a href=#browsing-context id=the-a-element:browsing-context>Browsing context</a> for <a href=#hyperlink id=the-a-element:hyperlink-2>hyperlink</a> <a href=#navigate id=the-a-element:navigate>navigation</a><dd><code id=the-a-element:attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> — Whether to download the resource inst
 ead of navigating to it, and its file name if so<dd><code id=the-a-element:ping><a href=#ping>ping</a></code> — <a href=#url id=the-a-element:url>URLs</a> to ping<dd><code id=the-a-element:attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code> — Relationship between the document containing the hyperlink and the destination resource<dd><code id=the-a-element:attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code> — Language of the linked resource<dd><code id=the-a-element:attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> — Hint for the type of the referenced resource<dt><a href=#concept-element-dom id=the-a-element:concept-element-dom>DOM interface</a>:<dd>
 <pre class=idl>interface <dfn id=htmlanchorelement>HTMLAnchorElement</dfn> : <a href=#htmlelement id=the-a-element:htmlelement>HTMLElement</a> {
@@ -25348,12 +25348,12 @@
     <p>A boolean indicating whether playback of the <a href=#media-resource id=text-track-model:media-resource-5>media resource</a> is to pause when the
     end of the range to which the cue applies is reached.</p>
    <dt>Some additional format-specific data<dd>
-    <p>Additional fields, as needed for the format. For example, WebVTT has a <a href=#text-track-cue-writing-direction id=text-track-model:text-track-cue-writing-direction>text track cue
+    <p>Additional fields, as needed for the format, including the actual data of the cue. For example, WebVTT has a <a href=#text-track-cue-writing-direction id=text-track-model:text-track-cue-writing-direction>text track cue
     writing direction</a> and so forth. <a href=#refsWEBVTT>[WEBVTT]</a></p>
-   <dt><dfn id=text-track-cue-data>The data of the cue</dfn>
+   <dt><dfn id=text-track-rules-for-extracting-the-chapter-title>Rules for extracting the chapter title</dfn>
    <dd>
-    <p>The raw data of the cue, and <dfn id=rules-for-rendering-the-cue-in-isolation>rules for rendering the cue in isolation</dfn>.</p>
-    <p>The precise nature of this data is defined by the format. For example, WebVTT uses text.</p>
+    <p>An algorithm which, when applied to the cue, returns a string that can be used in user
+    interfaces that use the cue as a chapter title.</p>
    </dl>
 
   <p class=note>The <a href=#text-track-cue-start-time id=text-track-model:text-track-cue-start-time>text track cue start time</a> and <a href=#text-track-cue-end-time id=text-track-model:text-track-cue-end-time>text track cue end
@@ -26171,7 +26171,7 @@
   <p>Each <a href=#text-track-cue id=text-tracks-describing-chapters:text-track-cue>text track cue</a> in a <a href=#text-track id=text-tracks-describing-chapters:text-track>text track</a> being used for describing
   chapters has three key features: the <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time>text track cue start time</a>, giving the start time
   of the chapter, the <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time>text track cue end time</a>, giving the end time of the chapter, and
-  the <a href=#text-track-cue-data id=text-tracks-describing-chapters:text-track-cue-data>text track cue data</a> giving the chapter title.</p>
+  the <a href=#text-track-rules-for-extracting-the-chapter-title id=text-tracks-describing-chapters:text-track-rules-for-extracting-the-chapter-title>text track rules for extracting the chapter title</a>.</p>
 
   
 
@@ -26199,13 +26199,9 @@
 
    <li>
 
-    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time-5>text track cue start time</a>, whose end time is <var>current cue</var>'s <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time-4>text track cue end time</a>, whose title is <var>current cue</var>'s <a href=#text-track-cue-data id=text-tracks-describing-chapters:text-track-cue-data-2>text track cue data</a> interpreted according to its
-    <a href=#rules-for-rendering-the-cue-in-isolation id=text-tracks-describing-chapters:rules-for-rendering-the-cue-in-isolation>rules for rendering the cue in isolation</a>, and whose list of nested chapters is
+    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time-5>text track cue start time</a>, whose end time is <var>current cue</var>'s <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time-4>text track cue end time</a>, whose title is the result of running <var>current cue</var>'s <a href=#text-track-rules-for-extracting-the-chapter-title id=text-tracks-describing-chapters:text-track-rules-for-extracting-the-chapter-title-2>text track rules for extracting the chapter title</a>, and whose list of nested chapters is
     empty.</p>
 
-    <p class=note>For WebVTT, the <a href=#rules-for-rendering-the-cue-in-isolation id=text-tracks-describing-chapters:rules-for-rendering-the-cue-in-isolation-2>rules for rendering the cue in isolation</a> are the
-    <a href=#rules-for-interpreting-webvtt-cue-text id=text-tracks-describing-chapters:rules-for-interpreting-webvtt-cue-text>rules for interpreting WebVTT cue text</a>. <a href=#refsWEBVTT>[WEBVTT]</a></p>
-
    <li><p>Append <var>new chapter</var> to <var>current chapter</var>'s list of
    nested chapters, and let <var>current chapter</var> be <var>new chapter</var>'s
    parent.<li><p>Let <var>current chapter</var> be <var>new chapter</var>.<li><p>Return to the step labeled <i>loop</i>.<li><p><i>End</i>: Return <var>output</var>.</ol>

Modified: index
===================================================================
--- index	2014-11-26 20:39:04 UTC (rev 8858)
+++ index	2014-11-26 22:12:12 UTC (rev 8859)
@@ -13619,7 +13619,7 @@
 
   <h3 id=text-level-semantics>4.5 Text-level semantics</h3>
 
-  <h4 id=the-a-element>4.5.1 The <dfn><code>a</code></dfn> element</h4><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27047" title="There should be a difference between a having an href attribute and a not having an href attribute. See bug 27022 comment 0.">27047</a></div>
+  <h4 id=the-a-element>4.5.1 The <dfn><code>a</code></dfn> element</h4>
 
   <dl class=element><dt><a href=#concept-element-categories id=the-a-element:concept-element-categories>Categories</a>:<dd><a href=#flow-content-2 id=the-a-element:flow-content-2>Flow content</a>.<dd><a href=#phrasing-content-2 id=the-a-element:phrasing-content-2>Phrasing content</a>.<dd><a href=#interactive-content-2 id=the-a-element:interactive-content-2>Interactive content</a>.<dd><a href=#palpable-content-2 id=the-a-element:palpable-content-2>Palpable content</a>.<dt><a href=#concept-element-contexts id=the-a-element:concept-element-contexts>Contexts in which this element can be used</a>:<dd>Where <a href=#phrasing-content-2 id=the-a-element:phrasing-content-2-2>phrasing content</a> is expected.<dt><a href=#concept-element-content-model id=the-a-element:concept-element-content-model>Content model</a>:<dd><a href=#transparent id=the-a-element:transparent>Transparent</a>, but there must be no <a href=#interactive-content-2 id=the-a-element:interactive-content-2-2>interacti
 ve content</a> descendant.<dt><a href=#concept-element-tag-omission id=the-a-element:concept-element-tag-omission>Tag omission in text/html</a>:<dd>Neither tag is omissible.<dt><a href=#concept-element-attributes id=the-a-element:concept-element-attributes>Content attributes</a>:<dd><a href=#global-attributes id=the-a-element:global-attributes>Global attributes</a><dd><code id=the-a-element:attr-hyperlink-href><a href=#attr-hyperlink-href>href</a></code> — Address of the <a href=#hyperlink id=the-a-element:hyperlink>hyperlink</a><dd><code id=the-a-element:attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> — <a href=#browsing-context id=the-a-element:browsing-context>Browsing context</a> for <a href=#hyperlink id=the-a-element:hyperlink-2>hyperlink</a> <a href=#navigate id=the-a-element:navigate>navigation</a><dd><code id=the-a-element:attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> — Whether to download the resource inst
 ead of navigating to it, and its file name if so<dd><code id=the-a-element:ping><a href=#ping>ping</a></code> — <a href=#url id=the-a-element:url>URLs</a> to ping<dd><code id=the-a-element:attr-hyperlink-rel><a href=#attr-hyperlink-rel>rel</a></code> — Relationship between the document containing the hyperlink and the destination resource<dd><code id=the-a-element:attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code> — Language of the linked resource<dd><code id=the-a-element:attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> — Hint for the type of the referenced resource<dt><a href=#concept-element-dom id=the-a-element:concept-element-dom>DOM interface</a>:<dd>
 <pre class=idl>interface <dfn id=htmlanchorelement>HTMLAnchorElement</dfn> : <a href=#htmlelement id=the-a-element:htmlelement>HTMLElement</a> {
@@ -25348,12 +25348,12 @@
     <p>A boolean indicating whether playback of the <a href=#media-resource id=text-track-model:media-resource-5>media resource</a> is to pause when the
     end of the range to which the cue applies is reached.</p>
    <dt>Some additional format-specific data<dd>
-    <p>Additional fields, as needed for the format. For example, WebVTT has a <a href=#text-track-cue-writing-direction id=text-track-model:text-track-cue-writing-direction>text track cue
+    <p>Additional fields, as needed for the format, including the actual data of the cue. For example, WebVTT has a <a href=#text-track-cue-writing-direction id=text-track-model:text-track-cue-writing-direction>text track cue
     writing direction</a> and so forth. <a href=#refsWEBVTT>[WEBVTT]</a></p>
-   <dt><dfn id=text-track-cue-data>The data of the cue</dfn>
+   <dt><dfn id=text-track-rules-for-extracting-the-chapter-title>Rules for extracting the chapter title</dfn>
    <dd>
-    <p>The raw data of the cue, and <dfn id=rules-for-rendering-the-cue-in-isolation>rules for rendering the cue in isolation</dfn>.</p>
-    <p>The precise nature of this data is defined by the format. For example, WebVTT uses text.</p>
+    <p>An algorithm which, when applied to the cue, returns a string that can be used in user
+    interfaces that use the cue as a chapter title.</p>
    </dl>
 
   <p class=note>The <a href=#text-track-cue-start-time id=text-track-model:text-track-cue-start-time>text track cue start time</a> and <a href=#text-track-cue-end-time id=text-track-model:text-track-cue-end-time>text track cue end
@@ -26171,7 +26171,7 @@
   <p>Each <a href=#text-track-cue id=text-tracks-describing-chapters:text-track-cue>text track cue</a> in a <a href=#text-track id=text-tracks-describing-chapters:text-track>text track</a> being used for describing
   chapters has three key features: the <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time>text track cue start time</a>, giving the start time
   of the chapter, the <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time>text track cue end time</a>, giving the end time of the chapter, and
-  the <a href=#text-track-cue-data id=text-tracks-describing-chapters:text-track-cue-data>text track cue data</a> giving the chapter title.</p>
+  the <a href=#text-track-rules-for-extracting-the-chapter-title id=text-tracks-describing-chapters:text-track-rules-for-extracting-the-chapter-title>text track rules for extracting the chapter title</a>.</p>
 
   
 
@@ -26199,13 +26199,9 @@
 
    <li>
 
-    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time-5>text track cue start time</a>, whose end time is <var>current cue</var>'s <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time-4>text track cue end time</a>, whose title is <var>current cue</var>'s <a href=#text-track-cue-data id=text-tracks-describing-chapters:text-track-cue-data-2>text track cue data</a> interpreted according to its
-    <a href=#rules-for-rendering-the-cue-in-isolation id=text-tracks-describing-chapters:rules-for-rendering-the-cue-in-isolation>rules for rendering the cue in isolation</a>, and whose list of nested chapters is
+    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <a href=#text-track-cue-start-time id=text-tracks-describing-chapters:text-track-cue-start-time-5>text track cue start time</a>, whose end time is <var>current cue</var>'s <a href=#text-track-cue-end-time id=text-tracks-describing-chapters:text-track-cue-end-time-4>text track cue end time</a>, whose title is the result of running <var>current cue</var>'s <a href=#text-track-rules-for-extracting-the-chapter-title id=text-tracks-describing-chapters:text-track-rules-for-extracting-the-chapter-title-2>text track rules for extracting the chapter title</a>, and whose list of nested chapters is
     empty.</p>
 
-    <p class=note>For WebVTT, the <a href=#rules-for-rendering-the-cue-in-isolation id=text-tracks-describing-chapters:rules-for-rendering-the-cue-in-isolation-2>rules for rendering the cue in isolation</a> are the
-    <a href=#rules-for-interpreting-webvtt-cue-text id=text-tracks-describing-chapters:rules-for-interpreting-webvtt-cue-text>rules for interpreting WebVTT cue text</a>. <a href=#refsWEBVTT>[WEBVTT]</a></p>
-
    <li><p>Append <var>new chapter</var> to <var>current chapter</var>'s list of
    nested chapters, and let <var>current chapter</var> be <var>new chapter</var>'s
    parent.<li><p>Let <var>current chapter</var> be <var>new chapter</var>.<li><p>Return to the step labeled <i>loop</i>.<li><p><i>End</i>: Return <var>output</var>.</ol>

Modified: source
===================================================================
--- source	2014-11-26 20:39:04 UTC (rev 8858)
+++ source	2014-11-26 22:12:12 UTC (rev 8859)
@@ -32654,14 +32654,14 @@
 
    <dt>Some additional format-specific data</dt>
    <dd>
-    <p>Additional fields, as needed for the format. For example, WebVTT has a <span>text track cue
+    <p>Additional fields, as needed for the format, including the actual data of the cue. For example, WebVTT has a <span>text track cue
     writing direction</span> and so forth. <ref spec=WEBVTT></p>
    </dd>
 
-   <dt><dfn data-x="text track cue data">The data of the cue</dfn>
+   <dt><dfn data-x="text track rules for extracting the chapter title">Rules for extracting the chapter title</dfn>
    <dd>
-    <p>The raw data of the cue, and <dfn>rules for rendering the cue in isolation</dfn>.</p>
-    <p>The precise nature of this data is defined by the format. For example, WebVTT uses text.</p>
+    <p>An algorithm which, when applied to the cue, returns a string that can be used in user
+    interfaces that use the cue as a chapter title.</p>
    </dd>
 
   </dl>
@@ -33829,7 +33829,7 @@
   <p>Each <span>text track cue</span> in a <span>text track</span> being used for describing
   chapters has three key features: the <span>text track cue start time</span>, giving the start time
   of the chapter, the <span>text track cue end time</span>, giving the end time of the chapter, and
-  the <span>text track cue data</span> giving the chapter title.</p>
+  the <span>text track rules for extracting the chapter title</span>.</p>
 
   <div w-nodev>
 
@@ -33875,13 +33875,9 @@
 
    <li>
 
-    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <span>text track cue start time</span>, whose end time is <var>current cue</var>'s <span>text track cue end time</span>, whose title is <var>current cue</var>'s <span>text track cue data</span> interpreted according to its
-    <span>rules for rendering the cue in isolation</span>, and whose list of nested chapters is
+    <p>Create a new chapter <var>new chapter</var>, whose start time is <var>current cue</var>'s <span>text track cue start time</span>, whose end time is <var>current cue</var>'s <span>text track cue end time</span>, whose title is the result of running <var>current cue</var>'s <span>text track rules for extracting the chapter title</span>, and whose list of nested chapters is
     empty.</p>
 
-    <p class="note">For WebVTT, the <span>rules for rendering the cue in isolation</span> are the
-    <span>rules for interpreting WebVTT cue text</span>. <ref spec=WEBVTT></p>
-
    </li>
 
    <li><p>Append <var>new chapter</var> to <var>current chapter</var>'s list of



More information about the Commit-Watchers mailing list