mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Implement Element.removeAttributeNode()
This commit is contained in:
parent
f13bda60ba
commit
20bdda7f02
Notes:
sideshowbarker
2024-07-16 22:17:03 +09:00
Author: https://github.com/awesomekling
Commit: 20bdda7f02
Pull-request: https://github.com/SerenityOS/serenity/pull/23964
7 changed files with 43 additions and 1 deletions
|
@ -305,6 +305,12 @@ void Element::remove_attribute_ns(Optional<FlyString> const& namespace_, FlyStri
|
|||
m_attributes->remove_attribute_ns(namespace_, name);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-removeattributenode
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Attr>> Element::remove_attribute_node(JS::NonnullGCPtr<Attr> attr)
|
||||
{
|
||||
return m_attributes->remove_attribute_node(attr);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-hasattribute
|
||||
bool Element::has_attribute(FlyString const& name) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue