Skip to content
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

Parsing of 60:00.000 is wrong #345

Open
zcorpan opened this issue Nov 6, 2015 · 0 comments
Open

Parsing of 60:00.000 is wrong #345

zcorpan opened this issue Nov 6, 2015 · 0 comments

Comments

@zcorpan
Copy link
Member

zcorpan commented Nov 6, 2015

https://github.com/mozilla/vtt.js/blob/master/lib/vtt.js#L73..L75

The spec requires that 60:00.000 should return an error, not parse as [hours]:[minutes].[milliseconds], AFAICT.

https://w3c.github.io/webvtt/#collect-a-webvtt-timestamp step 12

12 If most significant units is hours, or [...], run these substeps:

  1. If [...] the character at position is not a U+003A COLON character (:), then return an error and abort these steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant