Permalink
Browse files

added manifest attribute

refer to #741
  • Loading branch information...
stevefaulkner committed Dec 6, 2016
1 parent 22b4671 commit 9b030785d3bf82cf77e07640af01a74bdb6bf2af
Showing with 27 additions and 3 deletions.
  1. +6 −0 sections/attributes.include
  2. +4 −2 sections/elements.include
  3. +17 −1 sections/semantics-root.include
@@ -438,6 +438,12 @@
<td>High limit of low range</td>
<td><a>Valid floating-point number</a>*</td>
</tr>
<tr>
<th><{html/manifest}></th>
<td><{html}></td>
<td>Application cache manifest</td>
<td><a>a valid non-empty URL potentially surrounded by spaces</a></td>
</tr>
<tr>
<th><{input/max}></th>
<td><{input}></td>
@@ -194,7 +194,8 @@
{{WindowEventHandlers/onpageshow}};
{{WindowEventHandlers/onpopstate}};
{{WindowEventHandlers/onstorage}};
{{WindowEventHandlers/onunload}}</code></td>
{{WindowEventHandlers/onunload}}</code>
</td>
<td>{{HTMLBodyElement}}</td>
</tr>
@@ -575,7 +576,8 @@
<td>none*</td>
<td><{head}>*;
<{body}>*</td>
<td><a lt="global attributes">globals</a></td>
<td><a lt="global attributes">globals</a>;
<{html/manifest}></td>
<td>{{HTMLHtmlElement}}</td>
</tr>
@@ -23,6 +23,7 @@
</dd>
<dt><a>Content attributes</a>:</dt>
<dd><a>Global attributes</a></dd>
<dd><a>manifest</a> — Application cache manifest</dd>
<dt>Allowed <a href="#aria-role-attribute">ARIA role attribute</a> values:</dt>
<dd>None</dd>
<dt>Allowed <a href="#state-and-property-attributes">ARIA state and property attributes</a>:</dt>
@@ -40,7 +41,22 @@
Authors are encouraged to specify a <{global/lang}> attribute on the root <{html}> element, giving
the document's language. This aids speech synthesis tools to determine what pronunciations to use,
translation tools to determine what rules to use, and so forth.
<p>The <dfn><code>manifest</code></dfn> attribute gives the address of the document's <a>application
cache</a> manifest, if there is one. If the attribute is present, the attribute's value must be
<a>a valid non-empty URL potentially surrounded by spaces</a>.</p>
<p>The <a>manifest</a> attribute only has an effect during the early stages of document load. Changing
the attribute dynamically thus has no effect (and thus, no DOM API is provided for this attribute)
.</p>
<p class="note">For the purposes of application cache selection, later <{base}> elements cannot affect
the <a lt="parse a URL">parsing of URLs</a> in <a>manifest</a> attributes, as the attributes are
processed before those elements are seen.</p>
<p class="note">The window.applicationCache IDL attribute provides scripted access to the offline
application cache mechanism.</p>
<p class="note">
It is recommended to keep the usage of attributes and their values defined on the <{html}>
element to a minimum to allow for proper detection of the <a>character encoding declaration</a>

0 comments on commit 9b03078

Please sign in to comment.