Files
ladybird/Tests/LibWeb/Text/expected/Editing/execCommand-delete.txt
Jelle Raaijmakers b9da7baac4 LibWeb: Extend logic for extraneous line breaks in block elements
While editing, we need to consider whether removing a <br> has any
effect on layout to determine whether its extraneous. This new condition
finds most cases for extraneous <br>s inside block elements.
2025-09-16 06:57:30 -04:00

19 lines
397 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--- a ---
Before: foobar
After: fobar
--- b ---
Before: foo👩🏼👨🏻bar
After: foobar
--- c ---
Before: foo<div contenteditable="">bar</div>
After: foobar
--- d ---
Before: foo<br><br><div>bar<br>baz</div>
After: foo<br><div>bar<br>baz</div>
--- e ---
Before: <p>foo</p><br><p>bar</p>
After: <p>foo</p><p>bar</p>
--- f ---
Before: <p><span>abc</span><br></p>
After: <p><br></p>