Skip to content

Commit

Permalink
Fix referrer. Inline source origin and referrer source. https://www.w…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Nov 18, 2013
1 parent 78c244e commit 1898f6f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
38 changes: 19 additions & 19 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-xhr.svg" width="100"></a>
<h1 class="head" id="xmlhttprequest-ls">XMLHttpRequest</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-15-november-2013">Living Standard — Last Updated 15 November 2013</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-18-november-2013">Living Standard — Last Updated 18 November 2013</h2>

<dl>
<dt>This Version:
Expand Down Expand Up @@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-15-november-2013"
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></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
15 November 2013, the editor has made this specification available
18 November 2013, 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 @@ -490,8 +490,6 @@ <h3 id="request"><span class="secno">4.5 </span>Request</h3>
<dfn id="request-url">request URL</dfn>,
<dfn id="author-request-headers">author request headers</dfn>,
<dfn id="request-entity-body">request entity body</dfn>,
<dfn id="source-origin">source origin</dfn>,
<dfn id="referrer-source">referrer source</dfn>,
<dfn id="synchronous-flag">synchronous flag</dfn>,
<dfn id="upload-complete-flag">upload complete flag</dfn>, and
<dfn id="upload-events-flag">upload events flag</dfn>.
Expand Down Expand Up @@ -558,13 +556,6 @@ <h4 id="the-open()-method"><span class="secno">4.5.1 </span>The <code title="">o
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-base-url">API base URL</a>.

<li><p>Set <a href="#source-origin">source origin</a> to
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>.

<li><p>Set <a href="#referrer-source">referrer source</a> to the
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a>.

<li><p>If <var>method</var> does not match the <a class="external" href="http://tools.ietf.org/html/rfc2616/#section-5.1.1">Method</a>
token production, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a
"<code class="external"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code>" exception.
Expand Down Expand Up @@ -1060,11 +1051,19 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-author-headers" title="concept-request-author-headers">author headers</a>
<dd><a href="#author-request-headers">author request headers</a>
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-origin" title="concept-request-origin">origin</a>
<dd><a href="#source-origin">source origin</a>
<dd><a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>
<dt><a class="external" href="http://fetch.spec.whatwg.org/#force-origin-header-flag">force <code title="">Origin</code> header flag</a>
<dd>Set.
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-referrer" title="concept-request-referrer">referrer</a>
<dd><a class="XXX" href="#referrer-source">referrer source</a>
<dd><a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a>'s
<a class="external" href="http://dom.spec.whatwg.org/#concept-document-url" title="concept-document-url">URL</a> if
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a> is a
<a class="external" href="http://dom.spec.whatwg.org/#concept-document" title="concept-document">document</a>, and
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a> otherwise
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-body" title="concept-request-body">body</a>
<dd><a href="#request-entity-body">request entity body</a>
<dt><a data-anolis-spec="fetch" href="#synchronous-flag">synchronous flag</a>
Expand Down Expand Up @@ -1486,7 +1485,7 @@ <h4 id="response-entity-body-0"><span class="secno">4.6.5 </span>Response entity
<dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
<code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> representing the
<a href="#response-entity-body">response entity body</a> or null. If the <a href="#blob-response-entity-body">blob response entity body</a>
is null, let it be the return value of the following algorithm:
is null, set it to the return value of the following algorithm:

<ol>
<li><p>If the <a href="#response-entity-body">response entity body</a> is null, return an empty
Expand All @@ -1502,7 +1501,7 @@ <h4 id="response-entity-body-0"><span class="secno">4.6.5 </span>Response entity
<dfn id="document-response-entity-body">document response entity body</dfn>
is either a <a class="external" href="http://dom.spec.whatwg.org/#concept-document" title="concept-document">document</a>
representing the <a href="#response-entity-body">response entity body</a> or null. If the
<a href="#document-response-entity-body">document response entity body</a> is null, let it be the return value of the
<a href="#document-response-entity-body">document response entity body</a> is null, set it to the return value of the
following algorithm:

<ol>
Expand Down Expand Up @@ -1584,15 +1583,16 @@ <h4 id="response-entity-body-0"><span class="secno">4.6.5 </span>Response entity
<a href="#request-url">request URL</a>.

<li><p>Set <var title="">document</var>'s <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a> to
<a href="#source-origin">source origin</a>.
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>.

<li><p>Return <var title="">document</var>.
</ol>

<p>The <dfn id="json-response-entity-body">JSON response entity body</dfn> is either a JavaScript value
representing the <a href="#response-entity-body">response entity body</a>. If the
<a href="#json-response-entity-body">JSON response entity body</a> is null, let it be return value of the following
algorithm:
<a href="#json-response-entity-body">JSON response entity body</a> is null, set it to the return value of the
following algorithm:

<ol>
<li><p>If the <a href="#response-entity-body">response entity body</a> is null, return null.
Expand All @@ -1610,7 +1610,7 @@ <h4 id="response-entity-body-0"><span class="secno">4.6.5 </span>Response entity

<p>The <dfn id="text-response-entity-body">text response entity body</dfn> is either a
string representing the <a href="#response-entity-body">response entity body</a> or null. If the
<a href="#text-response-entity-body">text response entity body</a> is null, let it be the return value of the
<a href="#text-response-entity-body">text response entity body</a> is null, set it to the return value of the
following algorithm:

<ol>
Expand Down
34 changes: 17 additions & 17 deletions Overview.src.html
Expand Up @@ -445,8 +445,6 @@ <h3 id="request">Request</h3>
<dfn>request URL</dfn>,
<dfn id="author-request-headers">author request headers</dfn>,
<dfn>request entity body</dfn>,
<dfn>source origin</dfn>,
<dfn>referrer source</dfn>,
<dfn>synchronous flag</dfn>,
<dfn id="upload-complete-flag">upload complete flag</dfn>, and
<dfn id="upload-events-flag">upload events flag</dfn>.
Expand Down Expand Up @@ -513,13 +511,6 @@ <h4>The <code title>open()</code> method</h4>
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>API base URL</span>.

<li><p>Set <span>source origin</span> to
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>origin</span>.

<li><p>Set <span>referrer source</span> to the
<span data-anolis-spec=html>API referrer source</span>.

<li><p>If <var>method</var> does not match the <span data-anolis-spec=http>Method</span>
token production, <span data-anolis-spec=dom title=concept-throw>throw</span> a
"<code data-anolis-spec=dom>SyntaxError</code>" exception.
Expand Down Expand Up @@ -1015,11 +1006,19 @@ <h4>The <code title>send()</code> method</h4>
<dt><span data-anolis-spec=fetch title=concept-request-author-headers>author headers</span>
<dd><span>author request headers</span>
<dt><span data-anolis-spec=fetch title=concept-request-origin>origin</span>
<dd><span>source origin</span>
<dd><span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>origin</span>
<dt><span data-anolis-spec=fetch>force <code title>Origin</code> header flag</span>
<dd>Set.
<dt><span data-anolis-spec=fetch title=concept-request-referrer>referrer</span>
<dd><span class=XXX>referrer source</span>
<dd><span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>API referrer source</span>'s
<span data-anolis-spec=dom title=concept-document-url>URL</span> if
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>API referrer source</span> is a
<span data-anolis-spec=dom title=concept-document>document</span>, and
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>API referrer source</span> otherwise
<dt><span data-anolis-spec=fetch title=concept-request-body>body</span>
<dd><span>request entity body</span>
<dt><span data-anolis-spec=fetch>synchronous flag</span>
Expand Down Expand Up @@ -1441,7 +1440,7 @@ <h4>Response entity body</h4>
<dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
<code data-anolis-spec=fileapi>Blob</code> representing the
<span>response entity body</span> or null. If the <span>blob response entity body</span>
is null, let it be the return value of the following algorithm:
is null, set it to the return value of the following algorithm:

<ol>
<li><p>If the <span>response entity body</span> is null, return an empty
Expand All @@ -1457,7 +1456,7 @@ <h4>Response entity body</h4>
<dfn id="document-response-entity-body">document response entity body</dfn>
is either a <span data-anolis-spec=dom title=concept-document>document</span>
representing the <span>response entity body</span> or null. If the
<span>document response entity body</span> is null, let it be the return value of the
<span>document response entity body</span> is null, set it to the return value of the
following algorithm:

<ol>
Expand Down Expand Up @@ -1539,15 +1538,16 @@ <h4>Response entity body</h4>
<span>request URL</span>.

<li><p>Set <var title>document</var>'s <span data-anolis-spec=html>origin</span> to
<span>source origin</span>.
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
<span data-anolis-spec=html>origin</span>.

<li><p>Return <var title>document</var>.
</ol>

<p>The <dfn>JSON response entity body</dfn> is either a JavaScript value
representing the <span>response entity body</span>. If the
<span>JSON response entity body</span> is null, let it be return value of the following
algorithm:
<span>JSON response entity body</span> is null, set it to the return value of the
following algorithm:

<ol>
<li><p>If the <span>response entity body</span> is null, return null.
Expand All @@ -1565,7 +1565,7 @@ <h4>Response entity body</h4>

<p>The <dfn id="text-response-entity-body">text response entity body</dfn> is either a
string representing the <span>response entity body</span> or null. If the
<span>text response entity body</span> is null, let it be the return value of the
<span>text response entity body</span> is null, set it to the return value of the
following algorithm:

<ol>
Expand Down

0 comments on commit 1898f6f

Please sign in to comment.