[webvtt] Change syntax for cue id to a setting?

zcorpan has just created a new issue for 
https://github.com/w3c/webvtt:

== Change syntax for cue id to a setting? ==
The parser is a bit annoying because the id is before the timings. I 
think it would be better if the id was a setting of the cue instead, 
as in:

```
00:00:00.000 --> 00:00:02.000 id:foo
Hello world
```

This would restrict the id to not contain spaces.

For the parser, it would mean that a new block can just look at the 
first line to determine what kind of block it it, instead of checking 
the second line first to see if it contains `-->`. For instance, the 
following is a valid cue with the id "NOTE", which is a bit weird (and
 similarly for other block types we introduce):

```
NOTE
00:00:00.000 --> 00:00:02.000
Hello world
```

If we were to change this, then legacy files would have their IDs 
dropped on the floor (as invalid blocks terminated by a line that 
contains `-->` which starts a new cue).

Is it too late to change this? What do people think?

See https://github.com/w3c/webvtt/issues/254

Received on Friday, 13 November 2015 08:44:02 UTC