[Bug 14260] <track> "text tracks ready" and HTMLMediaElement.readyState

https://www.w3.org/Bugs/Public/show_bug.cgi?id=14260

--- Comment #34 from Simon Pieters <simonp@opera.com> 2012-01-27 09:49:39 UTC ---
(In reply to comment #33)
> Simon's idea seems reasonable to me.
> 
> To recast it the way I would spec it:
> 
> "The text tracks of a media element created by a parser are ready if the media
> element has been popped off the stack of open elements and all its text tracks
> whose mode was not in the disabled state when the element was popped off the
> stack of open elements now have a text track readiness state of loaded or
> failed to load.
> 
> The text tracks of a media element not created by a parser are ready if the
> media element's text tracks whose mode was not in the disabled state when the
> element's resource selection algorithm
> last started now have a text track readiness state of loaded or failed to
> load."
> 
> How does that sound?

Ah, my suggestion didn't cover the non-parser case.

For the non-parser case, I think "when the resource selection algorithm last
started" should be after step 2 in the resource selection algorithm, since the
<track> children might not have been inserted yet at the time the algorithm
*started*.

I'm having slight trouble determining whether your text is equivalent to mine
(ignoring the non-parser case). Therefore I think I prefer if this was specced
by using flags on the elements and checks in the resource selection algorithm.
It also seems more likely to be implemented correctly if it's specified this
way.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 27 January 2012 09:49:51 UTC