diff options
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index a83c801831d..4effc4daf33 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -91,6 +91,14 @@ pub trait VirtualMethods { } } + /// Called when changing or removing attributes, after all modification + /// has taken place. + fn after_remove_attr(&self, name: &Atom) { + if let Some(ref s) = self.super_type() { + s.after_remove_attr(name); + } + } + /// Returns the right AttrValue variant for the attribute with name `name` /// on this element. fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue { |