Bugzilla – Bug 20063
Unclear whether a <track> element's load event should fired if appended to a <video> with no "src" attribute
Last modified: 2013-01-07 19:46:46 UTC
It's unclear to me whether a <track> element that is a child of a <video> element, where the <video> element has no "src" attribute set, should ever fire its "load" event. In this situation, Opera 12.11 fires a "load" event but a WebKit nightly doesn't. For reference, see the final test in http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/addCue.html.
"If the text track's track element does not have a media element as a parent, abort these steps."
It does not matter if the parent has a src attribute (or <source> children).
AFAICT, the spec is clear, and WebKit nightly has a bug.
(Oops, I didn't notice this was a HTML WG bug.)
Thanks for noticing this Simon, I think you're correct.
There is no "load" event for media elements, only a "loadstart", "loadedmetadata" or "loadeddata". Neither does the track element have a "load" event - it only have a readiness state of "loaded". Are you referring to the "load" event of the page?
track has a load event.
"If the file was successfully processed, fire a simple event named load at the track element."
Ah right! We should add an event list for track at the end, cause that totally slipped by me - somewhere near:
As for the bug as recorded: I agree with comment #1. Antoine: you should register a bug on WebKit.
Here's the WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=103258.