W3C home > Mailing lists > Public > public-html@w3.org > September 2013

Re: TextTrackCue discussions

From: Simon Pieters <simonp@opera.com>
Date: Fri, 20 Sep 2013 10:10:34 +0200
To: "Silvia Pfeiffer" <silviapfeiffer1@gmail.com>, "Glenn Adams" <glenn@skynav.com>
Cc: Philip J├Ągenstedt <philipj@opera.com>, "Brendan Long" <self@brendanlong.com>, "HTML WG (public-html@w3.org)" <public-html@w3.org>, "Eric Carlson" <eric.carlson@apple.com>
Message-ID: <op.w3pabwi9idj3kv@simons-macbook-pro.local>
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  

Simon Pieters
Opera Software
Received 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