mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Manipulation: simplify html wrappers
Take advantage of html serialization for html wrappers - saves 26 bytes Plus add additional test for "col" element Closes gh-2031 Fixes gh-2002
This commit is contained in:
@@ -2452,6 +2452,18 @@ test( "Validate creation of multiple quantities of certain elements (#13818)", 4
|
||||
});
|
||||
});
|
||||
|
||||
test( "Make sure col element is appended correctly", function() {
|
||||
expect( 1 );
|
||||
|
||||
var table = jQuery( "<table cellpadding='0'><tr><td>test</td></tr></table>" );
|
||||
|
||||
jQuery( table ).appendTo( "#qunit-fixture" );
|
||||
|
||||
jQuery( "<col width='150'/>" ).prependTo( table );
|
||||
|
||||
strictEqual( table.find( "td" ).width(), 150 );
|
||||
});
|
||||
|
||||
asyncTest( "Insert script with data-URI (gh-1887)", 1, function() {
|
||||
Globals.register( "testFoo" );
|
||||
Globals.register( "testSrcFoo" );
|
||||
|
||||
Reference in New Issue
Block a user