mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
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:
commit
5a66b59f9b
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue