]> source.dussan.org Git - jquery.git/commitdiff
Use a fresh input for the value-lossage check.
authorDave Methvin <dave.methvin@gmail.com>
Mon, 31 Dec 2012 20:17:24 +0000 (15:17 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 31 Dec 2012 20:17:24 +0000 (15:17 -0500)
src/support.js

index 9533294ffa054be455532f7d253bea6bee27151e..ceb3ddc8424d923b9b235dddefb2801281a10081 100644 (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";