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 SoftwareReceived on Friday, 20 September 2013 08:11:04 UTC
This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:05 UTC