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

LibWeb: Port AriaData from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-11-20 21:59:45 +13:00 committed by Andreas Kling
parent 6c42de3e8b
commit c5d3ccca00
8 changed files with 86 additions and 86 deletions

View file

@ -6,7 +6,7 @@
#pragma once
#include <AK/DeprecatedString.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibWeb/ARIA/AriaData.h>
#include <LibWeb/ARIA/Roles.h>
@ -180,15 +180,15 @@ public:
bool has_global_aria_attribute() const;
// https://www.w3.org/TR/wai-aria-1.2/#valuetype_idref
Optional<DeprecatedString> parse_id_reference(DeprecatedString const&) const;
Optional<String> parse_id_reference(Optional<String> const&) const;
// https://www.w3.org/TR/wai-aria-1.2/#valuetype_idref_list
Vector<DeprecatedString> parse_id_reference_list(DeprecatedString const&) const;
Vector<String> parse_id_reference_list(Optional<String> const&) const;
protected:
ARIAMixin() = default;
virtual bool id_reference_exists(DeprecatedString const&) const = 0;
virtual bool id_reference_exists(String const&) const = 0;
};
}