aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selectorTest.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-19 07:28:41 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-19 07:28:41 +0000
commit24db022ba06523f92e94ac5fa791fc4865b55ba7 (patch)
tree0c3a031775eb07a93f426ad41a98f60073bcf025 /src/selector/selectorTest.js
parent735e2e8197e391c2666766d2b2ba924fe5fb73d8 (diff)
downloadjquery-24db022ba06523f92e94ac5fa791fc4865b55ba7.tar.gz
jquery-24db022ba06523f92e94ac5fa791fc4865b55ba7.zip
Added a fix for IE returning comment nodes in * queries. I put the logic in $.merge() but added a conditional such that the speed hit only effects IE users. (Bug #1155)
Diffstat (limited to 'src/selector/selectorTest.js')
-rw-r--r--src/selector/selectorTest.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js
index ac07bf32d..7644fbea8 100644
--- a/src/selector/selectorTest.js
+++ b/src/selector/selectorTest.js
@@ -1,8 +1,13 @@
module("selector");
test("element", function() {
- expect(8);
+ expect(9);
ok( $("*").size() >= 30, "Select all" );
+ var all = $("*"), good = true;
+ for ( var i = 0; i < all.length; i++ )
+ if ( all[i].nodeType == 8 )
+ good = false;
+ ok( good, "Select all elements, no comment nodes" );
t( "Element Selector", "p", ["firstp","ap","sndp","en","sap","first"] );
t( "Element Selector", "body", ["body"] );
t( "Element Selector", "html", ["html"] );