<?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>16076</bug_id>
          
          <creation_ts>2012-02-22 15:17:05 +0000</creation_ts>
          <short_desc>&lt;track&gt; This constructor is horrible. Too many arguments. Also, settings as a string? Ugh. Can we make it have one argument that takes an object with id, startTime, endTime, text, pauseOnExit and all the settings as properties instead? e.g. new TextTrackC</short_desc>
          <delta_ts>2012-09-11 23:40:32 +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/#texttrackcue</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>philipj</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64424</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-02-22 15:17:05 +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#texttrackcue
Complete: http://www.whatwg.org/c#texttrackcue

Comment:
&lt;track&gt; This constructor is horrible. Too many arguments. Also, settings as a
string? Ugh. Can we make it have one argument that takes an object with id,
startTime, endTime, text, pauseOnExit and all the settings as properties
instead? e.g. new TextTrackCue({startTime:0, endTime:1, vertical:&quot;lr&quot;,
text:&quot;LOL&quot;})

Posted from: 94.234.170.44 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.2; U; en) Presto/2.10.229 Version/11.61</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64425</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-02-22 15:23:53 +0000</bug_when>
    <thetext>Or even better, remove all arguments. The properties are mutable anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67472</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-05-08 10:44:11 +0000</bug_when>
    <thetext>After discussing this internally, we prefer if the constructor looked like this:

[Constructor(double startTime, double endTime, DOMString text)]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68747</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-05 22:01:45 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7120.
Check-in comment: Simplify the TextTrackCue constructor now that the object&apos;s properties are all mutable.
http://html5.org/tools/web-apps-tracker?from=7119&amp;to=7120</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68797</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-06-07 12:21:26 +0000</bug_when>
    <thetext>Reopening since you forgot to change one of the examples:

// add sounds we care about
sounds.addCue(new TextTrackCue(&apos;dog bark&apos;, 12.783, 13.612, &apos;&apos;, &apos;&apos;, &apos;&apos;, true));
sounds.addCue(new TextTrackCue(&apos;kitten mew&apos;, 13.612, 15.091, &apos;&apos;, &apos;&apos;, &apos;&apos;, true));</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70911</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:44:16 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18222 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73648</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-09-11 23:40:32 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7331.
Check-in comment: Fix an example to use the new API.
http://html5.org/tools/web-apps-tracker?from=7330&amp;to=7331</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>