mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Add the Document.documentElement API
Also change DOM::Document::document_element() to return an Element* and not an HTML::HTMLHtmlElement since that's not the only kind of documentElement we might encounter.
This commit is contained in:
parent
64a82100bd
commit
e27726dc92
4 changed files with 12 additions and 3 deletions
|
@ -85,7 +85,7 @@ public:
|
|||
Node* inspected_node() { return m_inspected_node; }
|
||||
const Node* inspected_node() const { return m_inspected_node; }
|
||||
|
||||
const HTML::HTMLHtmlElement* document_element() const;
|
||||
const Element* document_element() const;
|
||||
const HTML::HTMLHeadElement* head() const;
|
||||
const HTML::HTMLElement* body() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue