Skip to content

Commit

Permalink
[] (0) appcache: make sure to strip the fragment component from manif…
Browse files Browse the repository at this point in the history
…est='' when init'ing the appcache.

git-svn-id: http://svn.whatwg.org/webapps@3480 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 28, 2009
1 parent b3bd632 commit 881adb2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions index
Expand Up @@ -51969,8 +51969,9 @@ style/default.css</pre>
into the document</a>, the user agent must <a href=#resolve-a-url title="resolve a
url">resolve</a> the value of that attribute relative to that
element, and if that is successful, must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache selection
algorithm</a> with the resulting <a href=#absolute-url>absolute URL</a> as the
manifest URL, and passing in the newly-created
algorithm</a> with the resulting <a href=#absolute-url>absolute URL</a> with
any <a href=#url-fragment title=url-fragment>&lt;fragment&gt;</a> component
removed as the manifest URL, and passing in the newly-created
<code>Document</code>. Otherwise, if the attribute is absent or
resolving it fails, then as soon as the root element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into the
document</a>, the user agent must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache selection
Expand Down Expand Up @@ -61965,11 +61966,12 @@ document.body.appendChild(text);
then <a href=#resolve-a-url title="resolve a url">resolve</a> the value of that
attribute to an <a href=#absolute-url>absolute URL</a>, relative to the newly
created element, and if that is successful, run the <a href=#concept-appcache-init title=concept-appcache-init>application cache selection
algorithm</a> with the resulting <a href=#absolute-url>absolute URL</a>;
otherwise, if there is no such attribute or resolving it fails,
run the <a href=#concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</a> with no manifest. The algorithm must be
passed the <code>Document</code> object.</p>
algorithm</a> with the resulting <a href=#absolute-url>absolute URL</a> with
any <a href=#url-fragment title=url-fragment>&lt;fragment&gt;</a> component
removed; otherwise, if there is no such attribute or resolving it
fails, run the <a href=#concept-appcache-init title=concept-appcache-init>application
cache selection algorithm</a> with no manifest. The algorithm
must be passed the <code>Document</code> object.</p>

<p>Switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#the-before-head-insertion-mode title="insertion mode: before head">before head</a>".</p>

Expand Down
16 changes: 9 additions & 7 deletions source
Expand Up @@ -59222,8 +59222,9 @@ style/default.css</pre>
url">resolve</span> the value of that attribute relative to that
element, and if that is successful, must run the <span
title="concept-appcache-init">application cache selection
algorithm</span> with the resulting <span>absolute URL</span> as the
manifest URL, and passing in the newly-created
algorithm</span> with the resulting <span>absolute URL</span> with
any <span title="url-fragment">&lt;fragment&gt;</span> component
removed as the manifest URL, and passing in the newly-created
<code>Document</code>. Otherwise, if the attribute is absent or
resolving it fails, then as soon as the root element is <span
title="insert an element into a document">inserted into the
Expand Down Expand Up @@ -76074,11 +76075,12 @@ document.body.appendChild(text);
attribute to an <span>absolute URL</span>, relative to the newly
created element, and if that is successful, run the <span
title="concept-appcache-init">application cache selection
algorithm</span> with the resulting <span>absolute URL</span>;
otherwise, if there is no such attribute or resolving it fails,
run the <span title="concept-appcache-init">application cache
selection algorithm</span> with no manifest. The algorithm must be
passed the <code>Document</code> object.</p>
algorithm</span> with the resulting <span>absolute URL</span> with
any <span title="url-fragment">&lt;fragment&gt;</span> component
removed; otherwise, if there is no such attribute or resolving it
fails, run the <span title="concept-appcache-init">application
cache selection algorithm</span> with no manifest. The algorithm
must be passed the <code>Document</code> object.</p>

<p>Switch the <span>insertion mode</span> to "<span
title="insertion mode: before head">before head</span>".</p>
Expand Down

0 comments on commit 881adb2

Please sign in to comment.