<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<iframe id="testFrame" srcdoc="<html><body></body></html>"></iframe>
<script>
description("Tests setting document.body to null");

var testDocument = document.getElementById("testFrame").contentDocument;
shouldThrowErrorName("testDocument.body = null", "HierarchyRequestError");

</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>
