summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1534394.html
blob: c254aa5f52ca1b12339f283f4096bae7f8962bc3 (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
<html>
<head>
    <script>

      function start () {
        const sel = document.getSelection()
        const range_1 = new Range()
        const noscript = document.getElementById('id_24')
        const map = document.getElementById('id_26')
        sel.selectAllChildren(noscript)
        const range_2 = range_1.cloneRange()
        range_2.selectNode(map)
        const frag = range_2.extractContents()
        range_2.insertNode(noscript)
        document.documentElement.contentEditable = true
        document.execCommand('removeFormat', false,)
        noscript.contentEditable = false
        document.execCommand('insertText', false, '�\n')
      }

      window.addEventListener('load', start)
    </script>
</head>
<body>
<big class="">
    <map class="" id="id_26">
        <noscript class="" id="id_24">
</body>
</html>