1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 12:05:07 +00:00

LibWeb: Port Node interface from DeprecatedString to String

Which is fortunately quite straight forward :^)
This commit is contained in:
Shannon Booth 2023-09-17 10:51:43 +12:00 committed by Andreas Kling
parent a76ef04ae6
commit 8ce9e51c97
21 changed files with 50 additions and 45 deletions

View file

@ -108,7 +108,7 @@ Optional<ARIA::Role> HTMLAnchorElement::default_role() const
String HTMLAnchorElement::text() const
{
// The text attribute's getter must return this element's descendant text content.
return MUST(String::from_deprecated_string(descendant_text_content()));
return descendant_text_content();
}
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#dom-a-text