Skip to content

Commit

Permalink
[] (0) how to handle comments (bogus or otherwise) when scanning for …
Browse files Browse the repository at this point in the history
…a charset declaration

git-svn-id: http://svn.whatwg.org/webapps@597 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 16, 2007
1 parent fdd4faa commit 09066da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
12 changes: 10 additions & 2 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -28994,7 +28994,12 @@ function receiver(e) {
'<!--')

<dd>
<p class=big-issue>skip comment</p>
<p>Advance the <var title="">position</var> pointer so that it points
at the first 0x3E byte which is preceeded by two 0x2D bytes (i.e. at
the end of an ASCII '-->' sequence) and comes after the 0x3C byte
that was found. (The two 0x2D bytes might be the same as the those
in the '&lt;!--' sequence.) If no such byte is found before the <var
title="">n</var>th byte, abort this "two step" algorithm.</p>

<dt>A sequence of bytes starting with: 0x3C, 0x4D or 0x6D, 0xe5 or
0x65, 0x54 or 0x74, 0x41 or 0x61, and finally one of 0x09, 0x0A,
Expand Down Expand Up @@ -29022,7 +29027,10 @@ function receiver(e) {
<dt>A sequence of bytes starting with: 0x3C 0x3F (ASCII '&lt;?')

<dd>
<p class=big-issue>skip bogus comment</p>
<p>Advance the <var title="">position</var> pointer so that it points
at the first 0x3E byte that comes after the 0x3C byte that was
found. If no such byte is found before the <var title="">n</var>th
byte, abort this "two step" algorithm.</p>
</dl>

<li>Move <var title="">position</var> so it points at the next byte in
Expand Down
13 changes: 11 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -26723,7 +26723,13 @@ function receiver(e) {
<dt>A sequence of bytes starting with: 0x3C 0x21 0x2D 0x2D (ASCII '&lt;!--')</dt>
<dd>

<p class="big-issue">skip comment</p>
<p>Advance the <var title="">position</var> pointer so that it
points at the first 0x3E byte which is preceeded by two 0x2D
bytes (i.e. at the end of an ASCII '-->' sequence) and comes
after the 0x3C byte that was found. (The two 0x2D bytes might
be the same as the those in the '&lt;!--' sequence.) If no
such byte is found before the <var title="">n</var>th byte,
abort this "two step" algorithm.</p>

</dd>

Expand Down Expand Up @@ -26751,7 +26757,10 @@ function receiver(e) {
<dt>A sequence of bytes starting with: 0x3C 0x3F (ASCII '&lt;?')</dt>
<dd>

<p class="big-issue">skip bogus comment</p>
<p>Advance the <var title="">position</var> pointer so that it
points at the first 0x3E byte that comes after the 0x3C byte
that was found. If no such byte is found before the <var
title="">n</var>th byte, abort this "two step" algorithm.</p>

</dd>

Expand Down

0 comments on commit 09066da

Please sign in to comment.