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

@ -2157,7 +2157,7 @@ impl Document {
}
}
pub fn element_attr_will_change(&self, el: &Element) {
pub fn element_attr_will_change(&self, el: &Element, _attr: &Attr) {
let mut snapshot = self.ensure_snapshot(el);
if snapshot.attrs.is_none() {
let attrs = el.attrs()