mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
LibWeb: Implement Element.setAttributeNode{,NS}()
This commit is contained in:
parent
8c5c78f1f1
commit
fb6d6a985f
Notes:
sideshowbarker
2024-07-17 07:14:09 +09:00
Author: https://github.com/awesomekling
Commit: fb6d6a985f
7 changed files with 33 additions and 8 deletions
|
@ -71,6 +71,8 @@ public:
|
|||
DeprecatedString get_attribute(DeprecatedFlyString const& name) const;
|
||||
WebIDL::ExceptionOr<void> set_attribute(DeprecatedFlyString const& name, DeprecatedString const& value);
|
||||
WebIDL::ExceptionOr<void> set_attribute_ns(DeprecatedFlyString const& namespace_, DeprecatedFlyString const& qualified_name, DeprecatedString const& value);
|
||||
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node(Attr&);
|
||||
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node_ns(Attr&);
|
||||
void remove_attribute(DeprecatedFlyString const& name);
|
||||
WebIDL::ExceptionOr<bool> toggle_attribute(DeprecatedFlyString const& name, Optional<bool> force);
|
||||
size_t attribute_list_size() const { return m_attributes->length(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue