Debian Codegraph @

testing/web-platform/mozilla/tests/editor/input-setRangeText-during-noframe-crash.html

raw
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script>
6 document.addEventListener("DOMContentLoaded", () => {
7 const input = document.querySelector("input");
8 input.select();
9 input.type = "text/x-ecmascript";
10 input.setRangeText("foo", 1, 1);
11 document.execCommand("enableObjectResizing");
12 });
13 </script>
14 </head>
15 <body>
16 <input type="number" value="a">
17 </body>
18 </html>