This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
When updating the active text track cues, the cuechange event is fired before setting (and unsetting) the active flag on the cues before firing the cuechange event. Because of this, activeCues() may not return an accurate set of cues at the moment that the cuechange event is received. Specifically, I propose that steps 15 and 16 be swapped under "When the current playback position of a media element changes ..." so that the active flag is first set and then the cuechange event is fired.
The event isn't fired in step 15. It's *queued* in step 15. It isn't fired until the event queue spins, which happens after the whole algorithm has finished.
Ah, thanks for the clarification.