10 border:
2px solid blue;
15 .scenario { margin-bottom:
16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
17 .expected-results:first-line { font-weight: bold }
19 <script src=
"../editing.js"></script>
20 <script src=
"../../resources/dump-as-markup.js"></script>
23 Markup
.waitUntilDone();
25 function editingTest() {
26 Markup
.description(document
.getElementsByClassName('explanation')[0].textContent
);
27 for (var i
= 0; i
< 10; i
++)
28 extendSelectionForwardByLineCommand();
29 Markup
.dump('root', 'Before cut');
31 Markup
.dump('root', 'After cut');
33 Markup
.dump('root', 'After paste (this should be identical to before cut)');
38 <title>Editing Test
</title>
40 <body onload=
"runEditingTest()">
41 <div class=
"explanation">
42 <div class=
"scenario">
45 Bug fix for
<a href=
"rdar://problem/4180820"><rdar://problem/
4180820></a> Erroneous spacing between lines introduced on paste
47 Applying block styles, like text-align, used to wrap paragraphs that needed block style changes in clones of other paragraphs in the document. This would almost always introduce unwanted styles.
49 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
50 <div id=
"test" class=
"editing">
53 This is an
<b>interactive
</b> documentation site, so please help out by posting any useful information that you've had to search out.
<br>
54 (Adding to this
<a href=
"db.cgi?Wiki_Is_So_Easy">wiki is so easy
</a>, you can't screw it up). See
<a href=
"db.cgi?Wiki_Reference">Wiki Reference
</a> for text formatting syntax.
<br>
55 Info for setting up your own wiki is at
<a href=
"db.cgi?About_Howto.Apple.Com">about howto.apple.com
</a>.
<br>
56 Check out a cool wiki editor application that helps in wiki generation:
<a href=
"db.cgi?Wikinator">Wikinator
</a>
58 Start browsing the topics below, or use the search field at the bottom of every page.