Skip to content

Commit 1898f6f

Browse files
committed
Fix referrer. Inline source origin and referrer source. https://www.w3.org/Bugs/Public/show_bug.cgi?id=21264
1 parent 78c244e commit 1898f6f

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

Overview.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-xhr.svg" width="100"></a>
99
<h1 class="head" id="xmlhttprequest-ls">XMLHttpRequest</h1>
10-
<h2 class="no-num no-toc" id="living-standard-—-last-updated-15-november-2013">Living Standard — Last Updated 15 November 2013</h2>
10+
<h2 class="no-num no-toc" id="living-standard-—-last-updated-18-november-2013">Living Standard — Last Updated 18 November 2013</h2>
1111

1212
<dl>
1313
<dt>This Version:
@@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-15-november-2013"
3636
<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>
3737
To the extent possible under law, the editor has waived all copyright and
3838
related or neighboring rights to this work. In addition, as of
39-
15 November 2013, the editor has made this specification available
39+
18 November 2013, the editor has made this specification available
4040
under the
4141
<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>,
4242
which is available at
@@ -490,8 +490,6 @@ <h3 id="request"><span class="secno">4.5 </span>Request</h3>
490490
<dfn id="request-url">request URL</dfn>,
491491
<dfn id="author-request-headers">author request headers</dfn>,
492492
<dfn id="request-entity-body">request entity body</dfn>,
493-
<dfn id="source-origin">source origin</dfn>,
494-
<dfn id="referrer-source">referrer source</dfn>,
495493
<dfn id="synchronous-flag">synchronous flag</dfn>,
496494
<dfn id="upload-complete-flag">upload complete flag</dfn>, and
497495
<dfn id="upload-events-flag">upload events flag</dfn>.
@@ -558,13 +556,6 @@ <h4 id="the-open()-method"><span class="secno">4.5.1 </span>The <code title="">o
558556
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
559557
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-base-url">API base URL</a>.
560558

561-
<li><p>Set <a href="#source-origin">source origin</a> to
562-
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
563-
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>.
564-
565-
<li><p>Set <a href="#referrer-source">referrer source</a> to the
566-
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a>.
567-
568559
<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>
569560
token production, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> a
570561
"<code class="external"><a href="http://dom.spec.whatwg.org/#syntaxerror">SyntaxError</a></code>" exception.
@@ -1060,11 +1051,19 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
10601051
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-author-headers" title="concept-request-author-headers">author headers</a>
10611052
<dd><a href="#author-request-headers">author request headers</a>
10621053
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-origin" title="concept-request-origin">origin</a>
1063-
<dd><a href="#source-origin">source origin</a>
1054+
<dd><a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
1055+
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>
10641056
<dt><a class="external" href="http://fetch.spec.whatwg.org/#force-origin-header-flag">force <code title="">Origin</code> header flag</a>
10651057
<dd>Set.
10661058
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-referrer" title="concept-request-referrer">referrer</a>
1067-
<dd><a class="XXX" href="#referrer-source">referrer source</a>
1059+
<dd><a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
1060+
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a>'s
1061+
<a class="external" href="http://dom.spec.whatwg.org/#concept-document-url" title="concept-document-url">URL</a> if
1062+
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
1063+
<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
1064+
<a class="external" href="http://dom.spec.whatwg.org/#concept-document" title="concept-document">document</a>, and
1065+
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
1066+
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#api-referrer-source">API referrer source</a> otherwise
10681067
<dt><a class="external" href="http://fetch.spec.whatwg.org/#concept-request-body" title="concept-request-body">body</a>
10691068
<dd><a href="#request-entity-body">request entity body</a>
10701069
<dt><a data-anolis-spec="fetch" href="#synchronous-flag">synchronous flag</a>
@@ -1486,7 +1485,7 @@ <h4 id="response-entity-body-0"><span class="secno">4.6.5 </span>Response entity
14861485
<dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
14871486
<code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> representing the
14881487
<a href="#response-entity-body">response entity body</a> or null. If the <a href="#blob-response-entity-body">blob response entity body</a>
1489-
is null, let it be the return value of the following algorithm:
1488+
is null, set it to the return value of the following algorithm:
14901489

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

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

15861585
<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
1587-
<a href="#source-origin">source origin</a>.
1586+
<a href="#concept-xmlhttprequest-settings-object" title="concept-XMLHttpRequest-settings-object">settings object</a>'s
1587+
<a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>.
15881588

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

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

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

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

16161616
<ol>

Overview.src.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,6 @@ <h3 id="request">Request</h3>
445445
<dfn>request URL</dfn>,
446446
<dfn id="author-request-headers">author request headers</dfn>,
447447
<dfn>request entity body</dfn>,
448-
<dfn>source origin</dfn>,
449-
<dfn>referrer source</dfn>,
450448
<dfn>synchronous flag</dfn>,
451449
<dfn id="upload-complete-flag">upload complete flag</dfn>, and
452450
<dfn id="upload-events-flag">upload events flag</dfn>.
@@ -513,13 +511,6 @@ <h4>The <code title>open()</code> method</h4>
513511
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
514512
<span data-anolis-spec=html>API base URL</span>.
515513

516-
<li><p>Set <span>source origin</span> to
517-
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
518-
<span data-anolis-spec=html>origin</span>.
519-
520-
<li><p>Set <span>referrer source</span> to the
521-
<span data-anolis-spec=html>API referrer source</span>.
522-
523514
<li><p>If <var>method</var> does not match the <span data-anolis-spec=http>Method</span>
524515
token production, <span data-anolis-spec=dom title=concept-throw>throw</span> a
525516
"<code data-anolis-spec=dom>SyntaxError</code>" exception.
@@ -1015,11 +1006,19 @@ <h4>The <code title>send()</code> method</h4>
10151006
<dt><span data-anolis-spec=fetch title=concept-request-author-headers>author headers</span>
10161007
<dd><span>author request headers</span>
10171008
<dt><span data-anolis-spec=fetch title=concept-request-origin>origin</span>
1018-
<dd><span>source origin</span>
1009+
<dd><span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
1010+
<span data-anolis-spec=html>origin</span>
10191011
<dt><span data-anolis-spec=fetch>force <code title>Origin</code> header flag</span>
10201012
<dd>Set.
10211013
<dt><span data-anolis-spec=fetch title=concept-request-referrer>referrer</span>
1022-
<dd><span class=XXX>referrer source</span>
1014+
<dd><span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
1015+
<span data-anolis-spec=html>API referrer source</span>'s
1016+
<span data-anolis-spec=dom title=concept-document-url>URL</span> if
1017+
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
1018+
<span data-anolis-spec=html>API referrer source</span> is a
1019+
<span data-anolis-spec=dom title=concept-document>document</span>, and
1020+
<span title=concept-XMLHttpRequest-settings-object>settings object</span>'s
1021+
<span data-anolis-spec=html>API referrer source</span> otherwise
10231022
<dt><span data-anolis-spec=fetch title=concept-request-body>body</span>
10241023
<dd><span>request entity body</span>
10251024
<dt><span data-anolis-spec=fetch>synchronous flag</span>
@@ -1441,7 +1440,7 @@ <h4>Response entity body</h4>
14411440
<dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
14421441
<code data-anolis-spec=fileapi>Blob</code> representing the
14431442
<span>response entity body</span> or null. If the <span>blob response entity body</span>
1444-
is null, let it be the return value of the following algorithm:
1443+
is null, set it to the return value of the following algorithm:
14451444

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

14631462
<ol>
@@ -1539,15 +1538,16 @@ <h4>Response entity body</h4>
15391538
<span>request URL</span>.
15401539

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

15441544
<li><p>Return <var title>document</var>.
15451545
</ol>
15461546

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

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

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

15711571
<ol>

0 commit comments

Comments
 (0)