[html5] r3059 - [] (0) Redefine getElementsByTagName() for performance.

whatwg at whatwg.org whatwg at whatwg.org
Fri May 1 18:18:22 PDT 2009


Author: ianh
Date: 2009-05-01 18:18:22 -0700 (Fri, 01 May 2009)
New Revision: 3059

Modified:
   index
   source
Log:
[] (0) Redefine getElementsByTagName() for performance.

Modified: index
===================================================================
--- index	2009-05-01 23:21:36 UTC (rev 3058)
+++ index	2009-05-02 01:18:22 UTC (rev 3059)
@@ -39,7 +39,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 1 May 2009</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 2 May 2009</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -9038,14 +9038,23 @@
 
    <dd>
 
-    <p>These methods (but not their namespaced counterparts) <span class=impl>must</span> compare the given argument in an
-    <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner when looking at <a href=#html-elements title="HTML elements">HTML elements</a>, and in a
-    <a href=#case-sensitive>case-sensitive</a> 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
+    <a href=#case-sensitive>case-sensitive</a> manner, but when looking at <a href=#html-elements title="HTML elements">HTML elements</a>, the argument must
+    first be <a href=#converted-to-lowercase>converted to lowercase</a>.</p>
+
+    </div>
+
     <p class=note>Thus, in an <a href=#html-documents title="HTML documents">HTML
     document</a> 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>
    

Modified: source
===================================================================
--- source	2009-05-01 23:21:36 UTC (rev 3058)
+++ source	2009-05-02 01:18:22 UTC (rev 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>
    




More information about the Commit-Watchers mailing list