HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/1937

SVNBugCommentTime (UTC)
1937[Gecko] [Opera] [Webkit] Define order and case-sensitivity of getElementsByClassName().2008-07-25 09:46
Index: source
===================================================================
--- source	(revision 1936)
+++ source	(revision 1937)
@@ -5347,11 +5347,15 @@
   contains an <span>unordered set of unique space-separated
   tokens</span> representing classes. When called, the method must
   return a live <code>NodeList</code> object containing all the
-  elements in the document that have all the classes specified in that
-  argument, having obtained the classes by <span title="split a string
-  on spaces">splitting a string on spaces</span>. If there are no
-  tokens specified in the argument, then the method must return an
-  empty <code>NodeList</code>.</p>
+  elements in the document, in <span>tree order</span>, that have all
+  the classes specified in that argument, having obtained the classes
+  by <span title="split a string on spaces">splitting a string on
+  spaces</span>. If there are no tokens specified in the argument,
+  then the method must return an empty <code>NodeList</code>. If the
+  document is in <span>quirks mode</span>, then the comparisons for
+  the classes must be done in an <span>ASCII case-insensitive</span>
+  manner, otherwise, the comparisons must be done in a
+  <span>case-sensitive</span> manner.</p>
 
   <p>The <dfn
   title="dom-getElementsByClassName"><code>getElementsByClassName()</code></dfn>
@@ -49282,10 +49286,10 @@
   Sullivan, Darin Adler, Darin Fisher, Dave Camp, Dave Singer, Dave
   Townsend<!-- Mossop on moz irc -->, David Baron, David Bloom, David
   Carlisle, David Flanagan, David H&aring;s&auml;ther, David Hyatt,
-  Dean Edridge, Debi Orton, Derek Featherstone, DeWitt Clinton,
-  Dimitri Glazkov, dolphinling, Doron Rosenberg, Doug Kramer, Eira
-  Monstad, Elliotte Harold, Eric Law, Erik Arvidsson, Evan Martin,
-  Evan Prodromou, fantasai, Felix Sasaki, Franck 'Shift'
+  David Smith, Dean Edridge, Debi Orton, Derek Featherstone, DeWitt
+  Clinton, Dimitri Glazkov, dolphinling, Doron Rosenberg, Doug Kramer,
+  Eira Monstad, Elliotte Harold, Eric Law, Erik Arvidsson, Evan
+  Martin, Evan Prodromou, fantasai, Felix Sasaki, Franck 'Shift'
   Qu&eacute;lain, Garrett Smith, Geoffrey Garen, Geoffrey Sneddon,
   H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied, Henry Mason, Hugh
   Winkler, Ignacio Javier, Ivo Emanuel Gon&ccedil;alves, J. King,

|