mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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.
28 lines
525 B
Plaintext
28 lines
525 B
Plaintext
--- a ---
|
||
Before: foobar
|
||
After: fooar
|
||
--- b ---
|
||
Before: a
|
||
After: a
|
||
--- c ---
|
||
Before: a b
|
||
After: a b
|
||
--- d ---
|
||
Before: a b
|
||
After: a b
|
||
--- e ---
|
||
Before: a b
|
||
After: a b
|
||
--- f ---
|
||
Before: a b
|
||
After: a b
|
||
--- g ---
|
||
Before: b
|
||
After: b
|
||
--- h ---
|
||
Before: foo👩🏼❤️👨🏻bar
|
||
After: foobar
|
||
--- i ---
|
||
Before: foo<div>bar<br>baz</div>
|
||
After: foobar<div>baz</div>
|