diff options
author | Linus Groh <mail@linusgroh.de> | 2022-09-25 17:28:46 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-09-25 19:13:31 +0100 |
commit | bbaa05fcf9a2a7b9515319b102a234be930824cd (patch) | |
tree | 4113d3e5f6cfa9331f80b62cb9783020c701fdae /Userland/Libraries/LibWeb/HTML/HTMLElement.cpp | |
parent | ad04d7ac9b88ecea572cf517f6e01ccf1e95073d (diff) | |
download | serenity-bbaa05fcf9a2a7b9515319b102a234be930824cd.zip |
LibWeb: Move DOMException from DOM/ to WebIDL/
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp index 3513098adc..a7192f08f5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -7,7 +7,6 @@ #include <AK/StringBuilder.h> #include <LibJS/Interpreter.h> #include <LibJS/Parser.h> -#include <LibWeb/DOM/DOMException.h> #include <LibWeb/DOM/Document.h> #include <LibWeb/DOM/IDLEventListener.h> #include <LibWeb/HTML/BrowsingContext.h> @@ -24,6 +23,7 @@ #include <LibWeb/UIEvents/EventNames.h> #include <LibWeb/UIEvents/FocusEvent.h> #include <LibWeb/UIEvents/MouseEvent.h> +#include <LibWeb/WebIDL/DOMException.h> #include <LibWeb/WebIDL/ExceptionOr.h> namespace Web::HTML { @@ -104,7 +104,7 @@ WebIDL::ExceptionOr<void> HTMLElement::set_content_editable(String const& conten set_attribute(HTML::AttributeNames::contenteditable, "false"); return {}; } - return DOM::SyntaxError::create(global_object(), "Invalid contentEditable value, must be 'true', 'false', or 'inherit'"); + return WebIDL::SyntaxError::create(global_object(), "Invalid contentEditable value, must be 'true', 'false', or 'inherit'"); } void HTMLElement::set_inner_text(StringView text) |