Finding Children bug ignoring certain children

JavaScript performance comparison

Revision 2 of this test case created

Preparation code

<div id=main>
   <div id=a>a</div>
   <div id=b>b</div>
   <div id=c>c</div>
   <div id=d>
      <div id=d1 class="no">
        <div id=d11></div>
        <div id=d12></div>
      </div>
   </div>
   <div id=e>
      <div id=e1>
        <input type=text id=t111>
        <div id=e11 class="no">
            <div id=e111></div>
            <div id=e112></div>
            <input type=text id=et111>
        </div>
        <div id=e12></div>
        <span id=e13></span>
      </div>
   </div>
 </div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
 

Preparation code output

a
b
c

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Using Internal NOT
$('#main *:not(.no  *)').width(10);
pending…
Using External NOT
$('#main *').not('.no *').width(10);
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment