RE: Live WebVTT Validator update

Ah interesting. It comes up as valid if I run the validator in Chrome, but not IE. May be something to do with line conventions? 
Something for Anne to ponder if he wants to.

Remember, UA's are required to delete selectors it doesn’t grok because of the  forward-compatible parsing rules, and its syntactically legal. :)  http://www.w3.org/TR/CSS2/syndata.html#parsing-errors


Thanks for your help.

Sean.


-----Original Message-----
From: Simon Pieters [mailto:simonp@opera.com] 
Sent: 22 May 2013 14:24
To: Anne van Kesteren; public-texttracks@w3.org; Sean Hayes
Subject: Re: Live WebVTT Validator update

On Wed, 22 May 2013 15:08:40 +0200, Sean Hayes <Sean.Hayes@microsoft.com>
wrote:

> Yes, sorry if I wasn’t clear what I meant was, it's valid to put 
> content there if I add the note prefix.
> So is the following valid?

Ah. OK.

> WEBVTT { generated-from: TTML; }
>
>
> NOTE
> { /*============ cue style here ========= */ }
> c.style10 {
> backgroundColor: green;
> }
> ============ end of style ========= /*
>
>
> 00:00:00.000 --> 00:00:10.000
> <c><c.style10>The background is green.</c></c>
>
> NOTE
> end of file */
>
>
> I'm still getting:
> Not bad, keep at it! (0ms)
> 1.Line 5, column 1: Timestamp must start with a character in the range 
> 0-9.
> 2.Line 16, column 1: Timestamp must start with a character in the 
> range 0-9.
> 0 10
> <c><c.style10>The background is green.</c></c>

It should be valid if the blank lines are actually blank (a space makes a difference).

Nice polyglot hack, BTW (although the 'generated-from' property isn't valid CSS). :-)

--
Simon Pieters
Opera Software

Received on Wednesday, 22 May 2013 13:35:33 UTC