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:
parent
2411dadc35
commit
200d22c650
2 changed files with 3 additions and 3 deletions
|
@ -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"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue