blob: 37e3e3a7472f530ec1df9604a65fbc52c17824be [file] [log] [blame]
<p>This tests the code path for destruction of a radio button when it's checked, when the form outlives the radio button, but where the radio button is never explicitly removed from the form.</p>
<div id="container"><form id="form"><input type="radio" name="button" checked></form></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var form = document.getElementById("form");
document.getElementById("container").removeChild(form);
form.innerHTML="";
document.getElementById("container").innerHTML="If you can see this text, the test has run.";
</script>