<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<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>
</body>
</html>