1 <p>This is a test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=8250">bug
8250</a>.
2 The 'before text inserted' event handler wasn't being told about 'interchange newlines'.
3 The text field should have a space in it, followed by the word 'foo'.
</p>
5 <p id=
"test result">TEST DID NOT RUN
</p>
7 <input id=
"test" type=
"text">
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
14 var e
= document
.getElementById("test");
16 e
.setSelectionRange(0, 0);
18 document
.execCommand("InsertHTML", false, "<br class='Apple-interchange-newline'>foo");
20 if (e
.value
=== " foo")
21 document
.getElementById("test result").innerText
= "TEST PASSED";
23 document
.getElementById("test result").innerText
= "TEST FAILED";