summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/update-from-element-during-editing-crash-1.html
blob: 1bdec03e60efb9d55077344dd300b9498c51d530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<body>
<style>
#container + * { clear: both; }
</style>
<p id="container"><textarea></textarea></p>
<script>

if (window.testRunner)
    testRunner.dumpAsText();

var textarea = document.getElementsByTagName('textarea')[0];
textarea.focus();
textarea.innerHTML = 'a\n';
textarea.selectionStart = 1;
textarea.selectionEnd = 1;
document.execCommand('InsertLineBreak', false, null);

document.body.innerText = "This test verifies WebKit doesn't crash even if the DOM changes in shadow DOM caused the shadow host's style to change.\nPASS";

</script>
</body>
</html>