LibWeb: Set HTMLParser::m_scripting_enabled as according to the spec

This allows <noscript> elements to display their content as proper HTML
instead of raw text when scripting is disabled.
This commit is contained in:
Luke Wilde
2022-09-23 20:43:17 +01:00
committed by Sam Atkins
parent dfe57543a4
commit 7b8a6b8e7a
Notes: sideshowbarker 2024-07-17 07:43:44 +09:00
2 changed files with 7 additions and 1 deletions

View File

@@ -169,7 +169,11 @@ private:
bool m_foster_parenting { false };
bool m_frameset_ok { true };
bool m_parsing_fragment { false };
// https://html.spec.whatwg.org/multipage/parsing.html#scripting-flag
// The scripting flag is set to "enabled" if scripting was enabled for the Document with which the parser is associated when the parser was created, and "disabled" otherwise.
bool m_scripting_enabled { true };
bool m_invoked_via_document_write { false };
bool m_aborted { false };
bool m_parser_pause_flag { false };