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