mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
24 lines
586 B
HTML
24 lines
586 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);
|
|
|
|
// Test for https://github.com/servo/servo/issues/3997
|
|
t.getBoundingClientRect();
|
|
</script>
|
|
</html>
|