var element;
// This patch modified the way that cloning occurs in IE; we need to make sure that
- // native event handlers on the original object don’t get disturbed when they are
+ // native event handlers on the original object don't get disturbed when they are
// modified on the clone
if (!jQuery.support.noCloneEvent && document.fireEvent) {
element = jQuery("div:first").click(function () {
});
test("clone()", function() {
- expect(35);
+ expect(36);
equals( 'This is a normal link: Yahoo', jQuery('#en').text(), 'Assert text for #en' );
var clone = jQuery('#yahoo').clone();
equals( 'Try them out:Yahoo', jQuery('#first').append(clone).text(), 'Check for clone' );
// this is technically an invalid object, but because of the special
// classid instantiation it is the only kind that IE has trouble with,
- // so let’s test with it too.
+ // so let's test with it too.
div = jQuery("<div/>").html('<object height="355" width="425" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="movie" value="http://www.youtube.com/v/3KANI2dpXLw&hl=en"> <param name="wmode" value="transparent"> </object>');
clone = div.clone(true);
form.appendChild( div );
equals( jQuery(form).clone().children().length, 1, "Make sure we just get the form back." );
+
+ equal( jQuery("body").clone().children()[0].id, "qunit-header", "Make sure cloning body works" );
});
if (!isLocal) {