blob: b357671ebae53b901c032df5c9c1170c517d8245 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Tests type enforcement on DOM setters.");
// NodeList is not a Node, so document.body can't be set to one.
var nodelist = document.getElementsByName('sillypants');
shouldThrow("document.body = nodelist;");
</script>
</body>
</html>