Skip to content

Commit

Permalink
[giow] (3) Change Content-Language pragma to obeying the last pragma,…
Browse files Browse the repository at this point in the history
… not the first, as this is closer to what Firefox, IE9, and WebKit do.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7283 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 27, 2012
1 parent 43ce796 commit 68f00c4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 36 deletions.
19 changes: 7 additions & 12 deletions complete.html
Expand Up @@ -15531,18 +15531,13 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>
encouraged to use the <code title=attr-lang><a href=#attr-lang>lang</a></code>
attribute instead.</p>

<p>This pragma sets the <dfn id=pragma-set-default-language>pragma-set default
language</dfn>. Until the pragma is successfully processed, there
is no <a href=#pragma-set-default-language>pragma-set default language</a>.</p>

<ol><li><p>If another <code><a href=#the-meta-element>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>
<p>This pragma sets the <dfn id=pragma-set-default-language>pragma-set default language</dfn>.
Until such a pragma is successfully processed, there is no
<a href=#pragma-set-default-language>pragma-set default language</a>.</p>

<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
<!-- 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
steps.</li>

Expand All @@ -15564,7 +15559,7 @@ <h5 id=pragma-directives><span class=secno>4.2.5.3 </span>Pragma directives</h5>
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>Let the <a href=#pragma-set-default-language>pragma-set default language</a> be the
<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>

</ol><p class=note>This pragma is not exactly equivalent to the HTTP
Expand Down
19 changes: 7 additions & 12 deletions index
Expand Up @@ -15531,18 +15531,13 @@ people expect to have work and what is necessary.
encouraged to use the <code title=attr-lang><a href=#attr-lang>lang</a></code>
attribute instead.</p>

<p>This pragma sets the <dfn id=pragma-set-default-language>pragma-set default
language</dfn>. Until the pragma is successfully processed, there
is no <a href=#pragma-set-default-language>pragma-set default language</a>.</p>

<ol><li><p>If another <code><a href=#the-meta-element>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>
<p>This pragma sets the <dfn id=pragma-set-default-language>pragma-set default language</dfn>.
Until such a pragma is successfully processed, there is no
<a href=#pragma-set-default-language>pragma-set default language</a>.</p>

<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
<!-- 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
steps.</li>

Expand All @@ -15564,7 +15559,7 @@ people expect to have work and what is necessary.
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>Let the <a href=#pragma-set-default-language>pragma-set default language</a> be the
<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>

</ol><p class=note>This pragma is not exactly equivalent to the HTTP
Expand Down
18 changes: 6 additions & 12 deletions source
Expand Up @@ -16512,19 +16512,13 @@ people expect to have work and what is necessary.
encouraged to use the <code title="attr-lang">lang</code>
attribute instead.</p>

<p>This pragma sets the <dfn>pragma-set default
language</dfn>. Until the pragma is successfully processed, there
is no <span>pragma-set default language</span>.</p>
<p>This pragma sets the <dfn>pragma-set default language</dfn>.
Until such a pragma is successfully processed, there is no
<span>pragma-set default language</span>.</p>

<ol>
<!-- http://www.hixie.ch/tests/adhoc/html/meta/content-language/ -->

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

<li><p>If the <code>meta</code> element has no <code
title="attr-meta-content">content</code> attribute, or if that
Expand All @@ -16551,7 +16545,7 @@ 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>Let the <span>pragma-set default language</span> be the
<li><p>Set the <span>pragma-set default language</span> to the
string that resulted from the previous step.</p></li>

</ol>
Expand Down

0 comments on commit 68f00c4

Please sign in to comment.