[html5] r7848 - [e] (0) Be clearer about how preparsing handles running out of bytes. Fixing htt [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Apr 22 17:05:06 PDT 2013
Author: ianh
Date: 2013-04-22 17:05:05 -0700 (Mon, 22 Apr 2013)
New Revision: 7848
Modified:
complete.html
index
source
Log:
[e] (0) Be clearer about how preparsing handles running out of bytes.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21312
Affected topics: HTML Syntax and Parsing
Modified: complete.html
===================================================================
--- complete.html 2013-04-22 23:51:48 UTC (rev 7847)
+++ complete.html 2013-04-23 00:05:05 UTC (rev 7848)
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 22 April 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 23 April 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -84426,14 +84426,16 @@
<hr><p>When an algorithm requires a user agent to <dfn id=prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its encoding</a> algorithm unsuccessfully.</p>
<ol><li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte
- stream to determine its encoding</a> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>
Modified: index
===================================================================
--- index 2013-04-22 23:51:48 UTC (rev 7847)
+++ index 2013-04-23 00:05:05 UTC (rev 7848)
@@ -248,7 +248,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 22 April 2013</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 23 April 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -84426,14 +84426,16 @@
<hr><p>When an algorithm requires a user agent to <dfn id=prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte stream to determine its encoding</a> algorithm unsuccessfully.</p>
<ol><li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <a href=#prescan-a-byte-stream-to-determine-its-encoding>prescan a byte
- stream to determine its encoding</a> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>
Modified: source
===================================================================
--- source 2013-04-22 23:51:48 UTC (rev 7847)
+++ source 2013-04-23 00:05:05 UTC (rev 7848)
@@ -94398,16 +94398,19 @@
<p>When an algorithm requires a user agent to <dfn>prescan a byte stream to determine its
encoding</dfn>, given some defined <var title="">end condition</var>, then it must run the
- following steps. These steps either abort unsuccessfully or return a character encoding.</p>
+ following steps. These steps either abort unsuccessfully or return a character encoding. If at any
+ point during these steps (including during instances of the <span>get an attribute</span>
+ algorithm invoked by this one) the user agent either runs out of bytes (meaning the <var
+ title="">position</var> pointer created in the first step below goes beyond the end of the byte
+ stream obtained so far) or reaches its <var title="">end condition</var>, then abort the
+ <span>prescan a byte stream to determine its encoding</span> algorithm unsuccessfully.</p>
<ol>
<li>
<p>Let <var title="">position</var> be a pointer to a byte in the input byte stream, initially
- pointing at the first byte. If at any point during these steps the user agent either runs out of
- bytes or reaches its <var title="">end condition</var>, then abort the <span>prescan a byte
- stream to determine its encoding</span> algorithm unsuccessfully.</p>
+ pointing at the first byte.</p>
</li>
More information about the Commit-Watchers
mailing list