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

Re: TextTrackCue discussions

From: Brendan Long <self@brendanlong.com>
Date: Thu, 15 Aug 2013 11:22:19 -0600
Message-ID: <520D0E4B.6080907@brendanlong.com>
To: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
CC: HTML WG LIST <public-html@w3.org>
On 08/08/2013 11:00 PM, Silvia Pfeiffer wrote:
> If we put getCueAsHTML() on TextTrackCue object, a JS developer would
> never be able to tell which formats will be parse-able by
> getCueAsHTML(), since that information would be hidden in the
> algorithm - and it could be multiple formats.
I'm arguing that the average JS developer doesn't need to know what the
original format was, or how that was converted to HTML, they just care
about the HTML representation.

For example:

  * If I wanted to present the cue in a custom way, I would get the HTML
    representation, then insert it into the DOM.
  * If I wanted to look at cues to see what their content is, I would
    get the HTML representation, get the text content out of that, then
    run it through my algorithm.
  * If I wanted to alter cues, I'd get the HTML representation, do my
    replacement to that, then insert it into the DOM (or possibly push
    it back into the text track).
Received on Thursday, 15 August 2013 17:22:53 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:34 UTC