1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

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.
This commit is contained in:
Andreas Kling 2020-06-21 00:59:28 +02:00
parent 319ef8aa86
commit faff557400
Notes: sideshowbarker 2024-07-19 05:30:46 +09:00
4 changed files with 5 additions and 2 deletions

View file

@ -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)