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:
parent
31db3f21ae
commit
20911efd4d
8 changed files with 186 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue