summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/editor/input-setRangeText-during-noframe-crash.html
blob: 815ec994e8e1c0b50999e84f599eba275da56b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
  const input = document.querySelector("input");
  input.select();
  input.type = "text/x-ecmascript";
  input.setRangeText("foo", 1, 1);
  document.execCommand("enableObjectResizing");
});
</script>
</head>
<body>
<input type="number" value="a">
</body>
</html>