mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Consume the extra whitespace in stringifier attributes
This commit is contained in:
committed by
Andreas Kling
parent
0f749681a9
commit
f9a169380c
@@ -337,12 +337,14 @@ static OwnPtr<Interface> parse_interface(StringView filename, StringView const&
|
||||
|
||||
auto parse_stringifier = [&](HashMap<String, String>& extended_attributes) {
|
||||
assert_string("stringifier");
|
||||
consume_whitespace();
|
||||
interface->has_stringifier = true;
|
||||
if (lexer.next_is("readonly") || lexer.next_is("attribute")) {
|
||||
parse_attribute(extended_attributes);
|
||||
interface->stringifier_attribute = interface->attributes.last().name;
|
||||
} else {
|
||||
assert_specific(';');
|
||||
}
|
||||
assert_specific(';');
|
||||
};
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user