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

LibWeb: Make factory method of DOM::NamedNodeMap fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 23:04:29 +01:00 committed by Linus Groh
parent ce18dfc417
commit e3e281addd
3 changed files with 7 additions and 4 deletions

View file

@ -22,7 +22,7 @@ class NamedNodeMap : public Bindings::LegacyPlatformObject {
WEB_PLATFORM_OBJECT(NamedNodeMap, Bindings::LegacyPlatformObject);
public:
static JS::NonnullGCPtr<NamedNodeMap> create(Element&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<NamedNodeMap>> create(Element&);
~NamedNodeMap() = default;
virtual bool is_supported_property_index(u32 index) const override;