Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5168598.html
blob12428705a674449a1199822f12df7cefbc65d931
1 <!DOCTYPE html>
2 <html>
3 <body>
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">
6 <script>
8 if (window.testRunner)
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');
18 </script>
19 </body>
20 </html>