[Webkit-unassigned] [Bug 103420] HTMLMediaElement's .textTracks property does not reflect <track> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 27 10:41:51 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=103420


Eric Carlson <eric.carlson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |morrita at google.com




--- Comment #2 from Eric Carlson <eric.carlson at apple.com>  2012-11-27 10:44:04 PST ---
(In reply to comment #0)
> We fail the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrackList/getter.html.
> 
> The first test fails because we don't return the <track> element added to the <video> element as one of the text tracks. 

This happens because the <video> element is not in the document when the track was added, so HTMLTrackElement::insertedInto does not notify the HTMLMediaElement parent. Originally the parent element was always notified, but this was changed in http://trac.webkit.org/changeset/114351. I do not know why this change was made.

> Note that when we do, we should respect the first rule of the spec for ordering of text tracks which says that the first items of the list are <track> elements (see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#list-of-text-tracks).

We do this, see TextTrackList::item.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list