summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/insert-list-xml.xhtml
blob: fac081a7adae6f6faff0e1d07afefe431856ed03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<mat:diff xmlns:mat="http://www.w3.org/1998/Math/MathML">
  <html xmlns="http://www.w3.org/1999/xhtml">  
    <head> 
      <script type="text/javascript">
        if (window.testRunner)
            testRunner.dumpAsText();

        function start()
        { 
          // select the span that's editable
          document.getElementById("insertlisthere").focus();

          // insert an ordered list into the span
          document.execCommand("insertorderedlist", false, null);
          log(document.getElementById("insertlisthere").outerHTML);
          log("PASS");
        }
        function log(str) {
            var li = document.createElement("li");
            li.appendChild(document.createTextNode(str));
            var console = document.getElementById("console");
            console.appendChild(li);
        }
      </script>
    </head>
    <body onload="start();">
      <div contenteditable="true" id="insertlisthere">.</div>
    <ul id="console"></ul>
    </body>
  </html>
</mat:diff>