15 lines
453 B
HTML
15 lines
453 B
HTML
<!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>
|