summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1158651.html
blob: 27278b5234bb1320b3427b276602aaab01cab834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script>
onload = function() {
  var testContainer = document.createElement("span");
  testContainer.contentEditable = true;
  document.body.appendChild(testContainer);

  function queryFormatBlock(content)
  {
    testContainer.innerHTML = content;
    while (testContainer.firstChild)
        testContainer = testContainer.firstChild;
    window.getSelection().collapse(testContainer, 0);
    document.queryCommandValue('formatBlock');
  }

  queryFormatBlock('<ol>hello</ol>');
};
</script>