haikuwebkit/LayoutTests/fast/forms/radio/remove-radio-button-assert....

11 lines
572 B
HTML

<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>