mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Move Node.namespaceURI to Element.(fixes #2059)
This commit is contained in:
parent
7541b57526
commit
77941dc996
4 changed files with 8 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue