This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html Multipage: http://www.whatwg.org/C#parse-the-webvtt-settings Complete: http://www.whatwg.org/c#parse-the-webvtt-settings Comment: In step 6-7, only consume the character if it is a ':' Posted from: 2001:4c28:a030:30:72f3:95ff:fe00:4501 User agent: Opera/9.80 (X11; Linux x86_64; U; sv) Presto/2.9.168 Version/11.51
It seems it would be better from an error recovery PoV to not consume a character in step 7 unless it was a colon. Consider the input "X A:middle". Step 4 reads and consumes the "X". Step 6 sets 'setting' to "" (since " " != ":"). Step 7 consumes " ". Step 9 consumes the rest of the string (via "Otherwise..."). If steps 6-7 did not consume anything but a ':', it would instead be: Step 4 reads and consumes the "X". Step 6 sets 'setting' to "" (since " " != ":"). Step 9 consumes nothing Step 4 reads and consumes the "A" ...
I think maybe we should allow some whitespace here, so that you can write e.g. A : middle
Oops, yeah, the handling here is poor. I'll fix that. I disagree with comment 2; the idea is that each setting is a separate space-separated token.
Fixed in r6806; sorry, I typoed the bug number in the checkin comment.