Skip to content
Permalink
Browse files

wrapMap.thead = wrapMap.tr

Add support comments
  • Loading branch information
markelog committed Dec 28, 2012
1 parent b3e546c commit 9dbfbe5b9ae2232d84d19ce27b0a9d31994fe165
Showing with 4 additions and 5 deletions.
  1. +2 −3 src/manipulation.js
  2. +2 −2 test/unit/manipulation.js
@@ -12,16 +12,15 @@ var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>

// Support: IE 9
option: [ 1, "<select multiple='multiple'>" ],
thead: [ 1, "<table>" ],
tr: [ 2, "<table><tbody>" ],
tr: [ 1, "<table>" ],
col: [ 2, "<table><tbody></tbody><colgroup>" ],
td: [ 3, "<table><tbody><tr>" ],
_default: [ 0, "" ]
};

// Support: IE 9
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead = wrapMap.tr;
wrapMap.th = wrapMap.td;

jQuery.fn.extend({
@@ -395,7 +395,7 @@ var testAppendForObject = function( valueObj, isFragment ) {

var testAppend = function( valueObj ) {

expect( 66 );
expect( 67 );

testAppendForObject( valueObj, false );
testAppendForObject( valueObj, true );
@@ -460,7 +460,7 @@ var testAppend = function( valueObj ) {

$table = jQuery("#table");

jQuery.each( "thead tbody tfoot colgroup caption".split(" "), function( i, name ) {
jQuery.each( "thead tbody tfoot colgroup caption tr".split(" "), function( i, name ) {
$table.append( valueObj( "<" + name + "/>" ) );
equal( $table.find( name ).length, 1, "Append " + name );
});

0 comments on commit 9dbfbe5

Please sign in to comment.
You can’t perform that action at this time.