Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editor/input-setRangeText-during-noframe-crash.html - WPT Dashboard Interop Dashboard
<!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>