3 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript"></script>
7 window
.testRunner
.dumpAsText();
9 function log(message
) {
10 var console
= document
.getElementById("console");
11 var li
= document
.createElement("li");
12 var text
= document
.createTextNode(message
);
14 console
.appendChild(li
);
17 function editingTest() {
18 var d
= document
.getElementById("test");
19 var html
= d
.innerHTML
.toLowerCase();
23 insertHTMLCommand(html
);
31 <p>This is a test of execCommand(insertHTML, ...). The contents of the editable div below should be the same before and after the test.
</p>
32 <div id=
"test" contenteditable=
"true">hello
<table style=
"display:inline" border=
1><tr><td>1</td><td>2</td></tr></table><b>world
</b>!
</div>
33 <ul id=
"console"></ul>