blob: 94ae191b6dfdd9e202559a52d6918a806f290582 [file] [log] [blame]
<!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>