test("html() on empty set", function() {
expect(1);
- strictEqual( jQuery( ).html(), undefined, ".html() returns undefined for empty sets (#11962)" );
+ strictEqual( jQuery().html(), undefined, ".html() returns undefined for empty sets (#11962)" );
});
var testHtml = function(valueObj) {
test("empty set", function() {
expect(2);
- strictEqual( jQuery( ).offset(), undefined, "offset() returns undefined for empty set (#11962)" );
- strictEqual( jQuery( ).position(), undefined, "position() returns undefined for empty set (#11962)" );
+ strictEqual( jQuery().offset(), undefined, "offset() returns undefined for empty set (#11962)" );
+ strictEqual( jQuery().position(), undefined, "position() returns undefined for empty set (#11962)" );
});
test("disconnected node", function() {