wrapMap = {
option: [ 1, "<select multiple='multiple'>" ],
legend: [ 1, "<fieldset>" ],
- area: [ 1, "<map>" ],
param: [ 1, "<object>" ],
thead: [ 1, "<table>" ],
tr: [ 2, "<table><tbody>" ],
var testAppend = function( valueObj ) {
- expect( 59 );
+ expect( 61 );
testAppendForObject( valueObj, false );
testAppendForObject( valueObj, true );
var defaultText, result, message, iframe, iframeDoc, j, d,
- $input, $radioChecked, $radioUnchecked, $radioParent;
+ $input, $radioChecked, $radioUnchecked, $radioParent, $map;
defaultText = "Try them out:";
result = jQuery("#first").append( valueObj("<b>buga</b>") );
jQuery("<fieldset/>").appendTo("#form").append( valueObj("<legend id='legend'>test</legend>") );
t( "Append legend", "#legend", [ "legend" ] );
+ $map = jQuery("<map/>").append( valueObj("<area id='map01' shape='rect' coords='50,50,150,150' href='http://www.jquery.com/' alt='jQuery'>") );
+
+ equal( $map[ 0 ].childNodes.length, 1, "The area was inserted." );
+ equal( $map[ 0 ].firstChild.nodeName.toLowerCase(), "area", "The area was inserted." );
+
jQuery("#select1").append( valueObj("<OPTION>Test</OPTION>") );
equal( jQuery("#select1 option:last").text(), "Test", "Appending OPTION (all caps)" );