Skip to content

Commit

Permalink
[giow] (0) disallow trailing garbage in timestamps
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10770

git-svn-id: http://svn.whatwg.org/webapps@5559 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 29, 2010
1 parent ad70af4 commit 9ea353c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
7 changes: 4 additions & 3 deletions complete.html
Expand Up @@ -29579,9 +29579,10 @@ <h6 id=parsing-0><span class=secno>4.8.10.11.2 </span>Parsing</h6>

<li>

<p>If that algorithm does not fail, then create a
<a href=#websrt-timestamp-object>WebSRT Timestamp Object</a> whose value is the
collected time, then append it to <var title="">current</var>.</p>
<p>If that algorithm does not fail, and if <var title="">position</var> now points at the end of <var title="">input</var> (i.e. there are no trailing characters
after the timestamp), then create a <a href=#websrt-timestamp-object>WebSRT Timestamp
Object</a> whose value is the collected time, then append
it to <var title="">current</var>.</p>

<p>Otherwise, ignore the token.</p>

Expand Down
7 changes: 4 additions & 3 deletions index
Expand Up @@ -29559,9 +29559,10 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {

<li>

<p>If that algorithm does not fail, then create a
<a href=#websrt-timestamp-object>WebSRT Timestamp Object</a> whose value is the
collected time, then append it to <var title="">current</var>.</p>
<p>If that algorithm does not fail, and if <var title="">position</var> now points at the end of <var title="">input</var> (i.e. there are no trailing characters
after the timestamp), then create a <a href=#websrt-timestamp-object>WebSRT Timestamp
Object</a> whose value is the collected time, then append
it to <var title="">current</var>.</p>

<p>Otherwise, ignore the token.</p>

Expand Down
10 changes: 6 additions & 4 deletions source
Expand Up @@ -32335,10 +32335,12 @@ interface <dfn>TimedTrackCue</dfn> {

<li>

<p>If that algorithm does not fail, then create a
<span>WebSRT Timestamp Object</span> whose value is the
collected time, then append it to <var
title="">current</var>.</p>
<p>If that algorithm does not fail, and if <var
title="">position</var> now points at the end of <var
title="">input</var> (i.e. there are no trailing characters
after the timestamp), then create a <span>WebSRT Timestamp
Object</span> whose value is the collected time, then append
it to <var title="">current</var>.</p>

<p>Otherwise, ignore the token.</p>

Expand Down

0 comments on commit 9ea353c

Please sign in to comment.