blob: 51b7574a1afd01e055c809b52f75f6b5aaee9c0f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests that documents created via DOMParser.parseFromString() inherit their context document's origin / URL");
const newDocument = (new DOMParser).parseFromString('', 'text/html');
shouldBe("newDocument.URL", "document.URL");
shouldBeNull("newDocument.location");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>