OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 div { border:1px solid red; } | |
5 blockquote { border:1px solid blue; } | |
6 </style> | |
7 <script> | |
8 function runTest() { | |
9 if (window.testRunner) | |
10 window.testRunner.dumpAsText(); | |
11 | |
12 var blankLine = document.getElementById('blankLine'); | |
13 var s = window.getSelection(); | |
14 s.setPosition(blankLine, 0); | |
15 document.execCommand("InsertNewlineInQuotedContent"); | |
16 | |
17 if (blankLine.nextSibling.nodeName == "BR") | |
18 console.log("SUCCESS! newline inserted AFTER quoted content"); | |
19 else | |
20 console.log("FAILED! newline inserted BEFORE quoted content"); | |
21 } | |
22 </script> | |
23 </head> | |
24 <body onload="runTest()"> | |
25 <div><br></div> | |
26 <div contentEditable="true"> | |
27 <blockquote type="cite">Line of text</blockquote> | |
28 <blockquote type="cite" id="blankLine"><br></blockquote> | |
29 </div> | |
30 </body> | |
31 </html> | |
OLD | NEW |