mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Test element prefix for element equality
This commit is contained in:
parent
c04b7bbf6e
commit
326b2a7161
4 changed files with 213 additions and 12 deletions
|
@ -1121,10 +1121,7 @@ impl<'a> AttributeHandlers for &'a Element {
|
|||
impl<'a> ElementMethods for &'a Element {
|
||||
// https://dom.spec.whatwg.org/#dom-element-namespaceuri
|
||||
fn GetNamespaceURI(self) -> Option<DOMString> {
|
||||
match self.namespace {
|
||||
ns!("") => None,
|
||||
Namespace(ref ns) => Some((**ns).to_owned())
|
||||
}
|
||||
Node::namespace_to_string(self.namespace.clone())
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-localname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue