38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<!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"><rdar://problem/3918712></a> "Paste as Quotation" in Mail just pastes (<blockquote> 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>
|