diff options
author | Servo WPT Sync <32481905+servo-wpt-sync@users.noreply.github.com> | 2025-03-09 02:39:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-09 01:39:16 +0000 |
commit | 66583ce3c956ada4432aae88a7e3ca3c96d04a63 (patch) | |
tree | c04577436879bd4802b643589ba3d851e781d29f /tests/wpt/tests/selection | |
parent | d0a306729ddb40a575475818d2455c434a613d28 (diff) | |
download | servo-66583ce3c956ada4432aae88a7e3ca3c96d04a63.tar.gz servo-66583ce3c956ada4432aae88a7e3ca3c96d04a63.zip |
Update web-platform-tests to revision b'c23b0ad587af296087067b48a2f2101233589a8f' (#35869)
Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
Diffstat (limited to 'tests/wpt/tests/selection')
-rw-r--r-- | tests/wpt/tests/selection/crashtests/selection-detached-range-find-crash.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/wpt/tests/selection/crashtests/selection-detached-range-find-crash.html b/tests/wpt/tests/selection/crashtests/selection-detached-range-find-crash.html new file mode 100644 index 00000000000..e64446467da --- /dev/null +++ b/tests/wpt/tests/selection/crashtests/selection-detached-range-find-crash.html @@ -0,0 +1,21 @@ +<script> + document.addEventListener("DOMContentLoaded", () => { + let s = window.getSelection() + r = document.createRange() + r.selectNode(c) + s.addRange(r) + r.selectNode(a) + s.addRange(r) + window.getSelection().modify("move", "right", "line") + b.replaceWith(document.createElement("section")) + window.find("A") + }) + </script> + <del> + <strong id="a"></strong> + <menu> + <canvas> + <input/> + <mark> + <small id="b"> + <video id="c"> |