21 lines
534 B
HTML
21 lines
534 B
HTML
<html>
|
|
<head>
|
|
<script src="../../resources/js-test-pre.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;");
|
|
|
|
// NodeList is also not an HTMLTableSectionElement.
|
|
var table = document.createElement('table');
|
|
shouldThrow("table.tHead = nodelist;");
|
|
</script>
|
|
<script src="../../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|