Call unregister_named_element rather update_idmap from before_remove_attr.

This commit is contained in:
Ms2ger 2014-02-25 17:23:20 +01:00
parent 432e9cb3a7
commit 86899b6aaf

View file

@ -317,7 +317,7 @@ impl Element {
// "borrowed value does not live long enough" // "borrowed value does not live long enough"
let mut doc = self.node.owner_doc(); let mut doc = self.node.owner_doc();
let doc = doc.get_mut(); let doc = doc.get_mut();
doc.update_idmap(abstract_self, None, Some(old_value)); doc.unregister_named_element(old_value);
} }
} }
_ => () _ => ()