NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 197 - Make encoding name normalisation part of the spec. ASCII spaces and punctuation get ignored. Control characters and characters above U+007F don't. ASCII text is case-insensitive.
Make encoding name normalisation part of the spec. ASCII spaces and punctuati...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-23 13:23 CEST by Henri Sivonen
Modified: 2008-05-28 14:23 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-05-23 13:23:04 CEST
Index: source
===================================================================
--- source	(revision 1670)
+++ source	(revision 1671)
@@ -39711,6 +39711,17 @@
   should support all the IANA-registered aliases. <a
   href="#refsIANACHARSET">[IANACHARSET]</a></p>
 
+  <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 the 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
+  case-insensitively<!-- XXX ASCII -->.</p>
+
+  <p class="example">For instance, "GB_2312-80" and "g.b.2312(80)" are
+  considered equivalent names.</p>
+
   <p>When a user agent would otherwise use an encoding given in the
   first column of the following table, it must instead use the
   encoding given in the cell in the second column of the same row. Any
@@ -46362,38 +46373,38 @@
   Justin Harrell, James M Snell, James Perrett, Jan-Klaas Kollhof,
   Jason White, Jasper Bryant-Greene, Jeff Cutsinger, Jeff Walden, Jens
   Bannmann, Jens Fendler, Jeroen van der Meer, Jim Jewett, Jim Meehan,
-  Joe Clark, Jjgod Jiang, Joel Spolsky, John Boyer, John Bussjaeger,
-  John Harding, Johnny Stenback, Jon Perlow, Jonathan Worent, Jorgen
-  Horstink, Josh Levenberg, Joshua Randall, Jukka K. Korpela, Julian
-  Reschke, Kai Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel
-  Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi),
-  Kristof Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laura
-  L. Carlson, Laura Wisewell, Laurens Holst, Lee Kowalkowski, Leif
-  Halvard Silli, Lenny Domnitser, L&eacute;onard Bouchet, Leons
-  Petrazickis, Logan<!-- on moz irc -->, Loune, Maciej Stachowiak,
-  Magnus Kristiansen<!-- Dashiva -->, Malcolm Rowe, Mark Nottingham,
-  Mark Rowe<!--bdash-->, Mark Schenk, Martijn Wargers, Martin Atkins,
-  Martin D&uuml;rst, Martin Honnen, Masataka Yakura, Mathieu Henri,
-  Matthew Mastracci, Matthew Raymond, Matthew Thomas, Mattias Waldau,
-  Max Romantschuk, Michael 'Ratt' Iannarelli, Michael A. Nachbaur,
-  Michael A. Puls II<!--Shadow2531-->, Michael Carter, Michael
-  Gratton, Michael Powers, Michael(tm) Smith, Michel Fortin, Michiel
-  van der Blonk, Mihai &#x015E;ucan<!-- from ROBO Design -->, Mike
-  Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike
+  Joe Clark, Jjgod Jiang, Joel Spolsky, Johan Herland, John Boyer,
+  John Bussjaeger, John Harding, Johnny Stenback, Jon Perlow, Jonathan
+  Worent, Jorgen Horstink, Josh Levenberg, Joshua Randall, Jukka
+  K. Korpela, Julian Reschke, Kai Hendry, <!-- Keryx Web, = Lars
+  Gunther --> Kornel Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7;
+  (KUROSAWA Takeshi), Kristof Zelechovski, Lachlan Hunt, Larry Page,
+  Lars Gunther, Laura L. Carlson, Laura Wisewell, Laurens Holst, Lee
+  Kowalkowski, Leif Halvard Silli, Lenny Domnitser, L&eacute;onard
+  Bouchet, Leons Petrazickis, Logan<!-- on moz irc -->, Loune, Maciej
+  Stachowiak, Magnus Kristiansen<!-- Dashiva -->, Malcolm Rowe, Mark
+  Nottingham, Mark Rowe<!--bdash-->, Mark Schenk, Martijn Wargers,
+  Martin Atkins, Martin D&uuml;rst, Martin Honnen, Masataka Yakura,
+  Mathieu Henri, Matthew Mastracci, Matthew Raymond, Matthew Thomas,
+  Mattias Waldau, Max Romantschuk, Michael 'Ratt' Iannarelli, Michael
+  A. Nachbaur, Michael A. Puls II<!--Shadow2531-->, Michael Carter,
+  Michael Gratton, Michael Powers, Michael(tm) Smith, Michel Fortin,
+  Michiel van der Blonk, Mihai &#x015E;ucan<!-- from ROBO Design -->,
+  Mike Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike
   Schinkel, Mike Shaver, Mikko Rantalainen, Neil Deakin, Neil Soiffer,
-  Olaf Hoffmann, Olav Junker Kj&aelig;r, Oliver Hunt, Peter Kasting,
-  Philip Taylor, Philip TAYLOR<!-- a different one -->, Rachid Finge,
-  Rajas Moonka, Ralf Stoltze, Ralph Giles, Raphael Champeimont, Rene
-  Saarsoo, Richard Ishida, Rimantas Liubertas, Robert O'Callahan,
-  Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby, Sam Weinig,
-  Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon Pieters,
-  Stefan Haustein, Stephen Ma, Steve Faulkner, Steve Runyon, Steven
-  Garrity, Stewart Brodie, Stuart Parmenter, Sunava Dutta, Tantek
-  &Ccedil;elik, Terrence Wood, Thomas Broyer, Thomas O'Connor, Tim
-  Altman, Tim Johansson, Tyler Close, Vladimir
-  Vuki&#x0107;evi&#x0107;, Wakaba, Wayne Pollock, William Swanson, and
-  &Oslash;istein E. Andersen, for their useful and substantial
-  comments.</p>
+  Olaf Hoffmann, Olav Junker Kj&aelig;r, Oliver Hunt, Peter Karlsson,
+  Peter Kasting, Philip Taylor, Philip TAYLOR<!-- a different one -->,
+  Rachid Finge, Rajas Moonka, Ralf Stoltze, Ralph Giles, Raphael
+  Champeimont, Rene Saarsoo, Richard Ishida, Rimantas Liubertas,
+  Robert O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam
+  Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia
+  Pfeiffer, Simon Pieters, Stefan Haustein, Stephen Ma, Steve
+  Faulkner, Steve Runyon, Steven Garrity, Stewart Brodie, Stuart
+  Parmenter, Sunava Dutta, Tantek &Ccedil;elik, Terrence Wood, Thomas
+  Broyer, Thomas O'Connor, Tim Altman, Tim Johansson, Tyler Close,
+  Vladimir Vuki&#x0107;evi&#x0107;, Wakaba, Wayne Pollock, William
+  Swanson, and &Oslash;istein E. Andersen, for their useful and
+  substantial comments.</p>
 
   <p>Thanks also to everyone who has ever posted about HTML5 to their
   blogs, public mailing lists, or forums, including the <a