LibWeb: Port HTMLElement innerText/outerText to UTF-16

This commit is contained in:
Timothy Flynn 2025-07-28 11:29:59 -04:00 committed by Jelle Raaijmakers
commit 8600925713
Notes: github-actions[bot] 2025-07-28 16:32:29 +00:00
4 changed files with 51 additions and 44 deletions

View file

@ -523,7 +523,7 @@ String element_rendered_text(DOM::Node& node)
return node.text_content().value_or({}).to_utf8_but_should_be_ported_to_utf16();
auto& element = static_cast<HTML::HTMLElement&>(node);
return element.inner_text();
return element.inner_text().to_utf8_but_should_be_ported_to_utf16();
}
// https://w3c.github.io/webdriver/#dfn-center-point