From bf69f4370e07ccd84c9673de9c5c18e7ba3ecb63 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 11 Jan 2023 19:47:38 +0100 Subject: [PATCH] LibWeb: Implement BrowsingContext::selected_text() in terms of Selection Instead of sifting through the layout tree to extract the selected text, look at the DOM selection instead. Note that we can't just stringify the DOM Range, as that would include non-visible things (like the content of