Move Node.namespaceURI to Element.(fixes #2059)

This commit is contained in:
lpy 2014-04-08 17:06:17 +08:00
parent 7541b57526
commit 77941dc996
4 changed files with 8 additions and 10 deletions

View file

@ -443,6 +443,11 @@ impl Element {
}
impl Element {
// http://dom.spec.whatwg.org/#dom-element-namespaceuri
pub fn NamespaceURI(&self) -> DOMString {
self.namespace.to_str().to_owned()
}
// http://dom.spec.whatwg.org/#dom-element-tagname
pub fn TagName(&self) -> DOMString {
self.tag_name.to_ascii_upper()