blob: edcfe84bafc9b4866b14360b9a754f9041b63b82 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/dump-as-markup.js"></script>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
</head>
<body>
<p>See this bug: <a href="rdar://problem/3918712">&lt;rdar://problem/3918712&gt;</a> "Paste as Quotation" in Mail just pastes (&lt;blockquote&gt; tag seems to be lost).</p>
<p>To manually test, copy everything in the first editable box and paste it in the second box.
You should see "foo" and a new line inside a red box.</p>
<div contenteditable id="root">
<div id="test" class="editing"><div><blockquote>foo</blockquote></div></div>
<div class="editing"></div>
</div>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 4; i++)
extendSelectionForwardByCharacterCommand();
copyCommand();
for (i = 0; i < 2; i++)
moveSelectionForwardByCharacterCommand();
pasteCommand();
}
if (window.testRunner)
runDumpAsTextEditingTest();
</script>
</body>
</html>