Auto merge of #6760 - dzbarsky:comment-fix, r=jdm

Remove outdated comment about cloning elements

The comment points to the "implement element prefix" issue, but we clone the element's prefix when we construct the element right above.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6760)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-26 08:01:56 -06:00
commit 5a66b59f9b

View file

@ -1816,10 +1816,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();