mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LibWeb: Add a "quirks mode" flag to Document
This doesn't do anything yet, but it will sooner or later. :^)
This commit is contained in:
parent
d25ffd3ed8
commit
422e00c806
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,9 @@ public:
|
||||||
HTMLScriptElement* pending_parsing_blocking_script() { return m_pending_parsing_blocking_script; }
|
HTMLScriptElement* pending_parsing_blocking_script() { return m_pending_parsing_blocking_script; }
|
||||||
NonnullRefPtr<HTMLScriptElement> take_pending_parsing_blocking_script(Badge<HTMLDocumentParser>);
|
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:
|
private:
|
||||||
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
||||||
|
|
||||||
|
@ -158,6 +161,8 @@ private:
|
||||||
OwnPtr<JS::Interpreter> m_interpreter;
|
OwnPtr<JS::Interpreter> m_interpreter;
|
||||||
|
|
||||||
RefPtr<HTMLScriptElement> m_pending_parsing_blocking_script;
|
RefPtr<HTMLScriptElement> m_pending_parsing_blocking_script;
|
||||||
|
|
||||||
|
bool m_quirks_mode { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue