| div { border:1px solid red; } |
| blockquote { border:1px solid blue; } |
| window.testRunner.dumpAsText(); |
| var blankLine = document.getElementById('blankLine'); |
| var s = window.getSelection(); |
| s.setPosition(blankLine, 0); |
| document.execCommand("InsertNewlineInQuotedContent"); |
| if (blankLine.nextSibling.nodeName == "BR") |
| console.log("SUCCESS! newline inserted AFTER quoted content"); |
| console.log("FAILED! newline inserted BEFORE quoted content"); |
| <body onload="runTest()"> |
| <div contentEditable="true"> |
| <blockquote type="cite">Line of text</blockquote> |
| <blockquote type="cite" id="blankLine"><br></blockquote> |