LibWeb: More work on the HTML parser and tokenizer

The parser can now switch the state of the tokenizer! Very webby. :^)
This commit is contained in:
Andreas Kling 2020-05-24 20:24:43 +02:00
commit 20911efd4d
Notes: sideshowbarker 2024-07-19 06:10:24 +09:00
8 changed files with 186 additions and 14 deletions

View file

@ -39,6 +39,7 @@ class HTMLToken {
public:
enum class Type {
Invalid,
DOCTYPE,
StartTag,
EndTag,
@ -101,7 +102,7 @@ private:
StringBuilder value_builder;
};
Type m_type;
Type m_type { Type::Invalid };
// Type::DOCTYPE
struct {