1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:27:34 +00:00

LibWeb: Implement all "attributes" mutation records for MutationObserver

This commit is contained in:
Luke Wilde 2022-07-11 16:40:01 +01:00 committed by Andreas Kling
parent 1ca8782c99
commit a718c62c01
4 changed files with 62 additions and 6 deletions

View file

@ -30,14 +30,17 @@ public:
String const& name() const { return m_qualified_name.as_string(); }
String const& value() const { return m_value; }
void set_value(String value) { m_value = move(value); }
void set_value(String value);
Element* owner_element();
Element const* owner_element() const;
void set_owner_element(Element const* owner_element);
// Always returns true: https://dom.spec.whatwg.org/#dom-attr-specified
constexpr bool specified() const { return true; }
void handle_attribute_changes(Element&, String const& old_value, String const& new_value);
private:
Attribute(Document&, FlyString local_name, String value, Element const*);