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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 6f7077320..48618258f 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -1218,6 +1218,16 @@ test("clone() on XML nodes", function() {
});
}
+test("clone() on local XML nodes with html5 nodename", function() {
+ expect(2);
+
+ var $xmlDoc = jQuery( jQuery.parseXML( "<root><meter /></root>" ) ),
+ $meter = $xmlDoc.find( "meter" ).clone();
+
+ equal( $meter[0].nodeName, "meter", "Check if nodeName was not changed due to cloning" );
+ equal( $meter[0].nodeType, 1, "Check if nodeType is not changed due to cloning" );
+} );
+
test("html(undefined)", function() {
expect(1);
equal( jQuery("#foo").html("<i>test</i>").html(undefined).html().toLowerCase(), "<i>test</i>", ".html(undefined) is chainable (#5571)" );