Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/set-selection-range-after-updating-textarea-default-value.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
const textarea = document.createElement("textarea");
document.documentElement.appendChild(textarea);
textarea.focus();
textarea.dir = "rtl";
textarea.prepend("0123456789A", document.createElement("marquee"));
textarea.setSelectionRange(8, 13, "");
});
</script>
</head>
</html>