24 lines
570 B
HTML
24 lines
570 B
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
<head>
|
|
<title>Test how preamble gets attached to DOM</title>
|
|
<script type="text/javascript">
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<pre>
|
|
<script>
|
|
var elmt = document.documentElement;
|
|
while (elmt) {
|
|
document.writeln(elmt);
|
|
elmt = elmt.previousSibling;
|
|
}
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|