[html5] r2713 - [gw] (2) Oops, recent changes made it impossible for an image to be served from [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 27 17:23:40 PST 2009


Author: ianh
Date: 2009-01-27 17:23:39 -0800 (Tue, 27 Jan 2009)
New Revision: 2713

Modified:
   index
   source
Log:
[gw] (2) Oops, recent changes made it impossible for an image to be served 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)

Modified: index
===================================================================
--- index	2009-01-27 23:22:43 UTC (rev 2712)
+++ index	2009-01-28 01:23:39 UTC (rev 2713)
@@ -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-—-date:-01-jan-1901>Draft Recommendation — 27 January 2009</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 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>
@@ -37806,16 +37806,18 @@
 
   <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>
+  <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 <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>
+  <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 <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
+   <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>
 
@@ -38998,12 +39000,14 @@
   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
@@ -39054,8 +39058,8 @@
 
   <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
@@ -39095,8 +39099,8 @@
 
   <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
@@ -39128,8 +39132,8 @@
 
   <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
@@ -39164,8 +39168,8 @@
 
   <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
@@ -49993,7 +49997,7 @@
     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>
 

Modified: source
===================================================================
--- source	2009-01-27 23:22:43 UTC (rev 2712)
+++ source	2009-01-28 01:23:39 UTC (rev 2713)
@@ -43034,19 +43034,21 @@
 
   <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>
@@ -44439,14 +44441,16 @@
   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
@@ -44502,8 +44506,9 @@
 
   <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
@@ -44544,8 +44549,9 @@
 
   <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
@@ -44578,8 +44584,9 @@
 
   <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
@@ -44615,8 +44622,9 @@
 
   <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
@@ -57064,7 +57072,8 @@
     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>




More information about the Commit-Watchers mailing list