mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Add HTMLToken(Type) constructor and use it
This commit is contained in:
committed by
Ali Mohammad Pur
parent
f2e3c770f9
commit
25cba4387b
@@ -2665,8 +2665,7 @@ bool HTMLTokenizer::consume_next_if_match(StringView const& string, CaseSensitiv
|
||||
|
||||
void HTMLTokenizer::create_new_token(HTMLToken::Type type)
|
||||
{
|
||||
m_current_token = {};
|
||||
m_current_token.m_type = type;
|
||||
m_current_token = { type };
|
||||
size_t offset = 0;
|
||||
switch (type) {
|
||||
case HTMLToken::Type::StartTag:
|
||||
|
||||
Reference in New Issue
Block a user