bug描述 当象下例中那样操作了表单radio/checkbox的DOM结构时(或者直接影响了他们的结构时)选中的checkbox/radio将会自动恢复到默认状态,有如点了reset按钮一样。 Rank's HTML document /*<![CDATA[*/ body { font-size:80%; line-height:1.5; } body, button { font-family:arial; } button { padding:0 0.3em 0 0.3em; } h1, h3 { margin:0; padding:0; } h1 { font-size:2.3em; } h3 { font-size:1.3em; } form { display:inline-block; } div.link { padding:1em; } div.content { background:#ffc; padding:1em; border:1px solid #222; margin:1em 0 1em; } #rdoWrapper { } #hd { text-align:center; } /*]]>*/ IE form control bug from: never-online weblog 1. Select radio to checked radio1 radio2 radio3 radio4 2. Click button to change dom structure test //<![CDATA[ function getRadioValue(ctlName) { var ctls = document.getElementsByName(ctlName); var len = ctls.length; for (var i=0; i<len; i++) { if (ctls[i].checked) { return ctls[i].value; } } } function handleChangeDom() { alert('before append, you select radio value is "'+getRadioValue('rdo')+'"'); var wrapper = document.getElementById('rdoWrapper'); document.body.appendChild(wrapper); alert('after append, you select radio value is "'+getRadioValue('rdo')+'"'); } //]]>