|
Line 0
LayoutTests/editing/execCommand/delete-line-and-insert-text-in-font-inside-blockquote.html_sec1
|
|
|
1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<body> |
| 4 |
<div id="container" contenteditable> |
| 5 |
<blockquote style="background-color:yellow"><br><font style="color:blue"><br> world |
| 6 |
</font></blockquote> |
| 7 |
</div> |
| 8 |
<script src="../../resources/dump-as-markup.js"></script> |
| 9 |
<script> |
| 10 |
|
| 11 |
Markup.description('This tests deleting a line inside a font element inside a blockquote.') |
| 12 |
|
| 13 |
var font = document.querySelector('font'); |
| 14 |
getSelection().collapse(font, 0); |
| 15 |
getSelection().modify('Extend', 'Forward', 'Line'); |
| 16 |
document.execCommand('Delete', false, null); |
| 17 |
document.execCommand('InsertText', false, 'hello'); |
| 18 |
|
| 19 |
Markup.dump('container', 'There should be exactly one blockquote and you should see "hello world" below') |
| 20 |
|
| 21 |
</script> |
| 22 |
</body> |
| 23 |
</html> |