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/textarea-setRangeText-utf16-code-unit-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>setRangeText: Should not crash when setting text range intersects UTF-16 code units</title>
<script>
textarea = document.createElement("textarea");
textarea.defaultValue = String.fromCodePoint(806453);
textarea.setRangeText("", 0, 1);
</script>