Test element prefix for element equality

This commit is contained in:
David Zbarsky 2015-07-04 17:52:33 -04:00
parent c04b7bbf6e
commit 326b2a7161
4 changed files with 213 additions and 12 deletions

View file

@ -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