| Expected behavior: | |
| <p>This page will try to set the outerText on an element that is no longer in the DOM tree. | |
| You should see a description of an expected error. | |
| </p> | |
| <div id="div">this is a <i id="test">test</i> or something</div> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| var test = document.getElementById("test"); | |
| test.outerText = "big test"; | |
| try { | |
| test.outerText = "mistake"; | |
| }catch (e) | |
| { | |
| document.write("<div> Expected error - " + e + "</div>"); | |
| } | |
| </script> |