mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +00:00
LibWeb: Fix incorrect behaviour in NamedNodeMap::removeNamedItem()
According to the spec we should return removed attribute, but the old implementation returned nullptr instead. Now we return the element's removed attribute.
This commit is contained in:
parent
f2d7690702
commit
7679d38c5f
Notes:
sideshowbarker
2024-07-18 00:41:35 +09:00
Author: https://github.com/a-narsudinov Commit: https://github.com/SerenityOS/serenity/commit/7679d38c5f Pull-request: https://github.com/SerenityOS/serenity/pull/16549
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ WebIDL::ExceptionOr<Attr const*> NamedNodeMap::remove_named_item(StringView qual
|
|||
return WebIDL::NotFoundError::create(realm(), DeprecatedString::formatted("Attribute with name '{}' not found", qualified_name));
|
||||
|
||||
// 3. Return attr.
|
||||
return nullptr;
|
||||
return attribute;
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name
|
||||
|
|
Loading…
Reference in a new issue