Remove outdated comment about cloning elements

This commit is contained in:
David Zbarsky 2015-07-25 13:40:29 -04:00
parent a0cf597946
commit 3801cfdd35

View file

@ -1858,10 +1858,9 @@ impl Node {
copy_doc.set_quirks_mode(node_doc.quirks_mode());
},
NodeTypeId::Element(..) => {
let node_elem: &Element = ElementCast::to_ref(node).unwrap();
let copy_elem: &Element = ElementCast::to_ref(copy.r()).unwrap();
let node_elem = ElementCast::to_ref(node).unwrap();
let copy_elem = ElementCast::to_ref(copy.r()).unwrap();
// FIXME: https://github.com/mozilla/servo/issues/1737
let window = document.r().window();
for ref attr in node_elem.attrs().iter() {
let attr = attr.root();