4 <p>This tests for a crash when deleting a link inside a text field inside a completely editable document. You shouldn't see anything inside the text field.'
<b>We probably shouldn't let users add rich content to text fields even if they are in richly editable regions.'
</b></p>
5 <input type=
"text" id=
"textfield">
9 window
.testRunner
.dumpAsText();
11 document
.designMode
= "on";
12 var textfield
= document
.getElementById("textfield");
13 textfield
.setSelectionRange(0, 0);
14 document
.execCommand("CreateLink", false, "http://www.google.com/")
15 document
.execCommand("Delete");
16 var numberOfElements
= document
.getElementsByTagName('a').length
;
17 document
.write(numberOfElements
? 'FAIL: there were ' + numberOfElements
+ ' anchor elements but expected none' : 'PASS');