1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

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
parent 31db3f21ae
commit 20911efd4d
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 {