Skip to content

Commit

Permalink
[giow] (3) Turns out location.reload() does work even when you have a…
Browse files Browse the repository at this point in the history
… fragment identifier...

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24303
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@8400 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 16, 2014
1 parent 938e3ec commit 1851fbd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
12 changes: 8 additions & 4 deletions complete.html
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 January 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 January 2014</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -67009,7 +67009,8 @@ <h4 id=the-location-interface><span class=secno>6.5.3 </span>The <code><a href=#
<a href=#browsing-context>browsing context</a> to <a href="#the-document's-address">the document's
address</a> with <a href=#replacement-enabled>replacement enabled</a> and <a href=#exceptions-enabled>exceptions enabled</a>. The
<a href=#source-browsing-context>source browsing context</a> must be the <a href=#browsing-context>browsing
context</a> being navigated.</dd> <!-- it appears that
context</a> being navigated. This is a <a href=#reload-triggered-navigation>reload-triggered
navigation</a>.</dd> <!-- it appears that
document.reload() always uses GET and does not, e.g., re-POST. -->

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/141 defends the source browsing context claim; submit, eval document.referrer, reload, eval document.referrer. -->
Expand Down Expand Up @@ -67259,10 +67260,12 @@ <h4 id=navigating-across-documents><span class=secno>6.6.1 </span>Navigating acr

</li>

<li id=navigate-fragid-step><p><i>Fragment identifiers</i>: Apply the <a href=#url-parser>URL parser</a>
<!--CLEANUP-->
<li id=navigate-fragid-step><p><i>Fragment identifiers</i>: If this is not a <dfn id=reload-triggered-navigation>reload-triggered
navigation</dfn>: apply the <a href=#url-parser>URL parser</a>
algorithm to the <a href=#absolute-url>absolute URL</a> of the new resource and the <a href="#the-document's-address" title="the
document's address">address</a> of the <a href=#active-document>active document</a> of the <a href=#browsing-context>browsing
context</a> being navigated. If all the components of the resulting <a href=#parsed-url title="parsed
context</a> being navigated; if all the components of the resulting <a href=#parsed-url title="parsed
URL">parsed URLs</a>, ignoring any <a href=#concept-url-fragment title=concept-url-fragment>fragment</a>
components, are identical, and the new resource is to be fetched using HTTP GET <a href=#concept-http-equivalent-get title=concept-http-equivalent-get>or equivalent</a>, and the <a href=#parsed-url>parsed URL</a> of the
new resource has a <a href=#concept-url-fragment title=concept-url-fragment>fragment</a> component that is not null
Expand Down Expand Up @@ -102939,6 +102942,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Lawrence Forooghian,
Lee Kowalkowski,
Leif Halvard Silli,
Leif Kornstaedt,
Lenny Domnitser,
Leonard Rosenthol,
Leons Petrazickis,
Expand Down
12 changes: 8 additions & 4 deletions index
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 January 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 January 2014</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -67009,7 +67009,8 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
<a href=#browsing-context>browsing context</a> to <a href="#the-document's-address">the document's
address</a> with <a href=#replacement-enabled>replacement enabled</a> and <a href=#exceptions-enabled>exceptions enabled</a>. The
<a href=#source-browsing-context>source browsing context</a> must be the <a href=#browsing-context>browsing
context</a> being navigated.</dd> <!-- it appears that
context</a> being navigated. This is a <a href=#reload-triggered-navigation>reload-triggered
navigation</a>.</dd> <!-- it appears that
document.reload() always uses GET and does not, e.g., re-POST. -->

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/141 defends the source browsing context claim; submit, eval document.referrer, reload, eval document.referrer. -->
Expand Down Expand Up @@ -67259,10 +67260,12 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU

</li>

<li id=navigate-fragid-step><p><i>Fragment identifiers</i>: Apply the <a href=#url-parser>URL parser</a>
<!--CLEANUP-->
<li id=navigate-fragid-step><p><i>Fragment identifiers</i>: If this is not a <dfn id=reload-triggered-navigation>reload-triggered
navigation</dfn>: apply the <a href=#url-parser>URL parser</a>
algorithm to the <a href=#absolute-url>absolute URL</a> of the new resource and the <a href="#the-document's-address" title="the
document's address">address</a> of the <a href=#active-document>active document</a> of the <a href=#browsing-context>browsing
context</a> being navigated. If all the components of the resulting <a href=#parsed-url title="parsed
context</a> being navigated; if all the components of the resulting <a href=#parsed-url title="parsed
URL">parsed URLs</a>, ignoring any <a href=#concept-url-fragment title=concept-url-fragment>fragment</a>
components, are identical, and the new resource is to be fetched using HTTP GET <a href=#concept-http-equivalent-get title=concept-http-equivalent-get>or equivalent</a>, and the <a href=#parsed-url>parsed URL</a> of the
new resource has a <a href=#concept-url-fragment title=concept-url-fragment>fragment</a> component that is not null
Expand Down Expand Up @@ -102939,6 +102942,7 @@ if (s = prompt('What is your name?')) {
Lawrence Forooghian,
Lee Kowalkowski,
Leif Halvard Silli,
Leif Kornstaedt,
Lenny Domnitser,
Leonard Rosenthol,
Leons Petrazickis,
Expand Down
10 changes: 7 additions & 3 deletions source
Expand Up @@ -74686,7 +74686,8 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
<span>browsing context</span> to <span>the document's
address</span> with <span>replacement enabled</span> and <span>exceptions enabled</span>. The
<span>source browsing context</span> must be the <span>browsing
context</span> being navigated.</p></dd> <!-- it appears that
context</span> being navigated. This is a <span>reload-triggered
navigation</span>.</p></dd> <!-- it appears that
document.reload() always uses GET and does not, e.g., re-POST. -->

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/141 defends the source browsing context claim; submit, eval document.referrer, reload, eval document.referrer. -->
Expand Down Expand Up @@ -74969,10 +74970,12 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O

</li>

<li id="navigate-fragid-step"><p><i>Fragment identifiers</i>: Apply the <span>URL parser</span>
<!--CLEANUP-->
<li id="navigate-fragid-step"><p><i>Fragment identifiers</i>: If this is not a <dfn>reload-triggered
navigation</dfn>: apply the <span>URL parser</span>
algorithm to the <span>absolute URL</span> of the new resource and the <span data-x="the
document's address">address</span> of the <span>active document</span> of the <span>browsing
context</span> being navigated. If all the components of the resulting <span data-x="parsed
context</span> being navigated; if all the components of the resulting <span data-x="parsed
URL">parsed URLs</span>, ignoring any <span data-x="concept-url-fragment">fragment</span>
components, are identical, and the new resource is to be fetched using HTTP GET <span
data-x="concept-http-equivalent-get">or equivalent</span>, and the <span>parsed URL</span> of the
Expand Down Expand Up @@ -114914,6 +114917,7 @@ if (s = prompt('What is your name?')) {
Lawrence Forooghian,
Lee Kowalkowski,
Leif Halvard Silli,
Leif Kornstaedt,
Lenny Domnitser,
Leonard Rosenthol,
Leons Petrazickis,
Expand Down

0 comments on commit 1851fbd

Please sign in to comment.