<?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>26459</bug_id>
          
          <creation_ts>2014-07-30 00:00:46 +0000</creation_ts>
          <short_desc>Should changing &lt;track language&gt; and company affect the TextTrack object?</short_desc>
          <delta_ts>2014-09-09 21:15:41 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109535</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-30 00:00:46 +0000</bug_when>
    <thetext>Should changing &lt;track language&gt; and company affect the TextTrack object?

The spec currently says yes. There are no known use cases as far as I&apos;m aware. It increases complexity a bit. On the other hand, cases where we have mutable attributes where mutating the attribute has no effect on the underlying data have resulted in some author confusion before (notably &lt;script src&gt;). If we changed this we&apos;d also have to make the TextTrack object only get created on demand, since otherwise you could never set the language since the immutable TextTrack would be created before you had a chance to set the element&apos;s attributes. This would also break the way things work today when you move a &lt;track&gt; between &lt;video&gt; elements.

I think we&apos;re probably better off not changing any of this at this late stage.

This bug was split from bug 24563.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109557</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-07-30 09:02:36 +0000</bug_when>
    <thetext>Yeah, the problem here is that there&apos;s no obvious time to create an immutable TextTrack object. On first access by a script won&apos;t be great, because then just printing it for debugging will have side effects...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109603</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-30 20:52:13 +0000</bug_when>
    <thetext>Yeah, I think if we change this the only way to do it really would be to create the TextTrack object during media resource loading (or when the &lt;track&gt; is inserted, whichever happens last), and then create a new TextTrack if it&apos;s reused.

I&apos;ve no idea if that would be Web-compatible. It&apos;s probably not worth finding out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109614</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-07-30 22:06:58 +0000</bug_when>
    <thetext>Do you mean so that the out-of-band tracks become available at the same time as in-band tracks? That doesn&apos;t sound too bad.

There&apos;s a Blink use counter for any VTTCue usage which gives some idea of risk:
http://www.chromestatus.com/metrics/feature/timeline/popularity/409

Any thoughts, Silvia or Simon?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109624</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-07-30 23:27:25 +0000</bug_when>
    <thetext>FWIW: I don&apos;t think it makes sense to change kind, srclang, label, id or default of a track.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109911</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-05 05:44:35 +0000</bug_when>
    <thetext>I don&apos;t like the idea of making &lt;track&gt;&apos;s TextTrack not be available immediately. It seems like it makes it harder for authors to do things with it in script if you have to wait for the video&apos;s loadedmetadata event. For instance, a script might want to change the .mode of the TextTracks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111302</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-09 21:15:41 +0000</bug_when>
    <thetext>Given the discussion here I think this should be left as-is. I&apos;m marking this WONTFIX. Please reopen if you think that&apos;s the wrong decision.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>