Skip to content
Permalink
Browse files

[cgiowt] (2) Trade willful violation of ECMAScript for unintentional …

…violation of Unicode - update the character encoding alias rules.

git-svn-id: http://svn.whatwg.org/webapps@2812 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Feb 13, 2009
1 parent fbc6719 commit f6848ecdd9a205d3bb0e51084e98c47117f76221
Showing with 13 additions and 10 deletions.
  1. +6 −5 index
  2. +7 −5 source
11 index
<code><a href=#window>Window</a></code> object will be set to the <a href="#script's-browsing-context">script's
browsing context</a>'s <code><a href=#window>Window</a></code> object.</p>

<p class=note>This is a willful violation of ECMAScript edition
3. <a href=#refsECMA262>[ECMA262]</a></p>

</dd>

<dt>A <dfn id="script's-character-encoding" title="script's character encoding">character encoding</dfn></dt>

<p>When comparing a string specifying a character encoding with the
name or alias of a character encoding to determine if they are
equal, user agents must ignore all characters in the ranges U+0009
to U+000D, U+0020 to U+002F, U+003A to U+0040, U+005B to U+0060, and
U+007B to U+007E (all whitespace and punctuation characters in
ASCII) in both names, and then perform the comparison in an
<a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner.</p>
equal, user agents must use the Charset Alias Matching rules defined
in Unicode Technical Standard #22. <a href=#refsUTS22>[UTS22]</a></p> <!-- XXXrefs
http://unicode.org/reports/tr22/#Charset_Alias_Matching -->

<p class=example>For instance, "GB_2312-80" and "g.b.2312(80)" are
considered equivalent names.</p>
12 source
<code>Window</code> object will be set to the <span>script's
browsing context</span>'s <code>Window</code> object.</p>

<p class="note">This is a willful violation of ECMAScript edition
3. <a href="#refsECMA262">[ECMA262]</a></p>

</dd>

<dt>A <dfn title="script's character encoding">character encoding</dfn></dt>

<p>When comparing a string specifying a character encoding with the
name or alias of a character encoding to determine if they are
equal, user agents must ignore all characters in the ranges U+0009
to U+000D, U+0020 to U+002F, U+003A to U+0040, U+005B to U+0060, and
U+007B to U+007E (all whitespace and punctuation characters in
ASCII) in both names, and then perform the comparison in an
<span>ASCII case-insensitive</span> manner.</p>
equal, user agents must use the Charset Alias Matching rules defined
in Unicode Technical Standard #22. <a
href="#refsUTS22">[UTS22]</a></p> <!-- XXXrefs
http://unicode.org/reports/tr22/#Charset_Alias_Matching -->

<p class="example">For instance, "GB_2312-80" and "g.b.2312(80)" are
considered equivalent names.</p>

0 comments on commit f6848ec

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