script: Propagate the attribute into the document's element_attr_will_change method.

This commit is contained in:
Emilio Cobos Álvarez 2017-01-26 23:05:29 +01:00
parent 7a9cdbb857
commit d37e6f8c66
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 7 additions and 7 deletions

View file

@ -170,7 +170,7 @@ impl AttrMethods for Attr {
impl Attr {
pub fn set_value(&self, mut value: AttrValue, owner: &Element) {
assert!(Some(owner) == self.owner().r());
owner.will_mutate_attr();
owner.will_mutate_attr(self);
self.swap_value(&mut value);
if self.identifier.namespace == ns!() {
vtable_for(owner.upcast())