diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-04-21 21:33:09 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2011-04-21 21:33:09 -0400 |
commit | 3ac9eb7ce37b461a34e303e8b77aa544d313441c (patch) | |
tree | 50cf69cf2e5d6c4e670ecd4757e0f12e48b010b8 /src/support.js | |
parent | dbe966aa57ce10d6c93db46eb2f3369a39e10d01 (diff) | |
download | jquery-3ac9eb7ce37b461a34e303e8b77aa544d313441c.tar.gz jquery-3ac9eb7ce37b461a34e303e8b77aa544d313441c.zip |
Landing pull request [337](https://github.com/jquery/jquery/pull/337). Value of radio inputs resets when type is set after the value in all IEs. Fixes #8570 ([bug](http://bugs.jquery.com/ticket/8570)).
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js index 867e18367..b286907ff 100644 --- a/src/support.js +++ b/src/support.js @@ -115,6 +115,11 @@ jQuery.support = (function() { div.cloneNode( true ).fireEvent( "onclick" ); } + input = document.createElement("input"); + input.value = "t"; + input.setAttribute("type", "radio"); + support.radioValue = input.value === "t"; + div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>"; fragment = document.createDocumentFragment(); |