mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 07:32:00 +00:00
LibWeb: Hide implementation details of HTMLToken attribute list
Previously, HTMLToken would expose the Vector<Attribute> directly to its users. In preparation for a future change, all users now use implementation-agnostic APIs which do not expose the Vector directly.
This commit is contained in:
parent
15d8635afc
commit
918bde98b1
Notes:
sideshowbarker
2024-07-18 08:52:54 +09:00
Author: https://github.com/MaxWipfli
Commit: 918bde98b1
Pull-request: https://github.com/SerenityOS/serenity/pull/8784
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
6 changed files with 108 additions and 59 deletions
|
@ -61,7 +61,7 @@ using Token = Web::HTML::HTMLToken;
|
|||
|
||||
#define EXPECT_TAG_TOKEN_ATTRIBUTE_COUNT(count) \
|
||||
VERIFY(last_token.has_value()); \
|
||||
EXPECT_EQ(last_token->attributes().size(), (size_t)count);
|
||||
EXPECT_EQ(last_token->attribute_count(), (size_t)(count));
|
||||
|
||||
static Vector<Token> run_tokenizer(StringView const& input)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue