diff options
author | Alexander Narsudinov <a.narsudinov@gmail.com> | 2022-12-16 17:45:03 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-17 18:27:57 +0100 |
commit | f2d7690702fadd4bd4bdee7229461357ea7d56e6 (patch) | |
tree | 5aaa2e3d32c3004319121919e3be1e06f6329e75 /Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp | |
parent | ce6cf5bab8322412c14aa8a273f1fa4714769248 (diff) | |
download | serenity-f2d7690702fadd4bd4bdee7229461357ea7d56e6.zip |
LibWeb: Add NamedNodeMap::getNamedItemNS()
This patch allows us to use method getNamedItemNS() of NamedNodeMap API.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp index 5ba887d206..6d47d3c065 100644 --- a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp +++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp @@ -80,6 +80,12 @@ Attr const* NamedNodeMap::get_named_item(StringView qualified_name) const return get_attribute(qualified_name); } +// https://dom.spec.whatwg.org/#dom-namednodemap-getnameditemns +Attr const* NamedNodeMap::get_named_item_ns(StringView namespace_, StringView local_name) const +{ + return get_attribute_ns(namespace_, local_name); +} + // https://dom.spec.whatwg.org/#dom-namednodemap-setnameditem WebIDL::ExceptionOr<Attr const*> NamedNodeMap::set_named_item(Attr& attribute) { |