1 <mat:diff xmlns:mat="http://www.w3.org/1998/Math/MathML">
\r
2 <html xmlns="http://www.w3.org/1999/xhtml">
\r
4 <script type="text/javascript">
\r
5 if (window.layoutTestController)
\r
6 layoutTestController.dumpAsText();
\r
10 // select the span that's editable
\r
11 document.getElementById("insertlisthere").focus();
\r
13 // insert an ordered list into the span
\r
14 document.execCommand("insertorderedlist", false, null);
\r
15 log(document.getElementById("insertlisthere").outerHTML);
\r
19 var li = document.createElement("li");
\r
20 li.appendChild(document.createTextNode(str));
\r
21 var console = document.getElementById("console");
\r
22 console.appendChild(li);
\r
26 <body onload="start();">
\r
27 <div contenteditable="true" id="insertlisthere">.</div>
\r
28 <ul id="console"></ul>
\r