blob: 826c00f14a5a89ddc85915cb54728b55554e7cfe [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Makes sure HTMLCollection.namedItem() does not crash for collection of selected options.");
debug("This test passes if it does not crash.");
var select = document.createElement("select");
var options = select.selectedOptions;
select.length = 10;
shouldBeNull('options.namedItem("test")');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>