aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 714cf02dd..525c1387b 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -1351,6 +1351,11 @@ test("html(undefined)", function() {
equal( jQuery("#foo").html("<i>test</i>").html(undefined).html().toLowerCase(), "<i>test</i>", ".html(undefined) is chainable (#5571)" );
});
+test("html() on empty set", function() {
+ expect(1);
+ strictEqual( jQuery( ).html(), undefined, ".html() returns undefined for empty sets (#11962)" );
+});
+
var testHtml = function(valueObj) {
expect(35);