LibWeb: Implement Document.rootElement (SVG2 extension to Document)

This commit is contained in:
Andreas Kling 2025-05-09 00:30:40 +02:00 committed by Andreas Kling
commit 879cba762b
Notes: github-actions[bot] 2025-05-16 18:37:14 +00:00
4 changed files with 16 additions and 3 deletions

View file

@ -270,6 +270,9 @@ public:
Element* document_element();
Element const* document_element() const;
// https://www.w3.org/TR/SVG2/struct.html#InterfaceDocumentExtensions
GC::Ptr<SVG::SVGSVGElement> root_element();
HTML::HTMLHtmlElement* html_element();
HTML::HTMLHeadElement* head();
GC::Ptr<HTML::HTMLTitleElement> title_element();