1
0
Fork 0
firefox/testing/web-platform/tests/selection/crashtests/selectall-and-find-svg-text-on-selectstart.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
503 B
HTML

<!doctype html>
<html class="reftest-wait">
<head>
<meta charset="utf-8">
<script>
addEventListener("DOMContentLoaded", () => {
let i = 5;
document.addEventListener("selectstart", () => {
window.find("AAA");
document.querySelector("li").before(document.querySelector("text"));
if (!(--i)) {
document.documentElement.removeAttribute("class");
}
});
document.execCommand("selectAll");
}, {once: true});
</script>
<body>
<svg>
<text>AAA</text>
<li>
</li></svg></body>
</html>