mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Implement the "after attribute name" tokenizer state
One little step at a time towards parsing the monster blob of HTML we get from twitter.com :^)
This commit is contained in:
@@ -807,6 +807,31 @@ _StartOfFunction:
|
||||
|
||||
BEGIN_STATE(AfterAttributeName)
|
||||
{
|
||||
ON_WHITESPACE
|
||||
{
|
||||
continue;
|
||||
}
|
||||
ON('/')
|
||||
{
|
||||
SWITCH_TO(SelfClosingStartTag);
|
||||
}
|
||||
ON('=')
|
||||
{
|
||||
SWITCH_TO(BeforeAttributeValue);
|
||||
}
|
||||
ON('>')
|
||||
{
|
||||
SWITCH_TO(Data);
|
||||
}
|
||||
ON_EOF
|
||||
{
|
||||
TODO();
|
||||
}
|
||||
ANYTHING_ELSE
|
||||
{
|
||||
m_current_token.m_tag.attributes.append(HTMLToken::AttributeBuilder());
|
||||
RECONSUME_IN(AttributeName);
|
||||
}
|
||||
}
|
||||
END_STATE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user