blob: 42fb3b0ca6f2f24c843fe61a9cb157d45054f0df [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<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();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
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).
Should see two boxes with blockquoted "foo" text, followed by an empty box.<br>
<div id="test" class="editing"><div><blockquote>foo</blockquote></div></div>
<div class="editing"></div>
<script>
runEditingTest();
</script>
</body>
</html>