aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlanchorelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmlanchorelement.rs')
-rw-r--r--src/components/script/dom/htmlanchorelement.rs133
1 files changed, 0 insertions, 133 deletions
diff --git a/src/components/script/dom/htmlanchorelement.rs b/src/components/script/dom/htmlanchorelement.rs
index d28e7289fce..af8ab7050c4 100644
--- a/src/components/script/dom/htmlanchorelement.rs
+++ b/src/components/script/dom/htmlanchorelement.rs
@@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAnchorElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAnchorElementDerived;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast, NodeCast};
use dom::bindings::js::{JSRef, Temporary, OptionalRootable};
-use dom::bindings::error::ErrorResult;
use dom::document::{Document, DocumentHelpers};
use dom::attr::AttrMethods;
use dom::element::{Element, AttributeHandlers, HTMLAnchorElementTypeId};
@@ -43,138 +42,6 @@ impl HTMLAnchorElement {
}
pub trait HTMLAnchorElementMethods {
- fn Href(&self) -> DOMString;
- fn SetHref(&self, _href: DOMString) -> ErrorResult;
- fn Target(&self) -> DOMString;
- fn SetTarget(&self, _target: DOMString) -> ErrorResult;
- fn Download(&self) -> DOMString;
- fn SetDownload(&self, _download: DOMString) -> ErrorResult;
- fn Ping(&self) -> DOMString;
- fn SetPing(&self, _ping: DOMString) -> ErrorResult;
- fn Rel(&self) -> DOMString;
- fn SetRel(&self, _rel: DOMString) -> ErrorResult;
- fn Hreflang(&self) -> DOMString;
- fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult;
- fn Type(&self) -> DOMString;
- fn SetType(&self, _type: DOMString) -> ErrorResult;
- fn Text(&self) -> DOMString;
- fn SetText(&self, _text: DOMString) -> ErrorResult;
- fn Coords(&self) -> DOMString;
- fn SetCoords(&self, _coords: DOMString) -> ErrorResult;
- fn Charset(&self) -> DOMString;
- fn SetCharset(&self, _charset: DOMString) -> ErrorResult;
- fn Name(&self) -> DOMString;
- fn SetName(&self, _name: DOMString) -> ErrorResult;
- fn Rev(&self) -> DOMString;
- fn SetRev(&self, _rev: DOMString) -> ErrorResult;
- fn Shape(&self) -> DOMString;
- fn SetShape(&self, _shape: DOMString) -> ErrorResult;
-}
-
-impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
- fn Href(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetHref(&self, _href: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Target(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetTarget(&self, _target: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Download(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetDownload(&self, _download: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Ping(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetPing(&self, _ping: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Rel(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetRel(&self, _rel: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Hreflang(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Type(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetType(&self, _type: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Text(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetText(&self, _text: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Coords(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetCoords(&self, _coords: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Charset(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetCharset(&self, _charset: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Name(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetName(&self, _name: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Rev(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetRev(&self, _rev: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Shape(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetShape(&self, _shape: DOMString) -> ErrorResult {
- Ok(())
- }
}
trait PrivateHTMLAnchorElementHelpers {