mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Test element prefix for element equality
This commit is contained in:
parent
52e857dd7b
commit
0fa8e51432
3 changed files with 29 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue