summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1381541.html
blob: 8902e3d032af5dd21e1895f5d4bdb14fe258607c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
  <head>
    <script type="application/javascript">
      var editable = document.createElement('div');
      document.documentElement.appendChild(editable);
      editable.contentEditable = 'true';
      var div = document.createElement('div');
      document.documentElement.appendChild(div);
      // Flush content
      div.offsetLeft;
      document.execCommand('styleWithCSS', false, true);

      var range = new Range();
      window.getSelection().addRange(range);
      range.setStart(document.createTextNode(''), 0);
      document.queryCommandState('backcolor');
    </script>
  </head>
</html>