[html5] r3521 - [e] (0) Correct and clarify terminology around the http-equiv attribute and its [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Aug 1 03:18:23 PDT 2009


Author: ianh
Date: 2009-08-01 03:18:21 -0700 (Sat, 01 Aug 2009)
New Revision: 3521

Modified:
   index
   source
Log:
[e] (0) Correct and clarify terminology around the http-equiv attribute and its states.

Modified: index
===================================================================
--- index	2009-08-01 09:50:21 UTC (rev 3520)
+++ index	2009-08-01 10:18:21 UTC (rev 3521)
@@ -10298,9 +10298,9 @@
    <dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#flow-content-0>flow content</a>.</dd>
    <dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#phrasing-content-0>phrasing content</a>.</dd>
    <dt>Contexts in which this element may be used:</dt>
-   <dd>If the <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute is present, or if the element is in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element>head</a></code> element.</dd>
-   <dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present, and the element is not in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element>head</a></code> element.</dd>
-   <dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present, and the element is not in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-noscript-element>noscript</a></code> element that is a child of a <code><a href=#the-head-element>head</a></code> element.</dd>
+   <dd>If the <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute is present, or if the element's <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element>head</a></code> element.</dd>
+   <dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present and in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element>head</a></code> element.</dd>
+   <dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present but not in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-noscript-element>noscript</a></code> element that is a child of a <code><a href=#the-head-element>head</a></code> element.</dd>
    <dd>If the <code title=attr-meta-name><a href=#attr-meta-name>name</a></code> attribute is present: where <a href=#metadata-content-0>metadata content</a> is expected.</dd>
    <dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: where <a href=#phrasing-content-0>phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
@@ -10594,7 +10594,7 @@
 
   </div>
 
-  <dl><dt class=impl><dfn id=attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content language</dfn>
+  <dl><dt class=impl><dfn id=attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content language state</dfn> (<code title="">http-equiv="content-language"</code>)
 
    <dd class=impl>
 
@@ -10604,10 +10604,12 @@
 
     <div class=impl>
 
-    <ol><li><p>If another <code><a href=#meta>meta</a></code> element in the <a href=#attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content Language
-     state</a> has already been successfully processed (i.e. when
-     it was inserted the user agent processed it and reached the last
-     step of this list of steps), then abort these steps.</li>
+    <ol><li><p>If another <code><a href=#meta>meta</a></code> element with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+     <a href=#attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content
+     Language state</a> has already been successfully processed
+     (i.e. when it was inserted the user agent processed it and
+     reached the last step of this list of steps), then abort these
+     steps.</li>
 
      <li><p>If the <code><a href=#meta>meta</a></code> element has no <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, or if that
      attribute's value is the empty string, then abort these
@@ -10632,10 +10634,10 @@
 
     </ol></div>
 
-    <p>For <code><a href=#meta>meta</a></code> elements in the <a href=#attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content Language
-    state</a>, the <code title=attr-meta-content><a href=#attr-meta-content>content</a></code>
-    attribute must have a value consisting of a valid RFC 3066
-    language code. <a href=#refsRFC3066>[RFC3066]</a></p>
+    <p>For <code><a href=#meta>meta</a></code> elements with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+    <a href=#attr-meta-http-equiv-content-language title=attr-meta-http-equiv-content-language>Content
+    Language state</a>, the <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute must have a
+    value consisting of a valid RFC 3066 language code. <a href=#refsRFC3066>[RFC3066]</a></p>
 
     <p class=note>This pragma is not exactly equivalent to the HTTP
     <code>Content-Language</code> header, for instance it only
@@ -10643,7 +10645,7 @@
 
    </dd>
 
-   <dt><dfn id=attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</dfn>
+   <dt><dfn id=attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</dfn> (<code title="">http-equiv="content-type"</code>)
 
    <dd>
 
@@ -10653,28 +10655,30 @@
     <a href=#character-encoding-declaration>character encoding declaration</a>. <span class=impl>This state's user agent requirements are all handled
     by the parsing section of the specification.</span></p>
 
-    <p>For <code><a href=#meta>meta</a></code> elements in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration
-    state</a>, the <code title=attr-meta-content><a href=#attr-meta-content>content</a></code>
-    attribute must have a value that is an <a href=#ascii-case-insensitive>ASCII
-    case-insensitive</a> match for a string that consists of: the
-    literal string "<code title="">text/html;</code>", optionally
-    followed by any number of <a href=#space-character title="space character">space
-    characters</a>, followed by the literal string "<code title="">charset=</code>", followed by the character encoding name
-    of the <a href=#character-encoding-declaration>character encoding declaration</a>.</p>
+    <p>For <code><a href=#meta>meta</a></code> elements with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+    <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding
+    declaration state</a>, the <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute must have a
+    value that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for a
+    string that consists of: the literal string "<code title="">text/html;</code>", optionally followed by any number of
+    <a href=#space-character title="space character">space characters</a>, followed by
+    the literal string "<code title="">charset=</code>", followed by
+    the character encoding name of the <a href=#character-encoding-declaration>character encoding
+    declaration</a>.</p>
 
-    <p>If the document contains a <code><a href=#meta>meta</a></code> element in the
-    <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding
+    <p>If the document contains a <code><a href=#meta>meta</a></code> element with an
+    <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in
+    the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding
     declaration state</a>, then the document must not contain a
     <code><a href=#meta>meta</a></code> element with the <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute present.</p>
 
     <p>The <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding
     declaration state</a> may be used in <a href=#html-documents>HTML
-    documents</a>, but elements in that state must not be used in
-    <a href=#xml-documents>XML documents</a>.</p>
+    documents</a>, but elements with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in that
+    state must not be used in <a href=#xml-documents>XML documents</a>.</p>
 
    </dd>
 
-   <dt><dfn id=attr-meta-http-equiv-default-style title=attr-meta-http-equiv-default-style>Default style state</dfn>
+   <dt><dfn id=attr-meta-http-equiv-default-style title=attr-meta-http-equiv-default-style>Default style state</dfn> (<code title="">http-equiv="default-style"</code>)
 
    <dd>
 
@@ -10694,7 +10698,7 @@
 
    </dd>
 
-   <dt><dfn id=attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</dfn>
+   <dt><dfn id=attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</dfn> (<code title="">http-equiv="refresh"</code>)
 
    <dd>
 
@@ -10702,10 +10706,11 @@
 
     <div class=impl>
 
-    <ol><!-- TESTS: http://www.hixie.ch/tests/adhoc/html/meta/refresh/ --><li><p>If another <code><a href=#meta>meta</a></code> element in the <a href=#attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</a> has
-     already been successfully processed (i.e. when it was inserted
-     the user agent processed it and reached the last step of this
-     list of steps), then abort these steps.</li>
+    <ol><!-- TESTS: http://www.hixie.ch/tests/adhoc/html/meta/refresh/ --><li><p>If another <code><a href=#meta>meta</a></code> element with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+     <a href=#attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</a>
+     has already been successfully processed (i.e. when it was
+     inserted the user agent processed it and reached the last step of
+     this list of steps), then abort these steps.</li>
 
      <li><p>If the <code><a href=#meta>meta</a></code> element has no <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, or if that
      attribute's value is the empty string, then abort these
@@ -10816,9 +10821,10 @@
 
     </ol></div>
 
-    <p>For <code><a href=#meta>meta</a></code> elements in the <a href=#attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</a>, the
-    <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute must have
-    a value consisting either of:
+    <p>For <code><a href=#meta>meta</a></code> elements with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+    <a href=#attr-meta-http-equiv-refresh title=attr-meta-http-equiv-refresh>Refresh state</a>,
+    the <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute must
+    have a value consisting either of:</p>
 
     <ul><li> just a <a href=#valid-non-negative-integer>valid non-negative integer</a>, or</li>
 
@@ -10932,12 +10938,14 @@
   encoding</a>, and, in addition, if that encoding isn't US-ASCII
   itself, then the encoding must be specified using a
   <code><a href=#meta>meta</a></code> element with a <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute or a
-  <code><a href=#meta>meta</a></code> element in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration
+  <code><a href=#meta>meta</a></code> element with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+  <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration
   state</a>.</p>
 
   <p>If an <a href=#html-documents title="HTML documents">HTML document</a> contains
   a <code><a href=#meta>meta</a></code> element with a <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute or a
-  <code><a href=#meta>meta</a></code> element in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration
+  <code><a href=#meta>meta</a></code> element with an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute in the
+  <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration
   state</a>, then the character encoding used must be an
   <a href=#ascii-compatible-character-encoding>ASCII-compatible character encoding</a>.</p>
 

Modified: source
===================================================================
--- source	2009-08-01 09:50:21 UTC (rev 3520)
+++ source	2009-08-01 10:18:21 UTC (rev 3521)
@@ -10733,9 +10733,9 @@
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>flow content</span>.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>phrasing content</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>
-   <dd>If the <code title="attr-meta-charset">charset</code> attribute is present, or if the element is in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd>
-   <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present, and the element is not in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd>
-   <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present, and the element is not in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>noscript</code> element that is a child of a <code>head</code> element.</dd>
+   <dd>If the <code title="attr-meta-charset">charset</code> attribute is present, or if the element's <code title="attr-meta-http-equiv">http-equiv</code> attribute is in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd>
+   <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present and in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd>
+   <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present but not in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>noscript</code> element that is a child of a <code>head</code> element.</dd>
    <dd>If the <code title="attr-meta-name">name</code> attribute is present: where <span>metadata content</span> is expected.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: where <span>phrasing content</span> is expected.</dd>
    <dt>Content model:</dt>
@@ -11074,7 +11074,7 @@
 
   <dl>
 
-   <dt class="impl"><dfn title="attr-meta-http-equiv-content-language">Content language</dfn>
+   <dt class="impl"><dfn title="attr-meta-http-equiv-content-language">Content language state</dfn> (<code title="">http-equiv="content-language"</code>)
 
    <dd class="impl">
 
@@ -11086,11 +11086,13 @@
 
     <ol>
 
-     <li><p>If another <code>meta</code> element in the <span
-     title="attr-meta-http-equiv-content-language">Content Language
-     state</span> has already been successfully processed (i.e. when
-     it was inserted the user agent processed it and reached the last
-     step of this list of steps), then abort these steps.</p></li>
+     <li><p>If another <code>meta</code> element with an <code
+     title="attr-meta-http-equiv">http-equiv</code> attribute in the
+     <span title="attr-meta-http-equiv-content-language">Content
+     Language state</span> has already been successfully processed
+     (i.e. when it was inserted the user agent processed it and
+     reached the last step of this list of steps), then abort these
+     steps.</p></li>
 
      <li><p>If the <code>meta</code> element has no <code
      title="attr-meta-content">content</code> attribute, or if that
@@ -11118,11 +11120,13 @@
 
     </div>
 
-    <p>For <code>meta</code> elements in the <span
-    title="attr-meta-http-equiv-content-language">Content Language
-    state</span>, the <code title="attr-meta-content">content</code>
-    attribute must have a value consisting of a valid RFC 3066
-    language code. <a href="#refsRFC3066">[RFC3066]</a></p>
+    <p>For <code>meta</code> elements with an <code
+    title="attr-meta-http-equiv">http-equiv</code> attribute in the
+    <span title="attr-meta-http-equiv-content-language">Content
+    Language state</span>, the <code
+    title="attr-meta-content">content</code> attribute must have a
+    value consisting of a valid RFC 3066 language code. <a
+    href="#refsRFC3066">[RFC3066]</a></p>
 
     <p class="note">This pragma is not exactly equivalent to the HTTP
     <code>Content-Language</code> header, for instance it only
@@ -11130,7 +11134,7 @@
 
    </dd>
 
-   <dt><dfn title="attr-meta-http-equiv-content-type">Encoding declaration state</dfn>
+   <dt><dfn title="attr-meta-http-equiv-content-type">Encoding declaration state</dfn> (<code title="">http-equiv="content-type"</code>)
 
    <dd>
 
@@ -11141,31 +11145,35 @@
     class="impl">This state's user agent requirements are all handled
     by the parsing section of the specification.</span></p>
 
-    <p>For <code>meta</code> elements in the <span
-    title="attr-meta-http-equiv-content-type">Encoding declaration
-    state</span>, the <code title="attr-meta-content">content</code>
-    attribute must have a value that is an <span>ASCII
-    case-insensitive</span> match for a string that consists of: the
-    literal string "<code title="">text/html;</code>", optionally
-    followed by any number of <span title="space character">space
-    characters</span>, followed by the literal string "<code
-    title="">charset=</code>", followed by the character encoding name
-    of the <span>character encoding declaration</span>.</p>
+    <p>For <code>meta</code> elements with an <code
+    title="attr-meta-http-equiv">http-equiv</code> attribute in the
+    <span title="attr-meta-http-equiv-content-type">Encoding
+    declaration state</span>, the <code
+    title="attr-meta-content">content</code> attribute must have a
+    value that is an <span>ASCII case-insensitive</span> match for a
+    string that consists of: the literal string "<code
+    title="">text/html;</code>", optionally followed by any number of
+    <span title="space character">space characters</span>, followed by
+    the literal string "<code title="">charset=</code>", followed by
+    the character encoding name of the <span>character encoding
+    declaration</span>.</p>
 
-    <p>If the document contains a <code>meta</code> element in the
-    <span title="attr-meta-http-equiv-content-type">Encoding
+    <p>If the document contains a <code>meta</code> element with an
+    <code title="attr-meta-http-equiv">http-equiv</code> attribute in
+    the <span title="attr-meta-http-equiv-content-type">Encoding
     declaration state</span>, then the document must not contain a
     <code>meta</code> element with the <code
     title="attr-meta-charset">charset</code> attribute present.</p>
 
     <p>The <span title="attr-meta-http-equiv-content-type">Encoding
     declaration state</span> may be used in <span>HTML
-    documents</span>, but elements in that state must not be used in
-    <span>XML documents</span>.</p>
+    documents</span>, but elements with an <code
+    title="attr-meta-http-equiv">http-equiv</code> attribute in that
+    state must not be used in <span>XML documents</span>.</p>
 
    </dd>
 
-   <dt><dfn title="attr-meta-http-equiv-default-style">Default style state</dfn>
+   <dt><dfn title="attr-meta-http-equiv-default-style">Default style state</dfn> (<code title="">http-equiv="default-style"</code>)
 
    <dd>
 
@@ -11193,7 +11201,7 @@
 
    </dd>
 
-   <dt><dfn title="attr-meta-http-equiv-refresh">Refresh state</dfn>
+   <dt><dfn title="attr-meta-http-equiv-refresh">Refresh state</dfn> (<code title="">http-equiv="refresh"</code>)
 
    <dd>
 
@@ -11204,11 +11212,12 @@
     <ol>
      <!-- TESTS: http://www.hixie.ch/tests/adhoc/html/meta/refresh/ -->
 
-     <li><p>If another <code>meta</code> element in the <span
-     title="attr-meta-http-equiv-refresh">Refresh state</span> has
-     already been successfully processed (i.e. when it was inserted
-     the user agent processed it and reached the last step of this
-     list of steps), then abort these steps.</p></li>
+     <li><p>If another <code>meta</code> element with an <code
+     title="attr-meta-http-equiv">http-equiv</code> attribute in the
+     <span title="attr-meta-http-equiv-refresh">Refresh state</span>
+     has already been successfully processed (i.e. when it was
+     inserted the user agent processed it and reached the last step of
+     this list of steps), then abort these steps.</p></li>
 
      <li><p>If the <code>meta</code> element has no <code
      title="attr-meta-content">content</code> attribute, or if that
@@ -11340,10 +11349,11 @@
 
     </div>
 
-    <p>For <code>meta</code> elements in the <span
-    title="attr-meta-http-equiv-refresh">Refresh state</span>, the
-    <code title="attr-meta-content">content</code> attribute must have
-    a value consisting either of:
+    <p>For <code>meta</code> elements with an <code
+    title="attr-meta-http-equiv">http-equiv</code> attribute in the
+    <span title="attr-meta-http-equiv-refresh">Refresh state</span>,
+    the <code title="attr-meta-content">content</code> attribute must
+    have a value consisting either of:</p>
 
     <ul>
 
@@ -11475,15 +11485,17 @@
   itself, then the encoding must be specified using a
   <code>meta</code> element with a <code
   title="attr-meta-charset">charset</code> attribute or a
-  <code>meta</code> element in the <span
-  title="attr-meta-http-equiv-content-type">Encoding declaration
+  <code>meta</code> element with an <code
+  title="attr-meta-http-equiv">http-equiv</code> attribute in the
+  <span title="attr-meta-http-equiv-content-type">Encoding declaration
   state</span>.</p>
 
   <p>If an <span title="HTML documents">HTML document</span> contains
   a <code>meta</code> element with a <code
   title="attr-meta-charset">charset</code> attribute or a
-  <code>meta</code> element in the <span
-  title="attr-meta-http-equiv-content-type">Encoding declaration
+  <code>meta</code> element with an <code
+  title="attr-meta-http-equiv">http-equiv</code> attribute in the
+  <span title="attr-meta-http-equiv-content-type">Encoding declaration
   state</span>, then the character encoding used must be an
   <span>ASCII-compatible character encoding</span>.</p>
 




More information about the Commit-Watchers mailing list