summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/xml-directive-in-dom.html
blob: 6c4bb27914efffb980d235ebc295657b16f33e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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>