summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1344097.html
blob: 7f76957c5ab071e57d6a17ed6f31e1a01f0e6b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
    <head>
        <script></script>
        <script>
            document.designMode = 'on';
            o1 = window.getSelection();
            o2 = document.createElement('code'); 
            o3 = document.createElement('style');
            o4 = document.createElement('style');
            document.head.appendChild(o3);
            o1.modify("move", "right", "character");
            document.styleSheets[0].insertRule("* { position: absolute; }", 0);
            document.head.appendChild(o4);
            window.resizeTo(1,1);
            document.documentElement.appendChild(o2);
            o1.selectAllChildren(o2);
        </script>
    </head>
    <body></body>
</html>