mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02: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:
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/7b8a6b8e7a Pull-request: https://github.com/SerenityOS/serenity/pull/15330
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user