Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/removeformat-in-number-input-immediately-after-type-change-and-stepUp.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 = "number";
document.querySelector("switch").scrollIntoView(true);
input.stepUp(1);
document.execCommand("removeFormat");
});
</script>
</head>
<body>
<input>
<switch>
</body>
</html>