mirror of
https://github.com/servo/servo.git
synced 2025-06-17 04:44:28 +00:00
23 lines
512 B
HTML
23 lines
512 B
HTML
<html>
|
|
<head>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<table id="t">
|
|
<caption id="tcaption">old caption</caption>
|
|
</table>
|
|
<script>
|
|
var t = document.getElementById("t");
|
|
var tcaption = document.getElementById("tcaption");
|
|
is(t.caption, tcaption);
|
|
is(t.caption.innerHTML, "old caption");
|
|
|
|
var newCaption = document.createElement("caption");
|
|
newCaption.innerHTML = "new caption";
|
|
|
|
t.caption = newCaption;
|
|
is(newCaption.parentNode, t);
|
|
is(t.caption, newCaption);
|
|
|
|
finish();
|
|
</script>
|
|
</html>
|