<?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>17319</bug_id>
          
          <creation_ts>2012-06-05 09:33:11 +0000</creation_ts>
          <short_desc>&lt;track&gt; Sort cues by insertion order, not creation order</short_desc>
          <delta_ts>2012-09-12 07:20:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#text-track-model</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68624</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-05 09:33:11 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#text-track-model
Complete: http://www.whatwg.org/c#text-track-model

Comment:
&lt;track&gt; Sort cues by insertion order, not creation order

Posted from: 85.227.152.202 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.3; U; en) Presto/2.10.229 Version/11.64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68625</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-05 09:34:38 +0000</bug_when>
    <thetext>&quot;any cues with identical end times must be sorted in the order they were created (so e.g. for cues from a WebVTT file, that would be the order in which the cues were listed in the file)&quot;

Order they were created seems wrong for DOM-created cues. It should be in the order they were added with addCue()

var c1 = new TextTrackCue(...); var c2 = new TextTrackCue(...); cues.addCue(c2); cues.addCue(c1); // order should be c2, c1
cues.removeCue(c2); cues.addCue(c2); // order should now be c1, c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68643</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-05 11:24:09 +0000</bug_when>
    <thetext>Insertion order should be for parsed cues as well, of course; in case a parsed cue is removed and readded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70901</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:43:10 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18217 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73678</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-12 07:20:06 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7339.
Check-in comment: Fix the order of cues to handle dynamic changes better.
http://html5.org/tools/web-apps-tracker?from=7338&amp;to=7339</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>