1 <script src=
"../../resources/dump-as-markup.js"></script>
2 <div contentEditable
id=
"test">
3 <span id=
"start">start
</span>
5 <div contentEditable=
"false">
6 <style>#end { color: red; }
</style>
7 <link type=
"foo" href=
"bar">
11 <span id=
"end">end
</span>
14 Markup
.description('Test case for crash bug http://crbug.com/177470');
15 function $(id
) { return document
.getElementById(id
); }
16 var range
= document
.createRange();
17 range
.setStart($('start'), 0);
18 range
.setEnd($('end'), NaN
);
19 getSelection().addRange(range
);
20 document
.execCommand('delete', null, '');
21 Markup
.dump($('test'));