LibWeb: Consume the extra whitespace in stringifier attributes
This commit is contained in:
parent
0f749681a9
commit
f9a169380c
Notes:
sideshowbarker
2024-07-18 03:59:53 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/f9a169380ca Pull-request: https://github.com/SerenityOS/serenity/pull/10022
1 changed files with 3 additions and 1 deletions
|
@ -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 (;;) {
|
||||
|
|
Loading…
Add table
Reference in a new issue