Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 28, 2014
1 parent 22cb55b commit b891a81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 9 additions & 7 deletions Overview.html
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-encoding.svg" width="100"></a></p>
<h1>Encoding</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-27-march-2014">Living Standard — Last Updated 27 March 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-28-march-2014">Living Standard — Last Updated 28 March 2014</h2>

<dl>
<dt>This Version:
Expand Down Expand Up @@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-27-march-2014">Li
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license">CC0 1.0 Universal</a>.
To the extent possible under law, the editor has waived all copyright and
related or neighboring rights to this work. In addition, as of
27 March 2014, the editor has made this specification available
28 March 2014, the editor has made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand Down Expand Up @@ -826,8 +826,9 @@ <h2 id="specification-hooks"><span class="secno">6 </span>Specification hooks</h

<li><p>Let <var>BOM seen flag</var> be unset.

<li><p><a href="#concept-stream-read" title="concept-stream-read">Read</a> three bytes from <var>stream</var>
into <var>buffer</var>.
<li><p><a href="#concept-stream-read" title="concept-stream-read">Read</a> bytes from <var>stream</var>
into <var>buffer</var> until either <var>buffer</var> contains three bytes or
<a href="#concept-stream-read" title="concept-stream-read">read</a> returns <a href="#end-of-stream">end-of-stream</a>.

<li>
<p>For each of the rows in the table below, starting with the first
Expand All @@ -849,9 +850,10 @@ <h2 id="specification-hooks"><span class="secno">6 </span>Specification hooks</h
<li><p>If <var>BOM seen flag</var> is unset
<a href="#concept-stream-prepend" title="concept-stream-prepend">prepend</a> <var>buffer</var> to <var>stream</var>.

<li><p>Otherwise, if <var>BOM seen flag</var> is set and <var title="">encoding</var> is not
<a href="#utf-8">utf-8</a>, <a href="#concept-stream-prepend" title="concept-stream-prepend">prepend</a> the last byte of
<var>buffer</var> to <var>stream</var>.
<li><p>Otherwise, if <var>BOM seen flag</var> is set, <var title="">encoding</var> is not
<a href="#utf-8">utf-8</a>, and <var>buffer</var> contains three bytes,
<a href="#concept-stream-prepend" title="concept-stream-prepend">prepend</a> the last byte of <var>buffer</var> to
<var>stream</var>.

<li><p>Let <var>output</var> be a code point <a href="#concept-stream" title="concept-stream">stream</a>.

Expand Down
12 changes: 7 additions & 5 deletions Overview.src.html
Expand Up @@ -743,8 +743,9 @@ <h2>Specification hooks</h2>

<LI><p>Let <var>BOM seen flag</var> be unset.

<li><p><span title=concept-stream-read>Read</span> three bytes from <var>stream</var>
into <var>buffer</var>.
<li><p><span title=concept-stream-read>Read</span> bytes from <var>stream</var>
into <var>buffer</var> until either <var>buffer</var> contains three bytes or
<span title=concept-stream-read>read</span> returns <span>end-of-stream</span>.

<li>
<p>For each of the rows in the table below, starting with the first
Expand All @@ -766,9 +767,10 @@ <h2>Specification hooks</h2>
<li><p>If <var>BOM seen flag</var> is unset
<span title=concept-stream-prepend>prepend</span> <var>buffer</var> to <var>stream</var>.

<li><p>Otherwise, if <var>BOM seen flag</var> is set and <var title>encoding</var> is not
<span>utf-8</span>, <span title=concept-stream-prepend>prepend</span> the last byte of
<var>buffer</var> to <var>stream</var>.
<li><p>Otherwise, if <var>BOM seen flag</var> is set, <var title>encoding</var> is not
<span>utf-8</span>, and <var>buffer</var> contains three bytes,
<span title=concept-stream-prepend>prepend</span> the last byte of <var>buffer</var> to
<var>stream</var>.

<li><p>Let <var>output</var> be a code point <span title=concept-stream>stream</span>.

Expand Down

0 comments on commit b891a81

Please sign in to comment.