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-modify-line-next-to-textarea.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
getSelection().collapse(document.querySelector("header"), 1);
getSelection().modify("move", "backward", "line");
const ruby = document.querySelector("ruby");
ruby.parentElement.replaceChild(document.createElement("h3"), ruby);
getSelection().modify("extend", "backward", "character");
});
</script>
</head>
<body>
<textarea>
</textarea>
<abbr>
<header>
<select autofocus='false'>
<input/>
<sup>
<ruby id='a'>
</body>
</html>