mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-31 12:54:11 +00:00
LibWeb: Add remaining states to the Swift tokenizer
This includes all the DOCTYPE and Character reference states, as well as a few RAWTEXT ones that were missing by accident.
This commit is contained in:
committed by
Andrew Kaster
parent
1ea236e454
commit
1383d03c02
@@ -20,4 +20,12 @@ OptionalString decode_to_utf8(StringView text, StringView encoding)
|
||||
return decoded_or_error.release_value();
|
||||
}
|
||||
|
||||
OptionalEntityMatch match_entity_for_named_character_reference(StringView entity)
|
||||
{
|
||||
auto entity_match = code_points_from_entity(entity);
|
||||
if (entity_match.has_value())
|
||||
return entity_match.release_value();
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user