| <html version="1"> |
| <body> |
| <p> |
| This tests to make sure that HTMLHtmlElement::version settable.</p> |
| You should see 2 lines with "SUCCESS" below: |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| function checkExpected(actual, expected) |
| { |
| if (actual != expected) |
| document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>"); |
| else |
| document.writeln("<p>SUCCESS (value: \"" + actual + "\")</p>"); |
| } |
| |
| var htmlElement = document.getElementsByTagName("html")[0]; |
| checkExpected(htmlElement.version, 1); |
| htmlElement.version = 2; |
| checkExpected(htmlElement.version, 2); |
| </script> |
| </body> |
| </html> |