1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibWeb: Use DOMException in Document::set_body()

This commit is contained in:
Linus Groh 2021-02-20 00:42:25 +01:00 committed by Andreas Kling
parent 0d196d14d2
commit dd621cc650
2 changed files with 12 additions and 11 deletions

View file

@ -41,6 +41,7 @@
#include <LibWeb/CSS/StyleSheet.h>
#include <LibWeb/CSS/StyleSheetList.h>
#include <LibWeb/DOM/DOMImplementation.h>
#include <LibWeb/DOM/ExceptionOr.h>
#include <LibWeb/DOM/NonElementParentNode.h>
#include <LibWeb/DOM/ParentNode.h>
#include <LibWeb/HTML/HTMLScriptElement.h>
@ -105,7 +106,7 @@ public:
const HTML::HTMLHtmlElement* html_element() const;
const HTML::HTMLHeadElement* head() const;
const HTML::HTMLElement* body() const;
void set_body(HTML::HTMLElement& new_body);
ExceptionOr<void> set_body(HTML::HTMLElement& new_body);
String title() const;
void set_title(const String&);