Skip to content

Commit

Permalink
[giow] (2) Change how <meta> is processed during parsing to require a…
Browse files Browse the repository at this point in the history
…n explicit http-equiv=content-type where applicable.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9225

git-svn-id: http://svn.whatwg.org/webapps@4994 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 12, 2010
1 parent d36e742 commit 89c25ff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
13 changes: 8 additions & 5 deletions complete.html
Expand Up @@ -77976,12 +77976,15 @@ <h5 id=the-before-head-insertion-mode><span class=secno>12.2.5.6 </span>The "<df
encoding</a> to the encoding given by the value of the
<code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute.</p>

<p>Otherwise, if the element has a <code title=attr-meta-charset><a href=#attr-meta-charset>content</a></code> attribute, and
<p>Otherwise, if the element has an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute whose
value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
string "<code title="">Content-Type</code>", and the element has a
<code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, and
applying the <a href=#algorithm-for-extracting-an-encoding-from-a-content-type>algorithm for extracting an encoding from a
Content-Type</a> to its value returns a supported encoding
<var title="">encoding</var>, and the <a href=#concept-encoding-confidence title=concept-encoding-confidence>confidence</a> is
currently <i>tentative</i>, then <a href=#change-the-encoding>change the
encoding</a> to the encoding <var title="">encoding</var>.</p>
Content-Type</a> to that attribute's value returns a supported
encoding <var title="">encoding</var>, and the <a href=#concept-encoding-confidence title=concept-encoding-confidence>confidence</a> is currently
<i>tentative</i>, then <a href=#change-the-encoding>change the encoding</a> to the
encoding <var title="">encoding</var>.</p>

</dd>

Expand Down
13 changes: 8 additions & 5 deletions index
Expand Up @@ -71248,12 +71248,15 @@ document.body.appendChild(text);
encoding</a> to the encoding given by the value of the
<code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute.</p>

<p>Otherwise, if the element has a <code title=attr-meta-charset><a href=#attr-meta-charset>content</a></code> attribute, and
<p>Otherwise, if the element has an <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute whose
value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
string "<code title="">Content-Type</code>", and the element has a
<code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, and
applying the <a href=#algorithm-for-extracting-an-encoding-from-a-content-type>algorithm for extracting an encoding from a
Content-Type</a> to its value returns a supported encoding
<var title="">encoding</var>, and the <a href=#concept-encoding-confidence title=concept-encoding-confidence>confidence</a> is
currently <i>tentative</i>, then <a href=#change-the-encoding>change the
encoding</a> to the encoding <var title="">encoding</var>.</p>
Content-Type</a> to that attribute's value returns a supported
encoding <var title="">encoding</var>, and the <a href=#concept-encoding-confidence title=concept-encoding-confidence>confidence</a> is currently
<i>tentative</i>, then <a href=#change-the-encoding>change the encoding</a> to the
encoding <var title="">encoding</var>.</p>

</dd>

Expand Down
18 changes: 10 additions & 8 deletions source
Expand Up @@ -88896,15 +88896,17 @@ document.body.appendChild(text);
encoding</span> to the encoding given by the value of the
<code title="attr-meta-charset">charset</code> attribute.</p>

<p>Otherwise, if the element has a <code
title="attr-meta-charset">content</code> attribute, and
<p>Otherwise, if the element has an <code
title="attr-meta-http-equiv">http-equiv</code> attribute whose
value is an <span>ASCII case-insensitive</span> match for the
string "<code title="">Content-Type</code>", and the element has a
<code title="attr-meta-content">content</code> attribute, and
applying the <span>algorithm for extracting an encoding from a
Content-Type</span> to its value returns a supported encoding
<var title="">encoding</var>, and the <span
title="concept-encoding-confidence">confidence</span> is
currently <i>tentative</i>, then <span>change the
encoding</span> to the encoding <var
title="">encoding</var>.</p>
Content-Type</span> to that attribute's value returns a supported
encoding <var title="">encoding</var>, and the <span
title="concept-encoding-confidence">confidence</span> is currently
<i>tentative</i>, then <span>change the encoding</span> to the
encoding <var title="">encoding</var>.</p>

</dd>

Expand Down

0 comments on commit 89c25ff

Please sign in to comment.