Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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>