Files
sousa-gecko/testing/web-platform/tests/dom/crashtests/normalize-crash.html
T
Sharon Yang 42a62759b8 Bug 2052274 [wpt PR 61043] - Migrate dom/text/normalize-crash-in-spell-checker to external/wpt, a=testonly
Automatic update from web-platform-tests
Migrate dom/text/normalize-crash-in-spell-checker to external/wpt

New test location is external/wpt/dom/crashtests/normalize-crash.html.

Bug: 40336597, 485677942
Change-Id: I3df66f360171ff22c9629892027635da6ba40dd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8035961
Commit-Queue: Sharon Yang <yangsharon@igalia.com>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1656222}

--

wpt-commits: 7723ea33778815137923395fb2e02de70020ce63
wpt-pr: 61043
2026-07-10 09:24:36 +00:00

17 lines
566 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Node.normalize() with contenteditable selection should not crash</title>
<link rel="help" href="https://crbug.com/40336597">
<div id="sample" contenteditable="true"></div>
<script>
var text1 = document.createTextNode('abc');
var text2 = document.createTextNode(' defg');
var sample = document.getElementById('sample');
sample.appendChild(text1);
sample.appendChild(text2);
var selection = window.getSelection();
selection.collapse(sample, 0);
selection.extend(sample, 2);
sample.normalize();
</script>