Skip to content

Commit

Permalink
[ac] (0) Allow encodings to be given case-insensitively.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8090

git-svn-id: http://svn.whatwg.org/webapps@4370 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 27, 2009
1 parent 02bad58 commit e6dd160
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 34 deletions.
26 changes: 15 additions & 11 deletions complete.html
Expand Up @@ -2057,7 +2057,7 @@ <h4 id=character-encodings><span class=secno>2.1.6 </span>Character encodings</h
<p>The <dfn id=preferred-mime-name>preferred MIME name</dfn> of a character encoding is the
name or alias labeled as "preferred MIME name" in the IANA
<cite>Character Sets</cite> registry, if there is one, or the
encoding's name, if none of the aliases are so labeled. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
encoding's name, if none of the aliases are so labeled. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>An <dfn id=ascii-compatible-character-encoding>ASCII-compatible character encoding</dfn> is a
single-byte or variable-length encoding in which the bytes 0x09,
Expand Down Expand Up @@ -11851,7 +11851,8 @@ <h5 id=charset><span class=secno>4.2.5.5 </span>Specifying the document's charac
character encoding used to serialize the file.</li>

<li>The value must be a valid character encoding name, and must be
the <a href=#preferred-mime-name>preferred MIME name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></li>
an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
<a href=#preferred-mime-name>preferred MIME name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></li>

<li>The character encoding declaration must be serialized without
the use of <a href=#syntax-charref title=syntax-charref>character references</a>
Expand Down Expand Up @@ -12385,10 +12386,11 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
attribute gives the character encoding of the external script
resource. The attribute must not be specified if the <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute is not present. If the
attribute is set, its value must be a valid character encoding name,
must be the <a href=#preferred-mime-name>preferred MIME name</a> for that encoding, and
must match the encoding given in the <code title="">charset</code>
parameter of the <a href=#content-type title=Content-Type>Content-Type
metadata</a> of the external file, if any. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
must be an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
<a href=#preferred-mime-name>preferred MIME name</a> for that encoding, and must match
the encoding given in the <code title="">charset</code> parameter of
the <a href=#content-type title=Content-Type>Content-Type metadata</a> of the
external file, if any. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>The <dfn id=attr-script-async title=attr-script-async><code>async</code></dfn> and
<dfn id=attr-script-defer title=attr-script-defer><code>defer</code></dfn> attributes
Expand Down Expand Up @@ -31006,9 +31008,10 @@ <h4 id=the-form-element><span class=secno>4.10.1 </span>The <dfn><code>form</cod
<p>The <dfn id=attr-form-accept-charset title=attr-form-accept-charset><code>accept-charset</code></dfn>
attribute gives the character encodings that are to be used for the
submission. If specified, the value must be an <a href=#ordered-set-of-unique-space-separated-tokens>ordered set of
unique space-separated tokens</a>, and each token must be the
<a href=#preferred-mime-name>preferred MIME name</a> of an <a href=#ascii-compatible-character-encoding>ASCII-compatible
character encoding</a>. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
unique space-separated tokens</a>, and each token must be an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the <a href=#preferred-mime-name>preferred
MIME name</a> of an <a href=#ascii-compatible-character-encoding>ASCII-compatible character
encoding</a>. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>The <dfn id=attr-form-name title=attr-form-name><code>name</code></dfn> attribute
represents the <code><a href=#the-form-element>form</a></code>'s name within the <code title=dom-document-forms><a href=#dom-document-forms>forms</a></code> collection. The value must
Expand Down Expand Up @@ -83555,7 +83558,8 @@ <h3 id=text/html><span class=secno>15.1 </span><dfn><code>text/html</code></dfn>
declaration">character encoding declarations</a> in the
document. The parameter's value must be the name of the
character encoding used to serialize the file, must be a valid
character encoding name, and must be the <a href=#preferred-mime-name>preferred MIME
character encoding name, and must be an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the <a href=#preferred-mime-name>preferred MIME
name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
</dd>
</dl></dd>
Expand Down Expand Up @@ -85042,7 +85046,7 @@ <h3 class=no-num id=attributes-0>Attributes</h3>
<tr><th> <code title="">accept-charset</code>
<td> <code title=attr-form-accept-charset><a href=#attr-form-accept-charset>form</a></code>
<td> Character encodings to use for <a href=#form-submission>form submission</a>
<td> <a href=#ordered-set-of-unique-space-separated-tokens>Ordered set of unique space-separated tokens</a> consisting of <a href=#preferred-mime-name title="preferred MIME name">preferred MIME names</a> of <a href=#ascii-compatible-character-encoding title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>
<td> <a href=#ordered-set-of-unique-space-separated-tokens>Ordered set of unique space-separated tokens</a> consisting of <a href=#preferred-mime-name title="preferred MIME name">preferred MIME names</a> of <a href=#ascii-compatible-character-encoding title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>*
<tr><th> <code title="">accesskey</code>
<td> <a href=#the-accesskey-attribute title=attr-accesskey>HTML elements</a>
<td> Keyboard shortcut to activate or focus element
Expand Down
26 changes: 15 additions & 11 deletions index
Expand Up @@ -1875,7 +1875,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The <dfn id=preferred-mime-name>preferred MIME name</dfn> of a character encoding is the
name or alias labeled as "preferred MIME name" in the IANA
<cite>Character Sets</cite> registry, if there is one, or the
encoding's name, if none of the aliases are so labeled. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
encoding's name, if none of the aliases are so labeled. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>An <dfn id=ascii-compatible-character-encoding>ASCII-compatible character encoding</dfn> is a
single-byte or variable-length encoding in which the bytes 0x09,
Expand Down Expand Up @@ -11669,7 +11669,8 @@ people expect to have work and what is necessary.
character encoding used to serialize the file.</li>

<li>The value must be a valid character encoding name, and must be
the <a href=#preferred-mime-name>preferred MIME name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></li>
an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
<a href=#preferred-mime-name>preferred MIME name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></li>

<li>The character encoding declaration must be serialized without
the use of <a href=#syntax-charref title=syntax-charref>character references</a>
Expand Down Expand Up @@ -12203,10 +12204,11 @@ c-end = "-->"
attribute gives the character encoding of the external script
resource. The attribute must not be specified if the <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute is not present. If the
attribute is set, its value must be a valid character encoding name,
must be the <a href=#preferred-mime-name>preferred MIME name</a> for that encoding, and
must match the encoding given in the <code title="">charset</code>
parameter of the <a href=#content-type title=Content-Type>Content-Type
metadata</a> of the external file, if any. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
must be an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
<a href=#preferred-mime-name>preferred MIME name</a> for that encoding, and must match
the encoding given in the <code title="">charset</code> parameter of
the <a href=#content-type title=Content-Type>Content-Type metadata</a> of the
external file, if any. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>The <dfn id=attr-script-async title=attr-script-async><code>async</code></dfn> and
<dfn id=attr-script-defer title=attr-script-defer><code>defer</code></dfn> attributes
Expand Down Expand Up @@ -30824,9 +30826,10 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
<p>The <dfn id=attr-form-accept-charset title=attr-form-accept-charset><code>accept-charset</code></dfn>
attribute gives the character encodings that are to be used for the
submission. If specified, the value must be an <a href=#ordered-set-of-unique-space-separated-tokens>ordered set of
unique space-separated tokens</a>, and each token must be the
<a href=#preferred-mime-name>preferred MIME name</a> of an <a href=#ascii-compatible-character-encoding>ASCII-compatible
character encoding</a>. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
unique space-separated tokens</a>, and each token must be an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the <a href=#preferred-mime-name>preferred
MIME name</a> of an <a href=#ascii-compatible-character-encoding>ASCII-compatible character
encoding</a>. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>The <dfn id=attr-form-name title=attr-form-name><code>name</code></dfn> attribute
represents the <code><a href=#the-form-element>form</a></code>'s name within the <code title=dom-document-forms><a href=#dom-document-forms>forms</a></code> collection. The value must
Expand Down Expand Up @@ -74526,7 +74529,8 @@ interface <a href=#htmldocument>HTMLDocument</a> {
declaration">character encoding declarations</a> in the
document. The parameter's value must be the name of the
character encoding used to serialize the file, must be a valid
character encoding name, and must be the <a href=#preferred-mime-name>preferred MIME
character encoding name, and must be an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the <a href=#preferred-mime-name>preferred MIME
name</a> for that encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
</dd>
</dl></dd>
Expand Down Expand Up @@ -76013,7 +76017,7 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<tr><th> <code title="">accept-charset</code>
<td> <code title=attr-form-accept-charset><a href=#attr-form-accept-charset>form</a></code>
<td> Character encodings to use for <a href=#form-submission>form submission</a>
<td> <a href=#ordered-set-of-unique-space-separated-tokens>Ordered set of unique space-separated tokens</a> consisting of <a href=#preferred-mime-name title="preferred MIME name">preferred MIME names</a> of <a href=#ascii-compatible-character-encoding title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>
<td> <a href=#ordered-set-of-unique-space-separated-tokens>Ordered set of unique space-separated tokens</a> consisting of <a href=#preferred-mime-name title="preferred MIME name">preferred MIME names</a> of <a href=#ascii-compatible-character-encoding title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>*
<tr><th> <code title="">accesskey</code>
<td> <a href=#the-accesskey-attribute title=attr-accesskey>HTML elements</a>
<td> Keyboard shortcut to activate or focus element
Expand Down
27 changes: 15 additions & 12 deletions source
Expand Up @@ -888,7 +888,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The <dfn>preferred MIME name</dfn> of a character encoding is the
name or alias labeled as "preferred MIME name" in the IANA
<cite>Character Sets</cite> registry, if there is one, or the
encoding's name, if none of the aliases are so labeled. <a
encoding's name, if none of the aliases are so labeled. <a
href="#refsIANACHARSET">[IANACHARSET]</a></p>

<p>An <dfn>ASCII-compatible character encoding</dfn> is a
Expand Down Expand Up @@ -12330,7 +12330,8 @@ people expect to have work and what is necessary.
character encoding used to serialize the file.</li>

<li>The value must be a valid character encoding name, and must be
the <span>preferred MIME name</span> for that encoding. <a
an <span>ASCII case-insensitive</span> match for the
<span>preferred MIME name</span> for that encoding. <a
href="#refsIANACHARSET">[IANACHARSET]</a></li>

<li>The character encoding declaration must be serialized without
Expand Down Expand Up @@ -12921,10 +12922,11 @@ c-end = "-->"
resource. The attribute must not be specified if the <code
title="attr-script-src">src</code> attribute is not present. If the
attribute is set, its value must be a valid character encoding name,
must be the <span>preferred MIME name</span> for that encoding, and
must match the encoding given in the <code title="">charset</code>
parameter of the <span title="Content-Type">Content-Type
metadata</span> of the external file, if any. <a
must be an <span>ASCII case-insensitive</span> match for the
<span>preferred MIME name</span> for that encoding, and must match
the encoding given in the <code title="">charset</code> parameter of
the <span title="Content-Type">Content-Type metadata</span> of the
external file, if any. <a
href="#refsIANACHARSET">[IANACHARSET]</a></p>

<p>The <dfn title="attr-script-async"><code>async</code></dfn> and
Expand Down Expand Up @@ -34160,10 +34162,10 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
title="attr-form-accept-charset"><code>accept-charset</code></dfn>
attribute gives the character encodings that are to be used for the
submission. If specified, the value must be an <span>ordered set of
unique space-separated tokens</span>, and each token must be the
<span>preferred MIME name</span> of an <span>ASCII-compatible
character encoding</span>. <a
href="#refsIANACHARSET">[IANACHARSET]</a></p>
unique space-separated tokens</span>, and each token must be an
<span>ASCII case-insensitive</span> match for the <span>preferred
MIME name</span> of an <span>ASCII-compatible character
encoding</span>. <a href="#refsIANACHARSET">[IANACHARSET]</a></p>

<p>The <dfn title="attr-form-name"><code>name</code></dfn> attribute
represents the <code>form</code>'s name within the <code
Expand Down Expand Up @@ -91840,7 +91842,8 @@ interface <span>HTMLDocument</span> {
declaration">character encoding declarations</span> in the
document. The parameter's value must be the name of the
character encoding used to serialize the file, must be a valid
character encoding name, and must be the <span>preferred MIME
character encoding name, and must be an <span>ASCII
case-insensitive</span> match for the <span>preferred MIME
name</span> for that encoding. <a
href="#refsIANACHARSET">[IANACHARSET]</a></p>
</dd>
Expand Down Expand Up @@ -93670,7 +93673,7 @@ interface <span>HTMLDocument</span> {
<th> <code title="">accept-charset</code>
<td> <code title="attr-form-accept-charset">form</code>
<td> Character encodings to use for <span>form submission</span>
<td> <span>Ordered set of unique space-separated tokens</span> consisting of <span title="preferred MIME name">preferred MIME names</span> of <span title="ASCII-compatible character encoding">ASCII-compatible character encodings</span>
<td> <span>Ordered set of unique space-separated tokens</span> consisting of <span title="preferred MIME name">preferred MIME names</span> of <span title="ASCII-compatible character encoding">ASCII-compatible character encodings</span>*
<tr>
<th> <code title="">accesskey</code>
<td> <span title="attr-accesskey">HTML elements</span>
Expand Down

0 comments on commit e6dd160

Please sign in to comment.