1
0
Fork 0
firefox/testing/web-platform/tests/selection/crashtests/selection-modify-around-textarea.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
484 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
const time = document.querySelector("time");
getSelection().setBaseAndExtent(time, 2, time, 3);
getSelection().modify("move", "left", "line");
getSelection().collapseToStart();
});
</script>
</head>
<body><time style="user-select:none">
<h5>
<pre contenteditable></pre>
<textarea></textarea>
</h5>
<h6></h6>
<textarea></textarea>
</body>
</html>