<?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>18222</bug_id>
          
          <creation_ts>2012-07-18 17:44:13 +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-28 05:49:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Robin Berjon">robin</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70910</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:44:13 +0000</bug_when>
    <thetext>This was was cloned from bug 16076 as part of operation convergence.
Originally filed: 2012-02-22 15:17:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-02-22 15:17:05 +0000 
--------------------------------------------------------------------------------
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
================================================================================
 #1   Simon Pieters                                   2012-02-22 15:23:53 +0000 
--------------------------------------------------------------------------------
Or even better, remove all arguments. The properties are mutable anyway.
================================================================================
 #2   Simon Pieters                                   2012-05-08 10:44:11 +0000 
--------------------------------------------------------------------------------
After discussing this internally, we prefer if the constructor looked like this:

[Constructor(double startTime, double endTime, DOMString text)]
================================================================================
 #3   contributor@whatwg.org                          2012-06-05 22:01:45 +0000 
--------------------------------------------------------------------------------
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
================================================================================
 #4   Philip J                                        2012-06-07 12:21:26 +0000 
--------------------------------------------------------------------------------
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>73600</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2012-09-11 15:05:10 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: Had example mirror new interface.
Rationale: The example was indeed wrong. Interestingly enough, it seems that the example was also wrong against the old constructor (mixing up id and text), which demonstrates pretty well why the new one is better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73601</commentid>
    <comment_count>2</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2012-09-11 15:05:51 +0000</bug_when>
    <thetext>Forgot the commit: https://github.com/w3c/html/commit/afa7953e6d2a78a035e49b3a8459d6338ab342b0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73689</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-09-12 08:02:10 +0000</bug_when>
    <thetext>&apos;dog bark&apos; is supposed to be the id in the example.

http://html5.org/r/7331</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74754</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-09-28 05:49:17 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: applied patch
https://github.com/w3c/html/commit/5305a028c4ac34b9883234076df9de5779335cdb
Rationale: adopted resolution by WHATWG</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>