<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25737</bug_id>
          
          <creation_ts>2014-05-16 08:11:53 +0000</creation_ts>
          <short_desc>[WebVTT] file using only nested cues definition is too lax</short_desc>
          <delta_ts>2014-10-10 09:05:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>v1</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>philipj</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact name="Web Media Text Tracks CG">public-texttracks</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106138</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-16 08:11:53 +0000</bug_when>
    <thetext>http://dev.w3.org/html5/webvtt/#dfn-webvtt-file-using-only-nested-cues

&gt; given any two cues cue1 and cue2 with start and end time offsets
&gt; (x1, y1) and (x2, y2) respectively,
&gt;
&gt; either cue1 lies fully within cue2, i.e. x1 ≥ x2 and y1 ≤ y2
&gt; or cue1 fully contains cue2, i.e. x1 ≤ x2 and y1 ≥ y2.

The following file would match the definition:

WEBVTT

00:00.000 --&gt; 00:01.000
A

00:00.000 --&gt; 00:01.000
B

Yet, neither cue is nested in the other, and a tree of chapters cannot be constructed from the file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106140</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-16 08:24:59 +0000</bug_when>
    <thetext>The definition would also fail for something like this:

WEBVTT

00:00.000 --&gt; 00:10.000
Chapter 1

00:00.000 --&gt; 00:05.000
Chapter 1.1

00:05.000 --&gt; 00:10.000
Chapter 1.2

Neither of the two last cues contains the other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106141</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-16 08:46:59 +0000</bug_when>
    <thetext>I think the definition should be that no two cues can have the same start and end time, and the intersection of any two cues should be equal to one of the cues.

Not sure how to phrase it in a way that is easily understood.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106142</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-16 08:47:22 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #2)
&gt; I think the definition should be that no two cues can have the same start
&gt; and end time, and the intersection of any two cues should be equal to one of
&gt; the cues.

Or empty, d&apos;oh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106143</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-05-16 08:59:45 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #0)
&gt; http://dev.w3.org/html5/webvtt/#dfn-webvtt-file-using-only-nested-cues
&gt; 
&gt; &gt; given any two cues cue1 and cue2 with start and end time offsets
&gt; &gt; (x1, y1) and (x2, y2) respectively,
&gt; &gt;
&gt; &gt; either cue1 lies fully within cue2, i.e. x1 ≥ x2 and y1 ≤ y2
&gt; &gt; or cue1 fully contains cue2, i.e. x1 ≤ x2 and y1 ≥ y2.
&gt; 
&gt; The following file would match the definition:
&gt; 
&gt; WEBVTT
&gt; 
&gt; 00:00.000 --&gt; 00:01.000
&gt; A
&gt; 
&gt; 00:00.000 --&gt; 00:01.000
&gt; B
&gt; 
&gt; Yet, neither cue is nested in the other, and a tree of chapters cannot be
&gt; constructed from the file.


&quot;Nested&quot; doesn&apos;t have to mean that one can&apos;t be completely contained in the other. I think in this case B would be a subtree of A. I think this should be allowed. The first one to come will be the top chapter, the second one the subchapter and so on. I certainly wouldn&apos;t want the second chapter to be dropped because it covers the same time interval as the first one.


(In reply to Philip Jägenstedt from comment #1)
&gt; The definition would also fail for something like this:
&gt; 
&gt; WEBVTT
&gt; 
&gt; 00:00.000 --&gt; 00:10.000
&gt; Chapter 1
&gt; 
&gt; 00:00.000 --&gt; 00:05.000
&gt; Chapter 1.1
&gt; 
&gt; 00:05.000 --&gt; 00:10.000
&gt; Chapter 1.2
&gt; 
&gt; Neither of the two last cues contains the other.

Right, I guess there should be a third case where they are totally independent of each other. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106151</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-05-16 11:10:51 +0000</bug_when>
    <thetext>(In reply to Silvia Pfeiffer from comment #4)
&gt; (In reply to Philip Jägenstedt from comment #0)
&gt; &gt; http://dev.w3.org/html5/webvtt/#dfn-webvtt-file-using-only-nested-cues
&gt; &gt; 
&gt; &gt; &gt; given any two cues cue1 and cue2 with start and end time offsets
&gt; &gt; &gt; (x1, y1) and (x2, y2) respectively,
&gt; &gt; &gt;
&gt; &gt; &gt; either cue1 lies fully within cue2, i.e. x1 ≥ x2 and y1 ≤ y2
&gt; &gt; &gt; or cue1 fully contains cue2, i.e. x1 ≤ x2 and y1 ≥ y2.
&gt; &gt; 
&gt; &gt; The following file would match the definition:
&gt; &gt; 
&gt; &gt; WEBVTT
&gt; &gt; 
&gt; &gt; 00:00.000 --&gt; 00:01.000
&gt; &gt; A
&gt; &gt; 
&gt; &gt; 00:00.000 --&gt; 00:01.000
&gt; &gt; B
&gt; &gt; 
&gt; &gt; Yet, neither cue is nested in the other, and a tree of chapters cannot be
&gt; &gt; constructed from the file.
&gt; 
&gt; 
&gt; &quot;Nested&quot; doesn&apos;t have to mean that one can&apos;t be completely contained in the
&gt; other. I think in this case B would be a subtree of A. I think this should
&gt; be allowed. The first one to come will be the top chapter, the second one
&gt; the subchapter and so on. I certainly wouldn&apos;t want the second chapter to be
&gt; dropped because it covers the same time interval as the first one.

A subchapter with the exact same extent seems odd, when would you deliberately author a chapter hierarchy like that?

As for being dropped, the WebVTT spec need only be concerned with validity, not processing, which is defined by HTML:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#rules-for-constructing-the-chapter-tree-from-a-text-track

(This split across two specs is a bit weird, but I&apos;m not sure in which spec should take it all.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107526</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-06-09 13:40:57 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #5)
&gt; 
&gt; A subchapter with the exact same extent seems odd, when would you
&gt; deliberately author a chapter hierarchy like that?

I&apos;ve seen book chapters with only one subchapter. I think it&apos;s possible and wouldn&apos;t want to forbid it.
 

&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-
&gt; element.html#rules-for-constructing-the-chapter-tree-from-a-text-track
&gt; 
&gt; (This split across two specs is a bit weird, but I&apos;m not sure in which spec
&gt; should take it all.)

If we can&apos;t find anyone else buying into the same hierarchical chapter structure to WebVTT, we might as well move it all into the WebVTT spec. It&apos;s what happened with VTTCue. But I am not sure about that either.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>