From 599ebc766d7a919baa3c395507a4bbea6dea95e4 Mon Sep 17 00:00:00 2001 From: Silvia Pfeiffer Date: Mon, 8 Jun 2015 22:26:50 +1000 Subject: [PATCH] Disallow WebVTT metadata and cue settings zero length. They should at least be one character long. Closes https://www.w3.org/Bugs/Public/show_bug.cgi?id=28260 --- webvtt.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webvtt.html b/webvtt.html index cdf6070..f55d78e 100644 --- a/webvtt.html +++ b/webvtt.html @@ -1168,7 +1168,7 @@

WebVTT file structure

A WebVTT metadata header name and a WebVTT metadata header value each - consist of any sequence of zero or more characters other than U+000A LINE FEED (LF) characters + consist of any sequence of one or more characters other than U+000A LINE FEED (LF) characters and U+000D CARRIAGE RETURN (CR) characters except that the entire resulting string must not contain the substring "-->" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN).

@@ -1313,7 +1313,7 @@

WebVTT file structure

A WebVTT cue setting name and a WebVTT cue setting value each consist - of any sequence of zero or more characters other than U+000A LINE FEED (LF) characters and + of any sequence of one or more characters other than U+000A LINE FEED (LF) characters and - U+000D CARRIAGE RETURN (CR) characters except that the entire resulting string must not contain the substring "-->" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN).