diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-28 00:20:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-28 00:20:36 +0200 |
commit | 422e00c8069fefe37731c41fdfb4902e33135558 (patch) | |
tree | 452c32bb4ab7cb07832bf899fe0bd1d025691aa0 /Libraries | |
parent | d25ffd3ed8e05d287f86052b495a8c460191bc80 (diff) | |
download | serenity-422e00c8069fefe37731c41fdfb4902e33135558.zip |
LibWeb: Add a "quirks mode" flag to Document
This doesn't do anything yet, but it will sooner or later. :^)
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/DOM/Document.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.h index baf1418187..ee72d54c1a 100644 --- a/Libraries/LibWeb/DOM/Document.h +++ b/Libraries/LibWeb/DOM/Document.h @@ -133,6 +133,9 @@ public: HTMLScriptElement* pending_parsing_blocking_script() { return m_pending_parsing_blocking_script; } NonnullRefPtr<HTMLScriptElement> take_pending_parsing_blocking_script(Badge<HTMLDocumentParser>); + bool in_quirks_mode() const { return m_quirks_mode; } + void set_quirks_mode(bool mode) { m_quirks_mode = mode; } + private: virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override; @@ -158,6 +161,8 @@ private: OwnPtr<JS::Interpreter> m_interpreter; RefPtr<HTMLScriptElement> m_pending_parsing_blocking_script; + + bool m_quirks_mode { false }; }; template<> |