Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Issue 15651003: [WebVTT] HTML5 "space" characters around "-->" are not required (Closed)

Created:
7 years, 7 months ago by caitp (gmail)
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, vcarbune.chromium, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[WebVTT] HTML5 "space" characters around "-->" are not required Make whitespace around cue-timings separator optional, in order to comply with WebVTT draft: From http://dev.w3.org/html5/webvtt/#dfn-collect-webvtt-cue-timings-and-settings ``` 4. Collect a WebVTT timestamp. If that algorithm fails, then abort these steps and return failure. Otherwise, let cue's text track cue start time be the collected time. 5. Skip whitespace. 6. If the character at position is not a U+002D HYPHEN-MINUS character (-) then abort these steps and return failure. Otherwise, move position forwards one character. 7. If the character at position is not a U+002D HYPHEN-MINUS character (-) then abort these steps and return failure. Otherwise, move position forwards one character. 8. If the character at position is not a U+003E GREATER-THAN SIGN character (>) then abort these steps and return failure. Otherwise, move position forwards one character. 9. Skip whitespace. 10. Collect a WebVTT timestamp. If that algorithm fails, then abort these steps and return failure. Otherwise, let cue's text track cue end time be the collected time. ``` "Skip whitespace" refers to terms defined in the HTML standard. http://www.w3.org/html/wg/drafts/html/master/single-page.html#skip-whitespace ``` The step skip whitespace means that the user agent must collect a sequence of characters that are space characters. The step skip White_Space characters means that the user agent must collect a sequence of characters that are White_Space characters. In both cases, the collected characters are not used. ``` The step "collect a sequence of characters" does not forbid the sequence from being empty, and as such, the whitespace is in fact optional. Additionally, the skip whitespace step is not limited to skipping SPACE U+0020 and TAB U+0009 characters, but also includes FORM FEED, LINE FEED and CARRIAGE RETURN (Although, in practice, CR/LF should not be encountered in this section). This patch removes the expected '\t' || ' ', a rule which seems to have been inspired by the "SYNTAX" section of the WebVTT spec, which I am told by editors is meant to be ignored by parser implementors, as silly as that is. https://code.google.com/p/chromium/issues/detail?id=242158 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151250

Patch Set 1 #

Messages

Total messages: 10 (0 generated)
eseidel
lgtm
7 years, 7 months ago (2013-05-24 08:39:59 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitpotter88@gmail.com/15651003/1
7 years, 7 months ago (2013-05-24 08:40:16 UTC) #2
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=6448
7 years, 7 months ago (2013-05-24 12:27:37 UTC) #3
caitp (gmail)
Retry on Monday? I've heard that these broken/flaky tests should be fixed by then On ...
7 years, 7 months ago (2013-05-26 22:57:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitpotter88@gmail.com/15651003/1
7 years, 7 months ago (2013-05-28 02:59:57 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=6987
7 years, 7 months ago (2013-05-28 05:08:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitpotter88@gmail.com/15651003/1
7 years, 6 months ago (2013-05-28 07:57:34 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=7074
7 years, 6 months ago (2013-05-28 10:38:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitpotter88@gmail.com/15651003/1
7 years, 6 months ago (2013-05-28 11:35:10 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-05-28 12:16:29 UTC) #10
Message was sent while issue was closed.
Change committed as 151250

Powered by Google App Engine
This is Rietveld 408576698