blob: 7503665a6cff3d85e9792afabf38ebe26aad9356 [file] [log] [blame]
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.layoutTestController)
layoutTestController.dumpAsText();
var test = document.getElementById("test");
test.outerText = "big test";
try {
test.outerText = "mistake";
}catch (e)
{
document.write("<div> Expected error - " + e + "</div>");
}
</script>