blob: 1014dcaf9ff9ec219ee0d6221c5bd3f03e5d969e [file] [log] [blame]
<html>
<head>
<script src="../../resources/dump-as-markup.js"></script>
<style>
blockquote {
color: blue;
border-left: 2px solid blue;
margin: 0px;
padding: 0 0 0 20px;
}
</style>
</head>
<body>
<p id="description">This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted.</p>
<div id="test" contenteditable="true"><blockquote type='cite' id="block">One</blockquote></div>
<script>
var sel = window.getSelection();
var block = document.getElementById("block");
sel.setPosition(block, 3);
document.execCommand("InsertHTML", false, "<span><blockquote type='cite'><div>Two</div><div>Three</div></blockquote></span>");
Markup.description(document.getElementById('description').textContent);
Markup.dump('test');
</script>
</body>
</html>