Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only change ID on nodes that don't already have an ID for rooted qSA.…
… Fixes #7212.
  • Loading branch information
jeresig committed Nov 1, 2010
1 parent 9d1bfeb commit 62c83a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unit/selector.js
@@ -1,7 +1,7 @@
module("selector");

test("element", function() {
expect(18);
expect(21);
QUnit.reset();

ok( jQuery("*").size() >= 30, "Select all" );
Expand Down Expand Up @@ -32,6 +32,11 @@ test("element", function() {
t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] );
t( "Checking sort order", "h2:first, h1:first", ["qunit-header", "qunit-banner"] );
t( "Checking sort order", "p, p a", ["firstp", "simon1", "ap", "google", "groups", "anchor1", "mark", "sndp", "en", "yahoo", "sap", "anchor2", "simon", "first"] );

// Test Conflict ID
same( jQuery("#lengthtest").find("#idTest").get(), q("idTest"), "Finding element with id of ID." );
same( jQuery("#lengthtest").find("[name='id']").get(), q("idTest"), "Finding element with id of ID." );
same( jQuery("#lengthtest").find("input[id='idTest']").get(), q("idTest"), "Finding elements with a context." );
});

if ( location.protocol != "file:" ) {
Expand Down

0 comments on commit 62c83a7

Please sign in to comment.