summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Document.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-21 00:59:28 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-21 01:00:30 +0200
commitfaff557400a0c6979e82cf22769d9df6f988ed94 (patch)
tree42df8f1fe66ec7aaeb06d122b8a2eb0c9e58d844 /Libraries/LibWeb/DOM/Document.cpp
parent319ef8aa86f30d016ce331ce507c7fe91ea67b96 (diff)
downloadserenity-faff557400a0c6979e82cf22769d9df6f988ed94.zip
LibWeb: Expose Document.body to the web
Also, make it return a HTMLElement since Document.body should actually return the frameset element in a frame-based document.
Diffstat (limited to 'Libraries/LibWeb/DOM/Document.cpp')
-rw-r--r--Libraries/LibWeb/DOM/Document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp
index 19083596f0..cacd240404 100644
--- a/Libraries/LibWeb/DOM/Document.cpp
+++ b/Libraries/LibWeb/DOM/Document.cpp
@@ -138,7 +138,7 @@ const HTMLHeadElement* Document::head() const
return html->first_child_of_type<HTMLHeadElement>();
}
-const HTMLBodyElement* Document::body() const
+const HTMLElement* Document::body() const
{
auto* html = document_element();
if (!html)