rscriptTypeMasked = /^true\/(.*)/,
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
wrapMap = {
+
+ // Support: IE 9
option: [ 1, "<select multiple='multiple'>" ],
legend: [ 1, "<fieldset>" ],
param: [ 1, "<object>" ],
_default: [ 0, "" ]
};
+// Support: IE 9
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
var testAppend = function( valueObj ) {
- expect( 61 );
+ expect( 63 );
testAppendForObject( valueObj, false );
testAppendForObject( valueObj, true );
jQuery("#select1").append( valueObj("<OPTION>Test</OPTION>") );
equal( jQuery("#select1 option:last").text(), "Test", "Appending OPTION (all caps)" );
+ jQuery("#select1").append( valueObj("<optgroup label='optgroup'><option>optgroup</option></optgroup>") );
+ equal( jQuery("#select1 optgroup").attr("label"), "optgroup", "Label attribute in newly inserted optgroup is correct" );
+ equal( jQuery("#select1 option:last").text(), "optgroup", "Appending optgroup" );
+
jQuery("#table").append( valueObj("<colgroup></colgroup>") );
equal( jQuery("#table colgroup").length, 1, "Append colgroup" );