1<html version="1">
2<body>
3<p>
4This tests to make sure that HTMLHtmlElement::version settable.</p>
5You should see 2 lines with "SUCCESS" below:
6<script>
7if (window.layoutTestController)
8    layoutTestController.dumpAsText();
9
10function checkExpected(actual, expected)
11{
12    if (actual != expected)
13        document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>");
14    else
15        document.writeln("<p>SUCCESS (value: \"" + actual + "\")</p>");
16}
17
18var htmlElement = document.getElementsByTagName("html")[0];
19checkExpected(htmlElement.version, 1);
20htmlElement.version = 2;
21checkExpected(htmlElement.version, 2);
22</script>
23</body>
24</html>