4 <p>This tests a bug when copying HTML markup inside
<pre
> tags. When pasted, this content would appear as the rendered form of that markup.
5 You should see markup in the editable region below. See
<rdar://
5027857>.
</p>
6 <div><pre id=
"pre" contenteditable=
"true"><input type='button'
>foo
<br
>bar
<b
>baz
</b
></pre></div>
7 <script src=
"../../resources/dump-as-markup.js"></script>
10 var pre
= document
.getElementById("pre");
12 document
.execCommand("SelectAll");
13 document
.execCommand("Cut");
14 document
.execCommand("Paste");
16 Markup
.description(document
.getElementsByTagName('p')[0].textContent
);
17 Markup
.dump(pre
.parentNode
);