- From: Marc 'Tafouk' <wwg@millie.uk.to>
- Date: Wed, 20 Jul 2011 02:06:03 +0200
On Mon, 27 Jun 2011 at 09:32 AM, Silvia Pfeiffer <silviapfeiffer1 at gmail.com> wrote: > I wanted to mention that Ronny's page at > http://leanbackplayer.com/other/webvtt.html has had some updates > recently and has now settled, with demos at > http://leanbackplayer.com/test/webvtt.html . > > Note that where his implementation differs from the spec, he has made > a note. There are only two such notes. I'd like to see these > addressed, too. > > Cheers, > Silvia. > Hello folks, I've been following the latest developments on the WebVTT specification and am making an attempt to write an out-of-browser parser, using Anna Cavender's proposed patches to WebKit. First, I filed a request on the bugtracker <http://www.w3.org/Bugs/Public/show_bug.cgi?id=13292> regarding the "end- of-file marker" that's mentioned in the current draft <http://www.whatwg.org/specs/web-apps/current-work/#webvtt-cue-text- parsing-rules> I have another question about self-closing tags in cue text. It seems they're not supported at all. The U+002F SOLIDUS character (/) is only handled in the WebVTT tag state. Test case 1-a): WEBVTT 00:00.000 --> 00:02.000 Initial <b/> test U+0062 (b) triggers "WebVTT start tag state"; U+002F is then handled as "Anything else" and is appended to result (tagname = "b/"). Test case 1-b): WEBVTT 00:00.000 --> 00:02.000 Initial <b /> test U+0062 (b) triggers "WebVTT start tag state"; U+0020 (space) triggers "WebVTT start tag annotation state"; U+002F is handled as "Anything else" and is appended to buffer (annotation = "/"). I am aware those may be moot atm because there is no void element AFAIK, and the current tags make no sense when immediately closed. I also found a slight issue when following the parser specs : there is no validation of the class attribute. Test case 2): WEBVTT 00:00.000 --> 00:02.000 Second <c.......... [my annotation]> test classes is a list of 10 empty strings. Regards, Marc.
Received on Tuesday, 19 July 2011 17:06:03 UTC