mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Port Element interface from DeprecatedString
This is the last IDL interface which was using DeprecatedString! :^)
This commit is contained in:
parent
274e0f4988
commit
4321606bba
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/shannonbooth
Commit: 4321606bba
Pull-request: https://github.com/SerenityOS/serenity/pull/21345
Reviewed-by: https://github.com/kennethmyhra ✅
12 changed files with 295 additions and 251 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue