Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/delete-immediately-after-changing-input-type-from-time.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
const input = document.querySelector("input");
requestAnimationFrame(() => {
document.body.appendChild(document.querySelector("time"));
input.value = "A";
});
input.focus();
input.setAttribute("type", "text");
document.execCommand("delete");
});
</script>
</head>
<body>
<input type="time">
<time>
<dir>
<li></li></dir></time></body>
</html>