mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Use a fresh input for the value-lossage check.
This commit is contained in:
parent
f75c0627f2
commit
e1dcf96b52
@ -85,6 +85,7 @@ jQuery.support = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if an input maintains its value after becoming a radio
|
// Check if an input maintains its value after becoming a radio
|
||||||
|
input = document.createElement("input");
|
||||||
input.value = "t";
|
input.value = "t";
|
||||||
input.setAttribute( "type", "radio" );
|
input.setAttribute( "type", "radio" );
|
||||||
support.radioValue = input.value === "t";
|
support.radioValue = input.value === "t";
|
||||||
|
Loading…
Reference in New Issue
Block a user