[html5] r7894 - [giow] (3) Don't set the language when it's just spaces. Fixing https://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 4 13:27:18 PDT 2013


Author: ianh
Date: 2013-06-04 13:27:17 -0700 (Tue, 04 Jun 2013)
New Revision: 7894

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Don't set the language when it's just spaces.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21750
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-06-04 20:12:23 UTC (rev 7893)
+++ complete.html	2013-06-04 20:27:17 UTC (rev 7894)
@@ -13300,7 +13300,7 @@
 These numbers are low; further study is required to establish what
 people expect to have work and what is necessary.
 --><div class=impl>
-
+<!--CLEANUP-->
   <p>When a <code><a href=#the-meta-element>meta</a></code> element is <a href=#insert-an-element-into-a-document title="insert an
   element into a document">inserted into the document</a>, if its
   <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is
@@ -13324,8 +13324,7 @@
 
     <!-- http://www.hixie.ch/tests/adhoc/html/meta/content-language/ -->
 
-    <ol><li><p>If the <code><a href=#the-meta-element>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
+    <ol><li><p>If the <code><a href=#the-meta-element>meta</a></code> element has no <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, then abort these
      steps.</li>
 
      <li><p>If the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute contains a
@@ -13345,9 +13344,13 @@
      <li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> that are not<!--neither--> <a href=#space-character title="space character">space characters</a><!-- nor a U+002C
      COMMA character (,)-->.</li>
 
-     <li><p>Set the <a href=#pragma-set-default-language>pragma-set default language</a> to the
-     string that resulted from the previous step.</li>
+     <li><p>Let <var title="">candidate</var> be the string that resulted from the previous
+     step.</li>
 
+     <li><p>If <var title="">candidate</var> is the empty string, abort these steps.</li>
+
+     <li><p>Set the <a href=#pragma-set-default-language>pragma-set default language</a> to <var title="">candidate</var>.</li>
+
     </ol><p class=note>This pragma is not exactly equivalent to the HTTP
     <code>Content-Language</code> header. <a href=#refsHTTP>[HTTP]</a></p>
 

Modified: index
===================================================================
--- index	2013-06-04 20:12:23 UTC (rev 7893)
+++ index	2013-06-04 20:27:17 UTC (rev 7894)
@@ -13300,7 +13300,7 @@
 These numbers are low; further study is required to establish what
 people expect to have work and what is necessary.
 --><div class=impl>
-
+<!--CLEANUP-->
   <p>When a <code><a href=#the-meta-element>meta</a></code> element is <a href=#insert-an-element-into-a-document title="insert an
   element into a document">inserted into the document</a>, if its
   <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is
@@ -13324,8 +13324,7 @@
 
     <!-- http://www.hixie.ch/tests/adhoc/html/meta/content-language/ -->
 
-    <ol><li><p>If the <code><a href=#the-meta-element>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
+    <ol><li><p>If the <code><a href=#the-meta-element>meta</a></code> element has no <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, then abort these
      steps.</li>
 
      <li><p>If the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute contains a
@@ -13345,9 +13344,13 @@
      <li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> that are not<!--neither--> <a href=#space-character title="space character">space characters</a><!-- nor a U+002C
      COMMA character (,)-->.</li>
 
-     <li><p>Set the <a href=#pragma-set-default-language>pragma-set default language</a> to the
-     string that resulted from the previous step.</li>
+     <li><p>Let <var title="">candidate</var> be the string that resulted from the previous
+     step.</li>
 
+     <li><p>If <var title="">candidate</var> is the empty string, abort these steps.</li>
+
+     <li><p>Set the <a href=#pragma-set-default-language>pragma-set default language</a> to <var title="">candidate</var>.</li>
+
     </ol><p class=note>This pragma is not exactly equivalent to the HTTP
     <code>Content-Language</code> header. <a href=#refsHTTP>[HTTP]</a></p>
 

Modified: source
===================================================================
--- source	2013-06-04 20:12:23 UTC (rev 7893)
+++ source	2013-06-04 20:27:17 UTC (rev 7894)
@@ -13654,7 +13654,7 @@
 -->
 
   <div class="impl">
-
+<!--CLEANUP-->
   <p>When a <code>meta</code> element is <span title="insert an
   element into a document">inserted into the document</span>, if its
   <code title="attr-meta-http-equiv">http-equiv</code> attribute is
@@ -13683,8 +13683,7 @@
     <ol>
 
      <li><p>If the <code>meta</code> element has no <code
-     title="attr-meta-content">content</code> attribute, or if that
-     attribute's value is the empty string, then abort these
+     title="attr-meta-content">content</code> attribute, then abort these
      steps.</p></li>
 
      <li><p>If the element's <code
@@ -13706,9 +13705,14 @@
      title="space character">space characters</span><!-- nor a U+002C
      COMMA character (,)-->.</p></li>
 
-     <li><p>Set the <span>pragma-set default language</span> to the
-     string that resulted from the previous step.</p></li>
+     <li><p>Let <var title="">candidate</var> be the string that resulted from the previous
+     step.</p></li>
 
+     <li><p>If <var title="">candidate</var> is the empty string, abort these steps.</p></li>
+
+     <li><p>Set the <span>pragma-set default language</span> to <var
+     title="">candidate</var>.</p></li>
+
     </ol>
 
     <p class="note">This pragma is not exactly equivalent to the HTTP




More information about the Commit-Watchers mailing list