Skip to content
Permalink
Browse files

[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

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 d1387900d386962e8a336a6b6aa13fd1dad8ec1c
Showing with 25 additions and 15 deletions.
  1. +8 −5 complete.html
  2. +8 −5 index
  3. +9 −5 source
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

<!-- 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
<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>
13 index
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

<!-- 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
<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>
14 source
-->

<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
<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
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>

0 comments on commit d138790

Please sign in to comment.
You can’t perform that action at this time.