Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[gw] (2) Oops, recent changes made it impossible for an image to be s…
…erved from a cache while top-level. Make it possible for anything that isn't HTML or XML to be served that way. (HTML and XML need the manifest='' attribute.) (credit: ap)

git-svn-id: http://svn.whatwg.org/webapps@2713 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 28, 2009
1 parent 6feeaef commit 59208c1
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 42 deletions.
48 changes: 26 additions & 22 deletions index
Expand Up @@ -33,7 +33,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 27 January 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 28 January 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -37806,16 +37806,18 @@ style/default.css</pre>

<p>When the <dfn id=concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</dfn> algorithm is invoked with a
<code>Document</code> <var title="">document</var> and optionally a
manifest <a href=#url>URL</a> <var title="">manifest URL</var>, the user
agent must run the first applicable set of steps from the following
list:</p>

<dl class=switch><dt>If <var title="">document</var> was loaded from an
<a href=#application-cache>application cache</a>, and there is no <var title="">manifest URL</var></dt>

<dt>If <var title="">document</var> was loaded from an
<a href=#application-cache>application cache</a>, and the URL of the <a href=#concept-appcache-manifest title=concept-appcache-manifest>manifest</a> of that cache's
<code>Document</code> <var title="">document</var>, a flag <var title="">document-is-markup</var> which can be true or false, and
optionally a manifest <a href=#url>URL</a> <var title="">manifest
URL</var>, the user agent must run the first applicable set of steps
from the following list:</p>

<dl class=switch><dt>If the flag <var title="">document-is-markup</var> is true, and
<var title="">document</var> was loaded from an <a href=#application-cache>application
cache</a>, and there is no <var title="">manifest URL</var></dt>

<dt>If the flag <var title="">document-is-markup</var> is true, If
<var title="">document</var> was loaded from an <a href=#application-cache>application
cache</a>, and the URL of the <a href=#concept-appcache-manifest title=concept-appcache-manifest>manifest</a> of that cache's
<a href=#application-cache-group>application cache group</a> is <em>not</em> the same as
<var title="">manifest URL</var></dt>

Expand Down Expand Up @@ -38998,12 +39000,14 @@ user reload must be equivalent to .reload()
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
algorithm</a> with the <var title="">document-is-markup</var>
flag set to true, the resulting <a href=#absolute-url>absolute URL</a> 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
algorithm</a> with no manifest, passing in the
algorithm</a> with the <var title="">document-is-markup</var>
flag set to true, no manifest, and passing in the
<code>Document</code>.</p>

<p class=note>Because the processing of the <code title=attr-html-manifest><a href=#attr-html-manifest>manifest</a></code> attribute happens
Expand Down Expand Up @@ -39054,8 +39058,8 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</a> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</a> with the <var title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<!-- next two paragraphs are nearly identical to the navigate-html
section and similar to the "navigate-ua-inline" section, and the
Expand Down Expand Up @@ -39095,8 +39099,8 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</a> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</a> with the <var title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has finished fully loading, the user agent must
Expand Down Expand Up @@ -39128,8 +39132,8 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</a> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</a> with the <var title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has finished fully loading, the user agent must
Expand Down Expand Up @@ -39164,8 +39168,8 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <a href=#concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</a> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</a> with the <var title="">document-is-markup</var> flag set to false, no manifest,
passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has been completely set up, the user agent must
Expand Down Expand Up @@ -49993,7 +49997,7 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
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>
passed the <code>Document</code> object, and the <var title="">document-is-markup</var> flag must be set to true.</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
49 changes: 29 additions & 20 deletions source
Expand Up @@ -43034,19 +43034,21 @@ style/default.css</pre>

<p>When the <dfn title="concept-appcache-init">application cache
selection algorithm</dfn> algorithm is invoked with a
<code>Document</code> <var title="">document</var> and optionally a
manifest <span>URL</span> <var title="">manifest URL</var>, the user
agent must run the first applicable set of steps from the following
list:</p>
<code>Document</code> <var title="">document</var>, a flag <var
title="">document-is-markup</var> which can be true or false, and
optionally a manifest <span>URL</span> <var title="">manifest
URL</var>, the user agent must run the first applicable set of steps
from the following list:</p>

<dl class="switch">

<dt>If <var title="">document</var> was loaded from an
<span>application cache</span>, and there is no <var
title="">manifest URL</var></dt>
<dt>If the flag <var title="">document-is-markup</var> is true, and
<var title="">document</var> was loaded from an <span>application
cache</span>, and there is no <var title="">manifest URL</var></dt>

<dt>If <var title="">document</var> was loaded from an
<span>application cache</span>, and the URL of the <span
<dt>If the flag <var title="">document-is-markup</var> is true, If
<var title="">document</var> was loaded from an <span>application
cache</span>, and the URL of the <span
title="concept-appcache-manifest">manifest</span> of that cache's
<span>application cache group</span> is <em>not</em> the same as
<var title="">manifest URL</var></dt>
Expand Down Expand Up @@ -44439,14 +44441,16 @@ user reload must be equivalent to .reload()
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
algorithm</span> with the <var title="">document-is-markup</var>
flag set to true, the resulting <span>absolute URL</span> 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
document</span>, the user agent must run the <span
title="concept-appcache-init">application cache selection
algorithm</span> with no manifest, passing in the
algorithm</span> with the <var title="">document-is-markup</var>
flag set to true, no manifest, and passing in the
<code>Document</code>.</p>

<p class="note">Because the processing of the <code
Expand Down Expand Up @@ -44502,8 +44506,9 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <span title="concept-appcache-init">application cache
selection algorithm</span> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</span> with the <var
title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<!-- next two paragraphs are nearly identical to the navigate-html
section and similar to the "navigate-ua-inline" section, and the
Expand Down Expand Up @@ -44544,8 +44549,9 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <span title="concept-appcache-init">application cache
selection algorithm</span> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</span> with the <var
title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has finished fully loading, the user agent must
Expand Down Expand Up @@ -44578,8 +44584,9 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <span title="concept-appcache-init">application cache
selection algorithm</span> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</span> with the <var
title="">document-is-markup</var> flag set to false, no manifest,
and passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has finished fully loading, the user agent must
Expand Down Expand Up @@ -44615,8 +44622,9 @@ user reload must be equivalent to .reload()

<p>Upon creation of the <code>Document</code> object, the user agent
must run the <span title="concept-appcache-init">application cache
selection algorithm</span> with no manifest, passing in the
newly-created <code>Document</code>.</p>
selection algorithm</span> with the <var
title="">document-is-markup</var> flag set to false, no manifest,
passing in the newly-created <code>Document</code>.</p>

<p>After creating the <code>Document</code> object, but potentially
before the page has been completely set up, the user agent must
Expand Down Expand Up @@ -57064,7 +57072,8 @@ interface <dfn>MessageChannel</dfn> {
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>
passed the <code>Document</code> object, and the <var
title="">document-is-markup</var> flag must be set to true.</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 59208c1

Please sign in to comment.