1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

LibWeb: Port Element interface from DeprecatedString

This is the last IDL interface which was using DeprecatedString! :^)
This commit is contained in:
Shannon Booth 2023-10-06 07:43:52 +13:00 committed by Andreas Kling
parent 274e0f4988
commit 4321606bba
12 changed files with 295 additions and 251 deletions

View file

@ -22,10 +22,10 @@ public:
// https://www.w3.org/TR/html-aria/#el-h1-h6
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::heading; }
virtual DeprecatedString aria_level() const override
virtual Optional<String> aria_level() const override
{
// TODO: aria-level = the number in the element's tag name
return deprecated_get_attribute("aria-level"sv);
return get_attribute("aria-level"sv);
}
private: