1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <script type=
"text/javascript">
7 testRunner
.dumpAsText();
11 // select the span that's editable
12 document
.getElementById("insertlisthere").focus();
14 // insert an ordered list into the span
15 document
.execCommand("insertorderedlist", false, null);
16 log(document
.getElementById("insertlisthere").outerHTML
);
20 var li
= document
.createElement("li");
21 li
.appendChild(document
.createTextNode(str
));
22 var console
= document
.getElementById("console");
23 console
.appendChild(li
);
27 <body onload=
"start();">
28 <div contenteditable=
"true" id=
"insertlisthere">.
</div>
29 <ul id=
"console"></ul>