blob: c5daf1c9f5010c5e4a6814edf27868271230a0e1 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<script>
description('Radio buttons within the same form outside a document should still be updated appropriately when one of them is checked.');
var form = document.createElement('form');
var radio1 = form.appendChild(document.createElement('input'));
var radio2 = form.appendChild(document.createElement('input'));
radio1.type = radio2.type = 'radio';
radio1.name = radio2.name = 'pref';
radio1.checked = true;
radio2.checked = true;
shouldBeFalse('radio1.checked');
</script>