1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibWeb: Add NamedNodeMap::removeNamedItemNS() method

This patch adds implementation of the missing `removeNamedItemNS()`
method.
This commit is contained in:
Alexander Narsudinov 2022-12-17 17:08:51 +03:00 committed by Andreas Kling
parent 7679d38c5f
commit 530d5adc62
3 changed files with 33 additions and 1 deletions

View file

@ -39,6 +39,7 @@ public:
Attr const* get_named_item_ns(StringView namespace_, StringView local_name) const;
WebIDL::ExceptionOr<Attr const*> set_named_item(Attr& attribute);
WebIDL::ExceptionOr<Attr const*> remove_named_item(StringView qualified_name);
WebIDL::ExceptionOr<Attr const*> remove_named_item_ns(StringView namespace_, StringView local_name);
// Methods defined by the spec for internal use:
Attr* get_attribute(StringView qualified_name, size_t* item_index = nullptr);
@ -49,6 +50,7 @@ public:
void replace_attribute(Attr& old_attribute, Attr& new_attribute, size_t old_attribute_index);
void append_attribute(Attr& attribute);
Attr const* remove_attribute(StringView qualified_name);
Attr const* remove_attribute_ns(StringView namespace_, StringView local_name);
private:
explicit NamedNodeMap(Element&);