Use a fresh input for the value-lossage check.

This commit is contained in:
Dave Methvin 2012-12-31 15:17:24 -05:00
parent f75c0627f2
commit e1dcf96b52

View File

@ -85,6 +85,7 @@ jQuery.support = (function() {
}
// Check if an input maintains its value after becoming a radio
input = document.createElement("input");
input.value = "t";
input.setAttribute( "type", "radio" );
support.radioValue = input.value === "t";