mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
LibWeb: Port HTMLElement innerText/outerText to UTF-16
This commit is contained in:
parent
5c561c1a53
commit
8600925713
Notes:
github-actions[bot]
2025-07-28 16:32:29 +00:00
Author: https://github.com/trflynn89
Commit: 8600925713
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5627
Reviewed-by: https://github.com/gmta ✅
4 changed files with 51 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue