1 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <caption id=
"c1">PASS: Text in caption
1</caption>
7 document
.body
.offsetLeft
;
8 var caption
= document
.createElement('caption');
9 caption
.appendChild(document
.createTextNode('FAIL: Dynamically added caption'));
11 var table
= document
.getElementById('table');
12 var c1
= document
.getElementById('c1');
13 table
.insertBefore(caption
, c1
);
14 document
.body
.offsetTop
;
15 table
.removeChild(caption
);