Combine the support tests for radioValue and appendChecked

This commit is contained in:
timmywil 2011-04-22 00:27:52 -04:00
parent 16312c6b06
commit 2942be780f
2 changed files with 9 additions and 10 deletions

View file

@ -363,6 +363,7 @@ jQuery.extend({
} else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
// Setting the type on a radio button after the value resets the value in IE6-9
// Reset value to it's default in case type is set after value
// This is for element creation
var val = elem.getAttribute("value");
elem.setAttribute( "type", value );
if ( val ) {