Skip to content

Commit

Permalink
Disallow WebVTT metadata and cue settings zero length.
Browse files Browse the repository at this point in the history
They should at least be one character long.

Closes https://www.w3.org/Bugs/Public/show_bug.cgi?id=28260
  • Loading branch information
silviapfeiffer committed Jun 8, 2015
1 parent 2f0a190 commit 599ebc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webvtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ <h3>WebVTT file structure</h3>
</ol>

<p>A <dfn>WebVTT metadata header name</dfn> and a <dfn>WebVTT metadata header value</dfn> 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 "<code>--></code>" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E
GREATER-THAN SIGN).</p>
Expand Down Expand Up @@ -1313,7 +1313,7 @@ <h3>WebVTT file structure</h3>
</ol>

<p>A <dfn>WebVTT cue setting name</dfn> and a <dfn>WebVTT cue setting value</dfn> 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 "<code>--></code>" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN
SIGN).</p>
Expand Down

0 comments on commit 599ebc7

Please sign in to comment.