Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/textfieldselection/setRangeText-repaint-textarea.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>setRangeText() on textarea updates the rendering</title>
<link rel="match" href="setRangeText-repaint-textarea-ref.html">
<textarea id="control">Hello</textarea>
<script>
requestAnimationFrame(() => requestAnimationFrame(() => {
document.getElementById("control").setRangeText("abaner", 1, 4);
document.documentElement.classList.remove("reftest-wait");
}));
</script>
</html>