<!DOCTYPE html>
<body>
<script src="../../../resources/js-test-pre.js"></script>
<iframe id=frame></iframe>
<script>
description('Test if destructing a documet with radio groups with the same name doesn\'t crash.');
var frame =document.getElementById('frame');
frame.contentDocument.body.innerHTML = '<input type=radio name=group1 checked>' +
    '<form><input type=radio name=group1 checked></form>';
document.body.removeChild(frame);
frame = null;
gc();
debug('PASS if not crashed.');
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
