mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
This change makes find-in-page ignore content that’s been added to the document using CSS ::after or ::before pseudo-elements. Ignoring such pseudo-element content for find-in-page matches the behavior in Chrome and Safari (though not in Firefox). Otherwise, without this change, find-in-page doesn’t ignore the pseudo-element content, and we instead crash in DOM::Range::common_ancestor_container after hitting an assert, due to the start container and end container for the matched range not having a common ancestor. Fixes https://github.com/LadybirdBrowser/ladybird/issues/514
2.8 KiB
2.8 KiB