HTML5 Tracker

Diff (omit for latest revision)
Filter

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

SVNBugCommentTime (UTC)
3059Redefine getElementsByTagName() for performance.2009-05-02 01:18
Index: source
===================================================================
--- source	(revision 3058)
+++ source	(revision 3059)
@@ -9389,16 +9389,24 @@
 
    <dd>
 
-    <p>These methods (but not their namespaced counterparts) <span
-    class="impl">must</span> compare the given argument in an
-    <span>ASCII case-insensitive</span> manner when looking at <span
-    title="HTML elements">HTML elements</span>, and in a
-    <span>case-sensitive</span> manner otherwise.</p>
+    <p>Names of HTML elements match regardless of case, but elements
+    from other namespaces are treated as in XML
+    (case-sensitively).</p>
 
+    <div class="impl">
+
+    <p>Specifically, these methods (but not their namespaced
+    counterparts) must compare the given argument in a
+    <span>case-sensitive</span> manner, but when looking at <span
+    title="HTML elements">HTML elements</span>, the argument must
+    first be <span>converted to lowercase</span>.</p>
+
+    </div>
+
     <p class="note">Thus, in an <span title="HTML documents">HTML
     document</span> with nodes in multiple namespaces, these methods
-    will be both case-sensitive and case-insensitive at the same
-    time.</p>
+    will effectively be both case-sensitive and case-insensitive at
+    the same time.</p>
 
    </dd>
    

|