1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

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
parent 50ec91fbe3
commit 2d97dd019e

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);