mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
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:
parent
dfe57543a4
commit
7b8a6b8e7a
2 changed files with 7 additions and 1 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue