From: Dave Methvin Date: Mon, 31 Dec 2012 20:17:24 +0000 (-0500) Subject: Use a fresh input for the value-lossage check. X-Git-Tag: 2.0.0b1~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1dcf96b526a7fd9b323cdf7b4f68be1e72f0d6c;p=jquery.git Use a fresh input for the value-lossage check. --- diff --git a/src/support.js b/src/support.js index 9533294ff..ceb3ddc84 100644 --- a/src/support.js +++ b/src/support.js @@ -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";