mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
LibWeb: Implement aborting the HTML parser
This is roughly on-spec, although I had to invent a simple "aborted" state for the tokenizer.
This commit is contained in:
parent
37ed1b28fa
commit
ab8432783e
4 changed files with 33 additions and 0 deletions
|
@ -68,7 +68,11 @@ public:
|
|||
|
||||
HTMLTokenizer& tokenizer() { return m_tokenizer; }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/parsing.html#abort-a-parser
|
||||
void abort();
|
||||
|
||||
bool aborted() const { return m_aborted; }
|
||||
bool stopped() const { return m_stop_parsing; }
|
||||
|
||||
size_t script_nesting_level() const { return m_script_nesting_level; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue