Re: [whatwg] JavaScript function for closing tags

2017-10-17 Thread Silvia Pfeiffer
We could specify that WebVTT cues of type metadata should contain valid JSON - that would make sense to me. Cues of type captions or subtitles stupid get parsed dune by the addCue() function of the texttrack API - but not all browsers implement this yet. Would be worth registering bugs on

Re: [whatwg] JavaScript function for closing tags

2017-10-17 Thread Michael A. Peters
On 10/16/2017 10:08 AM, Roger Hågensen wrote: On 2017-10-14 10:13, Michael A. Peters wrote: I use TextTrack API but it's documention does not specify that it closes open tags within a cue, in fact I'm fairly certain it doesn't because some people use it for json and other related none tag

Re: [whatwg] JavaScript function for closing tags

2017-10-16 Thread Roger Hågensen
On 2017-10-14 10:13, Michael A. Peters wrote: I use TextTrack API but it's documention does not specify that it closes open tags within a cue, in fact I'm fairly certain it doesn't because some people use it for json and other related none tag related content. Looking at

Re: [whatwg] JavaScript function for closing tags

2017-10-14 Thread Michael A. Peters
I use TextTrack API but it's documention does not specify that it closes open tags within a cue, in fact I'm fairly certain it doesn't because some people use it for json and other related none tag related content. Some errors using the tracks in XML were solved by the innerHTML trick where I

Re: [whatwg] JavaScript function for closing tags

2017-10-14 Thread Silvia Pfeiffer
Hi Michael, It seems to me that the TextTrack API is made for this use case. Why does it not work for you? Cheers, Silvia. On Sat, Oct 14, 2017 at 4:36 PM, Michael A. Peters wrote: > There does not seem to be a JavaScript API for closing open tags. > > This is

[whatwg] JavaScript function for closing tags

2017-10-14 Thread Michael A. Peters
There does not seem to be a JavaScript API for closing open tags. This is problematic when dealing with WebVTT which does not require tags be closed. Where it is the biggest problem is when the document is being served as XML+XHTML I tried the following hack which seemed to be working: