Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /selection/crashtests/selectall-and-find-svg-text-on-selectstart.html - WPT Dashboard Interop Dashboard
<!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>