testing/web-platform/tests/selection/crashtests/selectall-and-find-svg-text-on-selectstart.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (4 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 692216 2425c93f20f61b806df955141332d7cb553c6efb
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!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>