mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
23 lines
515 B
HTML
23 lines
515 B
HTML
<html>
|
|
<head>
|
|
<title></title>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="div1"></div>
|
|
<script>
|
|
is_a(document.documentElement.parentNode, Document);
|
|
is(document.documentElement.parentElement, null);
|
|
|
|
var elem = document.createElement("p");
|
|
is(elem.parentNode, null);
|
|
is(elem.parentElement, null);
|
|
|
|
var child = document.createElement("p");
|
|
elem.appendChild(child);
|
|
|
|
is(child.parentNode, elem);
|
|
is(child.parentElement, elem);
|
|
</script>
|
|
</body>
|
|
</html>
|