mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:57:34 +00:00
LibWeb: Use the spec-mandated change-attribute when setting an attribute
This commit is contained in:
parent
50ec91fbe3
commit
2d97dd019e
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ WebIDL::ExceptionOr<void> Element::set_attribute(DeprecatedFlyString const& name
|
||||||
// 5. Change attribute to value.
|
// 5. Change attribute to value.
|
||||||
else {
|
else {
|
||||||
old_value = attribute->value();
|
old_value = attribute->value();
|
||||||
attribute->set_value(value);
|
attribute->change_attribute(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_changed(attribute->local_name(), value);
|
attribute_changed(attribute->local_name(), value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue