});
test("append(String|Element|Array<Element>|jQuery)", function() {
- expect(13);
+ expect(14);
var defaultText = 'Try them out:'
var result = $('#first').append('<b>buga</b>');
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
$('#select1').appendTo('#foo');
t( 'Append select', '#foo select', ['select1'] );
+ reset();
+ $('<fieldset>').appendTo('#form').append('<legend id="legend">test</legend>');
+ t( 'Append legend', '#legend', ['legend'] );
+
});
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
!s.indexOf("<opt") &&
[1, "<select>", "</select>"] ||
+ !s.indexOf("<leg") &&
+ [1, "<fieldset>", "</fieldset>"] ||
+
(!s.indexOf("<thead") || !s.indexOf("<tbody") || !s.indexOf("<tfoot")) &&
[1, "<table>", "</table>"] ||