Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / doctypes / xml-doctype.xhtml
1 <!DOCTYPE HTML>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4     <script>
5         if (window.layoutTestController)
6             layoutTestController.dumpAsText();
7
8         log = function(msg)
9         {
10             document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
11         }
12
13         onload = function()
14         {
15             if (document.doctype)
16                 log("PASS: a doctype in a XML document is not ignored.");
17             else
18                 log("FAIL: a doctype in a XML document is ignored.");
19
20             if (document.firstChild == document.doctype)
21                 log("PASS: a doctype in an XML document is correctly set to the first child of the Document.");
22             else
23                 log("FAIL: a doctype in an XML document is not correctly set to the first child of the Document.");
24         }
25     </script>
26 </head>
27 <body>
28     This tests the behavior of a Doctype in an XML document.
29     <pre id="console"></pre>
30 </body>
31 </html>