Redefine getElementsByTagName() for performance. (whatwg r3059)

Redefine getElementsByTagName() for performance. (whatwg r3059)

Editor's Draft 2 May 2009
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2219.html#editor-s-draft-date-1-january-1970
A vocabulary and associated APIs for HTML and XHTML
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2219.html#a-vocabulary-and-associated-apis-for-html-and-xhtml
3.6 APIs in HTML documents
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2219.html#apis-in-html-documents
Status of this document
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2219.html#status-of-this-document

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2218&r2=1.2219&f=h
http://html5.org/tools/web-apps-tracker?from=3058&to=3059

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2218
retrieving revision 1.2219
diff -u -d -r1.2218 -r1.2219
--- Overview.html 1 May 2009 23:21:40 -0000 1.2218
+++ Overview.html 2 May 2009 01:18:26 -0000 1.2219
@@ -148,7 +148,7 @@
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
    <!--ZZZ:-->
    <!--<h2 class="no-num no-toc">W3C Working Draft 23 April 2009</h2>-->
-   <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 1 May 2009</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 2 May 2009</h2>
    <!--:ZZZ-->
    <dl><!-- ZZZ: update the month/day (twice), (un)comment out
     <dt>This Version:</dt>
@@ -241,7 +241,7 @@
   track.
   <!--ZZZ:-->
   <!--This specification is the 23 April 2009 Working Draft.-->
-  This specification is the 1 May 2009 Editor's Draft.
+  This specification is the 2 May 2009 Editor's Draft.
   <!--:ZZZ-->
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
   identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -8047,14 +8047,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>

Received on Saturday, 2 May 2009 01:21:25 UTC