diff options
author | Youngsoo Son <ysoo.son@samsung.com> | 2013-08-08 09:59:28 +0900 |
---|---|---|
committer | Youngsoo Son <ysoo.son@samsung.com> | 2013-08-08 09:59:28 +0900 |
commit | cd95636de992048ab85465b109d1377b09680f72 (patch) | |
tree | 21df8ac730cea168bd718f206eabc68b3490393f /src/components/script | |
parent | b84552b89d29160240443e51a776d827df2116d0 (diff) | |
download | servo-cd95636de992048ab85465b109d1377b09680f72.tar.gz servo-cd95636de992048ab85465b109d1377b09680f72.zip |
Implement element.tagName
Diffstat (limited to 'src/components/script')
-rw-r--r-- | src/components/script/dom/element.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs index 75b2868491f..0a2ac6b20ad 100644 --- a/src/components/script/dom/element.rs +++ b/src/components/script/dom/element.rs @@ -9,8 +9,8 @@ use dom::bindings::codegen::{HTMLAnchorElementBinding, HTMLDivElementBinding, HT use dom::bindings::codegen::{HTMLHRElementBinding}; use dom::bindings::codegen::{HTMLParagraphElementBinding, HTMLScriptElementBinding}; use dom::bindings::codegen::{HTMLImageElementBinding}; -use dom::bindings::utils::{DOMString, null_string, ErrorResult}; -use dom::bindings::utils::{CacheableWrapper, BindingObject, WrapperCache}; +use dom::bindings::utils::{null_string, str}; +use dom::bindings::utils::{BindingObject, CacheableWrapper, DOMString, ErrorResult, WrapperCache}; use dom::clientrect::ClientRect; use dom::clientrectlist::ClientRectList; use dom::htmlanchorelement::HTMLAnchorElement; @@ -278,7 +278,7 @@ impl<'self> Element { impl Element { pub fn TagName(&self) -> DOMString { - null_string + str(self.tag_name.to_owned()) } pub fn Id(&self) -> DOMString { |