W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2012

Re: [whatwg] Comments about the track element

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Wed, 25 Jul 2012 18:24:26 +1000
Message-ID: <CAHp8n2nyt_buZY2nkvNNg3ftOB-5hxW5mAKZyhxJ-+GUfcB83A@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Cyril Concolato <cyril.concolato@telecom-paristech.fr>, whatwg@lists.whatwg.org
On Wed, Jul 25, 2012 at 6:00 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Wed, Jul 25, 2012 at 4:24 AM, Silvia Pfeiffer
> <silviapfeiffer1@gmail.com> wrote:
>> You can even use
>> getCueAsHTML() to simply hand the SVG to HTML for rendering.
> FWIW, that is not going to work. You need to parse the SVG using
> innerHTML or some such. getCueAsHTML() only gives a representation of
> a WebVTT tree which cannot contain SVG.

Thanks for catching this, you're correct.

But you can use cue.text and parse it as a SVG fragment.

Received on Wednesday, 25 July 2012 08:25:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC