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

LibWeb: Make factory method of DOM::Text fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 07:47:47 +01:00 committed by Linus Groh
parent 2411dadc35
commit 200d22c650
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class Text : public CharacterData {
public:
virtual ~Text() override = default;
static JS::NonnullGCPtr<Text> construct_impl(JS::Realm& realm, DeprecatedString const& data);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Text>> construct_impl(JS::Realm& realm, DeprecatedString const& data);
// ^Node
virtual DeprecatedFlyString node_name() const override { return "#text"; }