Skip to content
Permalink
Browse files
[] (0) Redefine getElementsByTagName() for performance.
git-svn-id: http://svn.whatwg.org/webapps@3059 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 2, 2009
1 parent 903748c commit dfc56436e6df610c9546ad5101332039fcc513e3
Showing 2 changed files with 30 additions and 13 deletions.
21 index
@@ -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-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 1 May 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 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 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

<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>

22 source
@@ -9389,16 +9389,24 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

<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>

0 comments on commit dfc5643

Please sign in to comment.