Updating the UTF-8 and BOM character handling to stay in sync with the HTML spec.
authorSilvia Pfeiffer
Thu, 11 Apr 2013 16:01:15 +1000
changeset 89 27fcd202d32d
parent 88 1cf2d78bea1a
child 90 b8fb65b6861a
Updating the UTF-8 and BOM character handling to stay in sync with the HTML spec.
webvtt/webvtt.html
--- a/webvtt/webvtt.html	Mon Apr 08 16:01:29 2013 +1000
+++ b/webvtt/webvtt.html	Thu Apr 11 16:01:15 2013 +1000
@@ -452,7 +452,7 @@
    <li><dfn>script's document</dfn>
    <li><dfn>entry script</dfn>
    <li><dfn>MIME type</dfn>
-   <li><dfn>decoded as UTF-8, with error handling</dfn>
+   <li><dfn>UTF-8 decode</dfn>
    <li><dfn>case-sensitive</dfn>
    <li><dfn>Collect a sequence of characters</dfn>
    <li><dfn>ASCII digits</dfn>
@@ -1309,11 +1309,10 @@
 
   <p>A <dfn>WebVTT parser</dfn>, given an input byte stream and a
   <a>text track list of cues</a> <var title="">output</var>,
-  must <a title="decoded as UTF-8, with error handling">decode the
-  byte stream as UTF-8, with error handling</a>, and then must
-  parse the resulting string according to the <a>WebVTT parser
-  algorithm</a> below. This results in <a title="text track
-  cue">text track cues</a> being added to <var
+  must decode the byte stream using the <a title="UTF-8 decode">UTF-8
+  decode</a> algorithm, and then must parse the resulting string according
+  to the <a>WebVTT parser algorithm</a> below. This results in 
+  <a title="text track cue">text track cues</a> being added to <var
   title="">output</var>. <a href="#refsRFC3629">[RFC3629]</a></p>
 
   <p>A <a>WebVTT parser</a>, specifically its conversion and
@@ -1365,12 +1364,6 @@
    algorithms, be moved past the end of <var
    title="">input</var>.</p></li>
 
-   <li><p>If the character indicated by <var title="">position</var>
-   is a U+FEFF BYTE ORDER MARK (BOM) character, advance <var
-   title="">position</var> to the next character in <var
-   title="">input</var>.</p></li>
-
-
    <li>Let <var title="">line</var> be a string variable. Unset the
    <var title="">already collected line</var> flag.</li>
 
@@ -4550,7 +4543,7 @@
   <dd><cite><a href="http://www.whatwg.org/specs/web-apps/current-work/">HTML</a></cite>, I. Hickson. WHATWG.</dd>
 
   <dt id="refsHTML5">[HTML5]</dt>
-  <dd><cite><a href="http://www.w3.org/TR/html51/">HTML 5.1</a></cite>, R. Berjon, T. Leithead, E. Doyle Navara, E. O'Connor, S. Pfeiffer. W3C.</dd>
+  <dd><cite><a href="http://www.w3.org/html/wg/drafts/html/master/single-page.html">HTML 5.1</a></cite>, R. Berjon, T. Leithead, E. Doyle Navara, E. O'Connor, S. Pfeiffer. W3C.</dd>
 
   <dt id="refsRFC3629">[RFC3629]</dt>
   <dd><cite><a href="http://tools.ietf.org/html/rfc3629">UTF-8, a transformation format of ISO 10646</a></cite>, F. Yergeau. IETF.</dd>