3 <p>test for
<a href=
"rdar://problem/4110775">4110775</a> Crash will occur when double-clicking outerHTML link on W3 DOM test
</p>
4 <p>If the test fails, Safari may crash, or you may see a failure message below. If the test passes, you should see a message with a description of the expected exception.
</p>
5 <div id=
"test">This test failed.
</div>
7 <script type=
"text/javascript">
9 testRunner
.dumpAsText();
10 var t
= document
.getElementById("test");
11 var outerStr
= "<div id='test2'>This test failed!</div>";
12 t
.outerHTML
= outerStr
;
14 t
.outerHTML
= "<div id='test2'>This test failed!!</div>"
16 document
.getElementById("test2").outerHTML
= "<div id='test2'>This test passed - expected error - " + e
+ "</div>";