Skip to content

Commit

Permalink
Attempt to please mathematicians.
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Apr 13, 2015
1 parent a8e07c8 commit 6bfbf2c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
26 changes: 14 additions & 12 deletions Overview.html
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-8-april-2015">Living Standard — Last Updated 8 April 2015</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-13-april-2015">Living Standard — Last Updated 13 April 2015</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -145,17 +145,18 @@ <h2 id="infrastructure"><span class="secno">2 </span>Infrastructure</h2>
<a href="#refsURL">[URL]</a>

<p>A <a class="external" href="https://encoding.spec.whatwg.org/#byte">byte</a> sequence with bytes in the range 0x00 to
0x7F is represented as a <a class="external" href="https://encoding.spec.whatwg.org/#utf-8">utf-8</a> encoded
0x7F, inclusive, is represented as a <a class="external" href="https://encoding.spec.whatwg.org/#utf-8">utf-8</a> encoded
<a class="external" href="https://encoding.spec.whatwg.org/#string">string</a> with code points in the range U+0000 to
U+007F. To avoid confusion with an actual string backticks are used.
U+007F, inclusive. To avoid confusion with an actual string, backticks are used.

<p class="example">"<code title="">true</code>" is a
<a class="external" href="https://encoding.spec.whatwg.org/#string">string</a>, while `<code title="">true</code>` is a
byte sequence.

<p>Comparing two byte sequences in a <dfn id="byte-case-insensitive">byte case-insensitive</dfn> manner means
comparing them exactly, byte for byte, except that the bytes in the range 0x41 to 0x5A are
considered to also match their corresponding byte in the range 0x61 to 0x7A.
comparing them exactly, byte for byte, except that the bytes in the range 0x41 to 0x5A,
inclusive, are considered to also match their corresponding byte in the range 0x61 to
0x7A, inclusive.

<p>A <dfn id="case-insensitive-byte-sequence">case-insensitive byte sequence</dfn> is a byte sequence that when compared to
another byte sequence does so in a <a href="#byte-case-insensitive">byte case-insensitive</a> manner.
Expand All @@ -165,10 +166,10 @@ <h2 id="infrastructure"><span class="secno">2 </span>Infrastructure</h2>
`<code title="">Content-Type</code>` and `<code title="">content-TYPE</code>` are equal.

<p>To <dfn id="byte-lowercase">byte lowercase</dfn> a byte sequence, increase each byte it contains, in the
range 0x41 to 0x5A, by 0x20.
range 0x41 to 0x5A, inclusive, by 0x20.

<p>To <dfn id="byte-uppercase">byte uppercase</dfn> a byte sequence, subtract each byte it contains, in the
range 0x61 to 0x7A, by 0x20.
range 0x61 to 0x7A, inclusive, by 0x20.

<hr>

Expand Down Expand Up @@ -2315,8 +2316,8 @@ <h3 id="cors-preflight-fetch"><span class="secno">4.5 </span>CORS preflight fetc
<li>
<p>If a <a href="#concept-cors-check" title="concept-cors-check">CORS check</a> for <var title="">request</var>
and <var title="">response</var> returns success and <var title="">response</var>'s
<a href="#concept-response-status" title="concept-response-status">status</a> is in the range 200 to 299, run these
substeps:
<a href="#concept-response-status" title="concept-response-status">status</a> is in the range <code title="">200</code>
to <code title="">299</code>, inclusive, run these substeps:
<!-- CORS said 200 here but nobody implemented that:
https://lists.w3.org/Archives/Public/public-webappsec/2013Feb/0078.html -->

Expand Down Expand Up @@ -3435,7 +3436,8 @@ <h3 id="response-class"><span class="secno">5.4 </span>Response class</h3>

<ol>
<li><p>If <var title="">init</var>'s <code title="">status</code> member is not in the range
200 to 599, <a class="external" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code title="">RangeError</code>.
<code title="">200</code> to <code title="">599</code>, inclusive,
<a class="external" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code title="">RangeError</code>.

<li><p>If <var title="">init</var>'s <code title="">statusText</code> member does not match the
<a class="external" href="http://tools.ietf.org/html/rfc2616/#section-6.1.1">Reason-Phrase</a> token production,
Expand Down Expand Up @@ -3564,8 +3566,8 @@ <h3 id="response-class"><span class="secno">5.4 </span>Response class</h3>

<p>The <dfn id="dom-response-ok" title="dom-Response-ok"><code>ok</code></dfn> attribute's getter must
return true if <a href="#concept-response-response" title="concept-Response-response">response</a>'s
<a href="#concept-response-status" title="concept-response-status">status</a> is in the range 200 to 299, and false
otherwise.
<a href="#concept-response-status" title="concept-response-status">status</a> is in the range <code title="">200</code>
to <code title="">299</code>, inclusive, and false otherwise.

<p>The <dfn id="dom-response-statustext" title="dom-Response-statusText"><code>statusText</code></dfn> attribute's getter
must return <a href="#concept-response-response" title="concept-Response-response">response</a>'s
Expand Down
24 changes: 13 additions & 11 deletions Overview.src.html
Expand Up @@ -95,17 +95,18 @@ <h2>Infrastructure</h2>
<span data-anolis-ref>URL</span>

<p>A <span data-anolis-spec=encoding>byte</span> sequence with bytes in the range 0x00 to
0x7F is represented as a <span data-anolis-spec=encoding>utf-8</span> encoded
0x7F, inclusive, is represented as a <span data-anolis-spec=encoding>utf-8</span> encoded
<span data-anolis-spec=encoding>string</span> with code points in the range U+0000 to
U+007F. To avoid confusion with an actual string backticks are used.
U+007F, inclusive. To avoid confusion with an actual string, backticks are used.

<p class=example>"<code title>true</code>" is a
<span data-anolis-spec=encoding>string</span>, while `<code title>true</code>` is a
byte sequence.

<p>Comparing two byte sequences in a <dfn>byte case-insensitive</dfn> manner means
comparing them exactly, byte for byte, except that the bytes in the range 0x41 to 0x5A are
considered to also match their corresponding byte in the range 0x61 to 0x7A.
comparing them exactly, byte for byte, except that the bytes in the range 0x41 to 0x5A,
inclusive, are considered to also match their corresponding byte in the range 0x61 to
0x7A, inclusive.

<p>A <dfn>case-insensitive byte sequence</dfn> is a byte sequence that when compared to
another byte sequence does so in a <span>byte case-insensitive</span> manner.
Expand All @@ -115,10 +116,10 @@ <h2>Infrastructure</h2>
`<code title>Content-Type</code>` and `<code title>content-TYPE</code>` are equal.

<p>To <dfn>byte lowercase</dfn> a byte sequence, increase each byte it contains, in the
range 0x41 to 0x5A, by 0x20.
range 0x41 to 0x5A, inclusive, by 0x20.

<p>To <dfn>byte uppercase</dfn> a byte sequence, subtract each byte it contains, in the
range 0x61 to 0x7A, by 0x20.
range 0x61 to 0x7A, inclusive, by 0x20.

<hr>

Expand Down Expand Up @@ -2265,8 +2266,8 @@ <h3>CORS preflight fetch</h3>
<li>
<p>If a <span title=concept-cors-check>CORS check</span> for <var title>request</var>
and <var title>response</var> returns success and <var title>response</var>'s
<span title=concept-response-status>status</span> is in the range 200 to 299, run these
substeps:
<span title=concept-response-status>status</span> is in the range <code title>200</code>
to <code title>299</code>, inclusive, run these substeps:
<!-- CORS said 200 here but nobody implemented that:
https://lists.w3.org/Archives/Public/public-webappsec/2013Feb/0078.html -->

Expand Down Expand Up @@ -3385,7 +3386,8 @@ <h3>Response class</h3>

<ol>
<li><p>If <var title>init</var>'s <code title>status</code> member is not in the range
200 to 599, <span data-anolis-spec=webidl>throw</span> a <code title>RangeError</code>.
<code title>200</code> to <code title>599</code>, inclusive,
<span data-anolis-spec=webidl>throw</span> a <code title>RangeError</code>.

<li><p>If <var title>init</var>'s <code title>statusText</code> member does not match the
<span data-anolis-spec=http>Reason-Phrase</span> token production,
Expand Down Expand Up @@ -3514,8 +3516,8 @@ <h3>Response class</h3>

<p>The <dfn title=dom-Response-ok><code>ok</code></dfn> attribute's getter must
return true if <span title=concept-Response-response>response</span>'s
<span title=concept-response-status>status</span> is in the range 200 to 299, and false
otherwise.
<span title=concept-response-status>status</span> is in the range <code title>200</code>
to <code title>299</code>, inclusive, and false otherwise.

<p>The <dfn title=dom-Response-statusText><code>statusText</code></dfn> attribute's getter
must return <span title=concept-Response-response>response</span>'s
Expand Down

0 comments on commit 6bfbf2c

Please sign in to comment.