Skip to content

Commit

Permalink
[] (0) Content-sniffing in the unknown type case used the wrong index…
Browse files Browse the repository at this point in the history
… to check the pattern. (Re: content type sniffing - unknown type) (credit: rk)

git-svn-id: http://svn.whatwg.org/webapps@1865 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 12, 2008
1 parent 8a79b5a commit 6426e1b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
24 changes: 12 additions & 12 deletions index
Expand Up @@ -25,7 +25,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 11 July
<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 12 July
2008</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -6026,7 +6026,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
the byte stream as follows:</p>

<dl class=switch>
<dt>If the <var title="">index<sub>stream</sub></var>th byte of the
<dt>If the <var title="">index<sub>pattern</sub></var>th byte of the
pattern is a normal hexadecimal byte and not a "<em>WS</em>" byte:

<dd>
Expand All @@ -6042,7 +6042,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
title="">index<sub>stream</sub></var> to the next byte in the byte
stream.</p>

<dt>Otherwise, if the <var title="">index<sub>stream</sub></var>th
<dt>Otherwise, if the <var title="">index<sub>pattern</sub></var>th
byte of the pattern is a "<em>WS</em>" byte:

<dd>
Expand Down Expand Up @@ -41404,8 +41404,8 @@ data:&nbsp;test</pre>
<p class=note>No information regarding why the connection was closed is
passed to the application in this version of this specification.

<p>The <code title=event-message><a href="#message0"><code>message</code>
event is fired when when data is received for a connection.</a></code>
<p>The <code title=event-message><a href="#message0">message</a></code>
event is fired when when data is received for a connection.

<p>Events that would be fired during script execution (e.g. between the
<code><a href="#websocket0">WebSocket</a></code> object being created
Expand Down Expand Up @@ -52890,13 +52890,13 @@ interface <dfn id=timeouthandler>TimeoutHandler</dfn> {
J&auml;genstedt, Philip Taylor, Philip TAYLOR<!-- a different one -->,
Rachid Finge, Rajas Moonka, Ralf Stoltze, Ralph Giles, Raphael
Champeimont, Rene Saarsoo, Richard Ishida, Rimantas Liubertas, Robert
Blaut, Robert O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam
Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer,
Simon Pieters, Stefan Haustein, Stephen Ma, Steve Faulkner, Steve Runyon,
Steven Garrity, Stewart Brodie, Stuart Parmenter, Sunava Dutta, Tantek
&Ccedil;elik, Terrence Wood, Thomas Broyer, Thomas O'Connor, Tim Altman,
Tim Johansson, Tyler Close, Vladimir Vuki&#x0107;evi&#x0107;, Wakaba,
Wayne Pollock, William Swanson, Yi-An Huang, and &Oslash;istein E.
Blaut, Robert O'Callahan, Robert Sayre, Roman Ivanov, Ryan King, S. Mike
Dierken, Sam Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
Pfeiffer, Simon Pieters, Stefan Haustein, Stephen Ma, Steve Faulkner,
Steve Runyon, Steven Garrity, Stewart Brodie, Stuart Parmenter, Sunava
Dutta, Tantek &Ccedil;elik, Terrence Wood, Thomas Broyer, Thomas O'Connor,
Tim Altman, Tim Johansson, Tyler Close, Vladimir Vuki&#x0107;evi&#x0107;,
Wakaba, Wayne Pollock, William Swanson, Yi-An Huang, and &Oslash;istein E.
Andersen, for their useful and substantial comments.

<p>Thanks also to everyone who has ever posted about HTML5 to their blogs,
Expand Down
20 changes: 10 additions & 10 deletions source
Expand Up @@ -4326,7 +4326,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..

<dl class="switch">

<dt>If the <var title="">index<sub>stream</sub></var>th byte
<dt>If the <var title="">index<sub>pattern</sub></var>th byte
of the pattern is a normal hexadecimal byte and not a "<em>WS</em>"
byte:</dt>

Expand All @@ -4348,7 +4348,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
</dd>

<dt>Otherwise, if the <var
title="">index<sub>stream</sub></var>th byte of the pattern
title="">index<sub>pattern</sub></var>th byte of the pattern
is a "<em>WS</em>" byte:</dt>

<dd>
Expand Down Expand Up @@ -38976,8 +38976,8 @@ data:&nbsp;test</pre>
closed is passed to the application in this version of this
specification.</p>

<p>The <code title="event-message"><code>message</code></dfn>
event is fired when when data is received for a connection.</p>
<p>The <code title="event-message">message</code> event is fired
when when data is received for a connection.</p>

<p>Events that would be fired during script execution (e.g. between
the <code>WebSocket</code> object being created &mdash; and thus the
Expand Down Expand Up @@ -48167,12 +48167,12 @@ interface <dfn>TimeoutHandler</dfn> {
TAYLOR<!-- a different one -->, Rachid Finge, Rajas Moonka, Ralf
Stoltze, Ralph Giles, Raphael Champeimont, Rene Saarsoo, Richard
Ishida, Rimantas Liubertas, Robert Blaut, Robert O'Callahan, Robert
Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby, Sam Weinig, Scott
Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon Pieters,
Stefan Haustein, Stephen Ma, Steve Faulkner, Steve Runyon, Steven
Garrity, Stewart Brodie, Stuart Parmenter, Sunava Dutta, Tantek
&Ccedil;elik, Terrence Wood, Thomas Broyer, Thomas O'Connor, Tim
Altman, Tim Johansson, Tyler Close, Vladimir
Sayre, Roman Ivanov, Ryan King, S. Mike Dierken, Sam Ruby, Sam
Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon
Pieters, Stefan Haustein, Stephen Ma, Steve Faulkner, Steve Runyon,
Steven Garrity, Stewart Brodie, Stuart Parmenter, Sunava Dutta,
Tantek &Ccedil;elik, Terrence Wood, Thomas Broyer, Thomas O'Connor,
Tim Altman, Tim Johansson, Tyler Close, Vladimir
Vuki&#x0107;evi&#x0107;, Wakaba, Wayne Pollock, William Swanson,
Yi-An Huang, and &Oslash;istein E. Andersen, for their useful and
substantial comments.</p>
Expand Down

0 comments on commit 6426e1b

Please sign in to comment.