- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 17 Mar 2010 23:26:34 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv1417 Modified Files: dom.html spec.html Log Message: 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) [updated by splitter] Index: dom.html =================================================================== RCS file: /sources/public/html5/spec/dom.html,v retrieving revision 1.877 retrieving revision 1.878 diff -u -d -r1.877 -r1.878 --- dom.html 10 Mar 2010 10:26:30 -0000 1.877 +++ dom.html 17 Mar 2010 23:26:31 -0000 1.878 @@ -915,11 +915,11 @@ <code><a href="infrastructure.html#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="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> manner, otherwise, the - comparisons must be done in a <a href="infrastructure.html#case-sensitive">case-sensitive</a> manner. A - new <code><a href="infrastructure.html#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="infrastructure.html#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="infrastructure.html#case-sensitive">case-sensitive</a> manner. + When the method is invoked on a <code><a href="infrastructure.html#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="infrastructure.html#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 @@ -927,11 +927,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="infrastructure.html#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="infrastructure.html#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 Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.892 retrieving revision 1.893 diff -u -d -r1.892 -r1.893 --- spec.html 17 Mar 2010 00:06:38 -0000 1.892 +++ spec.html 17 Mar 2010 23:26:31 -0000 1.893 @@ -307,7 +307,7 @@ </dl><p>This specification is available in the following formats: <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>. -This is revision 1.3890. +This is revision 1.3891. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2010 <a href="http://www.w3.org/"><abbr title="World Wide
Received on Wednesday, 17 March 2010 23:26:35 UTC