[whatwg] Comments about the track element
silviapfeiffer1 at gmail.com
Wed Jul 25 01:24:26 PDT 2012
On Wed, Jul 25, 2012 at 6:00 PM, Anne van Kesteren <annevk at annevk.nl> wrote:
> On Wed, Jul 25, 2012 at 4:24 AM, Silvia Pfeiffer
> <silviapfeiffer1 at 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.
More information about the whatwg