hixie: Allow getElementsByClassName() etc to cache results if desired. (this can result in script-detectable cache-sensitive behaviour, but is a massive performance win. Let's hope nobody ever depends on this.) (whatwg r4856)

hixie: Allow getElementsByClassName() etc to cache results if desired.
(this can result in script-detectable cache-sensitive behaviour, but is
a massive performance win. Let's hope nobody ever depends on this.)
(whatwg r4856)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3890&r2=1.3891&f=h
http://html5.org/tools/web-apps-tracker?from=4855&to=4856
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3890
retrieving revision 1.3891
diff -u -d -r1.3890 -r1.3891
--- Overview.html 17 Mar 2010 00:02:46 -0000 1.3890
+++ Overview.html 17 Mar 2010 23:24:03 -0000 1.3891
@@ -6471,11 +6471,11 @@
 <code><a href="#nodelist">NodeList</a></code>. If the document is in <a href="#quirks-mode">quirks
 mode</a>, then the comparisons for the classes must be done in an
 <a href="#ascii-case-insensitive">ASCII case-insensitive</a> manner, otherwise, the
- comparisons must be done in a <a href="#case-sensitive">case-sensitive</a> manner. A
- new <code><a href="#nodelist">NodeList</a></code> object must be returned each time unless
- the argument is the same as the last time the method was invoked on
- this <code><a href="#document">Document</a></code> object, in which case the object must be
- the same as the object returned by the previous call.</p>
+ comparisons must be done in a <a href="#case-sensitive">case-sensitive</a> manner.
+ When the method is invoked on a <code><a href="#document">Document</a></code> object again
+ with the same argument, the user agent may return the same object as
+ the object returned by the earlier call. In other cases, a new
+ <code><a href="#nodelist">NodeList</a></code> object must be returned.</p>
 
 <p>The <dfn id="dom-getelementsbyclassname" title="dom-getElementsByClassName"><code>getElementsByClassName(<var title="">classNames</var>)</code></dfn> method on the
 <code><a href="#htmlelement">HTMLElement</a></code> interface must return a live
@@ -6483,11 +6483,11 @@
 <code><a href="#htmldocument">HTMLDocument</a></code> <code title="dom-document-getElementsByClassName"><a href="#dom-document-getelementsbyclassname">getElementsByClassName()</a></code>
 method would return when passed the same argument(s), excluding any
 elements that are not descendants of the <code><a href="#htmlelement">HTMLElement</a></code>
- object on which the method was invoked. A new <code><a href="#nodelist">NodeList</a></code>
- object must be returned each time unless the argument is the same as
- the last time the method was invoked on this
- <code><a href="#htmlelement">HTMLElement</a></code> object, in which case the object must be
- the same as the object returned by the previous call.</p>
+ object on which the method was invoked.
+ When the method is invoked on an <code><a href="#htmlelement">HTMLElement</a></code> object
+ again with the same argument, the user agent may return the same
+ object as the object returned by the earlier call. In other cases, a
+ new <code><a href="#nodelist">NodeList</a></code> object must be returned.</p>
 
 </div><p>HTML, SVG, and MathML elements define which classes they are in
 by having an attribute with no namespace with the name <code title="">class</code> containing a space-separated list of classes

Received on Wednesday, 17 March 2010 23:25:03 UTC

AltStyle によって変換されたページ (->オリジナル) /