LibWeb: Use the spec-mandated change-attribute when setting an attribute

This commit is contained in:
Timothy Flynn 2023-09-02 10:00:53 -04:00 committed by Tim Flynn
commit 2d97dd019e
Notes: sideshowbarker 2024-07-16 23:51:07 +09:00

View file

@ -158,7 +158,7 @@ WebIDL::ExceptionOr<void> Element::set_attribute(DeprecatedFlyString const& name
// 5. Change attribute to value.
else {
old_value = attribute->value();
attribute->set_value(value);
attribute->change_attribute(value);
}
attribute_changed(attribute->local_name(), value);