<?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>18181</bug_id>
          
          <creation_ts>2012-07-18 17:34:54 +0000</creation_ts>
          <short_desc>&lt;track&gt; The cues don&apos;t seem to be cleared when setting a new src=&quot;&quot;.</short_desc>
          <delta_ts>2013-06-06 03:18:26 +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/#sourcing-out-of-band-text-tracks</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>CR</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <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>70828</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:34:54 +0000</bug_when>
    <thetext>This was was cloned from bug 17059 as part of operation convergence.
Originally filed: 2012-05-15 11:36:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-05-15 11:36:53 +0000 
--------------------------------------------------------------------------------
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#sourcing-out-of-band-text-tracks
Complete: http://www.whatwg.org/c#sourcing-out-of-band-text-tracks

Comment:
The cues don&apos;t seem to be cleared when setting a new src=&quot;&quot;.

Posted from: 88.131.66.80 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.62
================================================================================
 #1   Philip J                                        2012-05-23 08:24:50 +0000 
--------------------------------------------------------------------------------
What we&apos;ve implemented is to clear the cues synchronously when setting a new source, but to start loading asynchronously. Unless this is silly, this is what we&apos;d like to have spec&apos;d.
================================================================================
 #2   Simon Pieters                                   2012-05-23 09:47:37 +0000 
--------------------------------------------------------------------------------
Please spec this as prose outside the loading algorithm, saying something like

&quot;When the src attribute is set, changed, or removed, all cues in the track element&apos;s TextTrack&apos;s TextTrackCueList object must be removed.&quot;

(Doing it in the loading algorithm at the monitoring step means that if you change src, add a cue, and change src again, that cue won&apos;t be dropped, because the algorithm has moved on to the waiting step, which doesn&apos;t match my expectation or what Philip implemented.)
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88793</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-06-06 03:18:26 +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:
https://github.com/w3c/html/commit/4fa62833aaf76632345c917268f0c47aa82c5bcf

Rationale: Adopted WHATWG resolution

Now reads:
+  &lt;p&gt;Whenever a &lt;code&gt;track&lt;/code&gt; element has its &lt;code
+  title=&quot;attr-track-src&quot;&gt;src&lt;/code&gt; attribute set, changed, or
+  removed, the user agent must synchronously empty the element&apos;s
+  &lt;span&gt;text track&lt;/span&gt;&apos;s &lt;span&gt;text track list of cues&lt;/span&gt;.
+  (This also causes the algorithm above to stop adding cues from the
+  resource being obtained using the previously given URL, if any.)&lt;/p&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>