<?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>20063</bug_id>
          
          <creation_ts>2012-11-23 15:27:56 +0000</creation_ts>
          <short_desc>Unclear whether a &lt;track&gt; element&apos;s load event should fired if appended to a &lt;video&gt; with no &quot;src&quot; attribute</short_desc>
          <delta_ts>2016-04-21 15:39:49 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>whatwg-resolved</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>erika.doyle</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>travil</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>78702</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-23 15:27:56 +0000</bug_when>
    <thetext>It&apos;s unclear to me whether a &lt;track&gt; element that is a child of a &lt;video&gt; element, where the &lt;video&gt; element has no &quot;src&quot; attribute set, should ever fire its &quot;load&quot; event. In this situation, Opera 12.11 fires a &quot;load&quot; event but a WebKit nightly doesn&apos;t. For reference, see the final test in http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/addCue.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78706</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-23 15:52:50 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#start-the-track-processing-model

&quot;If the text track&apos;s track element does not have a media element as a parent, abort these steps.&quot;

It does not matter if the parent has a src attribute (or &lt;source&gt; children).

AFAICT, the spec is clear, and WebKit nightly has a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78707</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-23 15:55:47 +0000</bug_when>
    <thetext>(Oops, I didn&apos;t notice this was a HTML WG bug.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78708</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-23 16:01:19 +0000</bug_when>
    <thetext>Thanks for noticing this Simon, I think you&apos;re correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78793</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-11-26 01:54:15 +0000</bug_when>
    <thetext>There is no &quot;load&quot; event for media elements, only a &quot;loadstart&quot;, &quot;loadedmetadata&quot; or &quot;loadeddata&quot;. Neither does the track element have a &quot;load&quot; event - it only have a readiness state of &quot;loaded&quot;. Are you referring to the &quot;load&quot; event of the page?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78816</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-26 07:30:33 +0000</bug_when>
    <thetext>track has a load event.

&quot;If the file was successfully processed, fire a simple event named load at the track element.&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#sourcing-out-of-band-text-tracks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78822</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-11-26 11:54:36 +0000</bug_when>
    <thetext>Ah right! We should add an event list for track at the end, cause that totally slipped by me - somewhere near:

* http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#cue-events

* http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediaevents

As for the bug as recorded: I agree with comment #1. Antoine: you should register a bug on WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78836</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-26 16:19:50 +0000</bug_when>
    <thetext>Here&apos;s the WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=103258.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124405</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-12-10 10:58:08 +0000</bug_when>
    <thetext>(In reply to Silvia Pfeiffer from comment #6)
&gt; Ah right! We should add an event list for track at the end, cause that
&gt; totally slipped by me - somewhere near:
&gt; 
&gt; *
&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-
&gt; element.html#cue-events

No, there&apos;s a common section for events on all HTML elements.

&gt; *
&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-
&gt; element.html#mediaevents

Yes. https://github.com/whatwg/html/issues/392</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125993</commentid>
    <comment_count>9</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2016-04-21 15:39:49 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Fixed

The fix from WHATWG PR: https://github.com/whatwg/html/pull/419/files has been included into the W3C HTML spec. I believe this resolves the bug.

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>