-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser drops identifier on the floor #310
Comments
Before to set the cue identifier to Could you help me to verify the following steps? Take this file as example, In step 13-1 in WebVTT parser algorithm, we would go to read the the line
Since
In step 11-4-1-4, run Collect WebVTT cue timings and settings, but it would fails because the line doesn't have any timestamp.
After above steps, we parse identifier fail, so we would get next line to However,
We would go here, and break out the loop. At that time, the
Therefore, go back to step 13-1 in WebVTT parser algorithm. Since we don't get the valid value for |
I think your analysis is correct except for this:
In particular consider steps 11-3 and 11-4-1-2 of collect a WebVTT block in the first iteration. previous position will point to the start of the line |
@alastor0325 noticed that the spec's parser doesn't set the cue identifier to anything but the empty string. Oops. This regressed in #246
Fix is to set the cue identifier to buffer on cue creation in the parser.
The text was updated successfully, but these errors were encountered: