Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /selection/crashtests/selection-extend-into-input-from-inside-button.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
addEventListener("DOMContentLoaded", () => {
getSelection().collapse(document.querySelector("button"), 0);
getSelection().extend(document.querySelector("input"), 1);
});
</script>
</head>
<body>
<input type="date">
<button>
<!-- -->
</button></body></html>