Re: TextTrackCue discussions

On Fri, 20 Sep 2013 09:32:41 +0200, Glenn Adams <glenn@skynav.com> wrote:

> But cue instanceof RawCue && ! cue instanceof TTMLCue would work.

The argument was that if authors expect `cue instanceof RawCue` to mean  
that the UA doesn't render it, we shouldn't break that expectation. It  
doesn't matter that there are other ways to check it. For instance, you  
could do cue.__proto__ == RawCue.prototype.

That said, your code doesn't actually work, for two reasons. (1) the `!`  
negates `cue`, not `cue instanceof TTMLCue`. (2) The UA might support  
other formats than TTMLCue that inherit from RawCue if TTMLCue sets such a  
precedent.

-- 
Simon Pieters
Opera Software

Received on Friday, 20 September 2013 08:11:04 UTC