1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00

LibWeb: Expose Node.ownerDocument

Required by jQuery.
This commit is contained in:
Luke 2021-05-02 21:03:50 +01:00 committed by Andreas Kling
parent 329cb134d6
commit 8bafbdddc6
3 changed files with 11 additions and 0 deletions

View file

@ -99,6 +99,8 @@ public:
Document& document() { return *m_document; }
const Document& document() const { return *m_document; }
RefPtr<Document> owner_document() const;
const HTML::HTMLAnchorElement* enclosing_link_element() const;
const HTML::HTMLElement* enclosing_html_element() const;
const HTML::HTMLElement* enclosing_html_element_with_attribute(const FlyString&) const;