Auto merge of #6554 - dzbarsky:master, r=Ms2ger

Test namespace prefix for element equality



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6554)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-13 22:24:22 -06:00
commit 91ce002241
3 changed files with 29 additions and 2 deletions

View file

@ -2368,8 +2368,8 @@ impl<'a> NodeMethods for &'a Node {
fn is_equal_element(node: &Node, other: &Node) -> bool {
let element: &Element = ElementCast::to_ref(node).unwrap();
let other_element: &Element = ElementCast::to_ref(other).unwrap();
// FIXME: namespace prefix
(*element.namespace() == *other_element.namespace()) &&
(*element.prefix() == *other_element.prefix()) &&
(*element.local_name() == *other_element.local_name()) &&
(element.attrs().len() == other_element.attrs().len())
}