Files
ladybird/Tests/LibWeb/Text/input/wpt-import/dom/ranges/Range-mutations-dataChange.html
Andreas Kling d8f95c5050 LibWeb: Don't neglect DOM range updates on CharacterData changes
Regressed in 036327332f.

This commit moves the optimization a little later in replaceData(),
still avoiding relayout (the important part).

Recovers 480 points on WPT. :^)
2025-02-21 11:54:00 +01:00

15 lines
592 B
HTML

<!doctype html>
<title>Range mutation tests - update data by IDL attributes</title>
<link rel="author" title="Aryeh Gregor" href=ayg@aryeh.name>
<meta name=timeout content=long>
<div id=log></div>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../common.js"></script>
<script src="Range-mutations.js"></script>
<script>
doTests(dataChangeTests, function(params) { return params[0] + "." + eval(params[1]) + " " + eval(params[2]) + ' ' + params[3] }, testDataChange);
testDiv.style.display = "none";
</script>