38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
blockquote {
|
|
color: blue;
|
|
border-left: 2px solid blue;
|
|
margin: 0px;
|
|
padding: 0 0 0 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="div" contenteditable="true">This should not be blockquoted. This should not be blockquoted.</div>
|
|
<script src="../../resources/dump-as-markup.js"></script>
|
|
<script>
|
|
if (window.internals)
|
|
internals.settings.setEditingBehavior('mac');
|
|
|
|
Markup.description("This tests pasting a blockquote into the middle of a paragraph.");
|
|
|
|
var sel = window.getSelection();
|
|
var div = document.getElementById("div");
|
|
|
|
sel.setPosition(div, 0);
|
|
sel.modify("move", "forward", "word");
|
|
sel.modify("move", "forward", "word");
|
|
sel.modify("move", "forward", "word");
|
|
sel.modify("move", "forward", "word");
|
|
sel.modify("move", "forward", "word");
|
|
sel.modify("move", "forward", "character");
|
|
document.execCommand("InsertHTML", false, "<blockquote type='cite'> This should not be blockquoted.<br>This should be blockquoted.<br>This should not be blockquoted.</blockquote>");
|
|
|
|
Markup.dump('div');
|
|
</script>
|
|
</body>
|
|
</html>
|