Skip to content

Commit

Permalink
[giow] (3) Don't set the language when it's just spaces.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21750
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7894 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 4, 2013
1 parent a1f319f commit d138790
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
13 changes: 8 additions & 5 deletions complete.html
Expand Up @@ -13300,7 +13300,7 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>
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
Expand All @@ -13324,8 +13324,7 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>

<!-- 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
Expand All @@ -13345,8 +13344,12 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>
<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>
Expand Down
13 changes: 8 additions & 5 deletions index
Expand Up @@ -13300,7 +13300,7 @@ http://philip.html5.org/data/meta-http-equiv.txt
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
Expand All @@ -13324,8 +13324,7 @@ people expect to have work and what is necessary.

<!-- 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
Expand All @@ -13345,8 +13344,12 @@ people expect to have work and what is necessary.
<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>
Expand Down
14 changes: 9 additions & 5 deletions source
Expand Up @@ -13654,7 +13654,7 @@ people expect to have work and what is necessary.
-->

<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
Expand Down Expand Up @@ -13683,8 +13683,7 @@ people expect to have work and what is necessary.
<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
Expand All @@ -13706,8 +13705,13 @@ people expect to have work and what is necessary.
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>

Expand Down

0 comments on commit d138790

Please sign in to comment.