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
commit 4321606bba
Notes: sideshowbarker 2024-07-17 02:06:40 +09:00
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: