mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
133 lines
2.9 KiB
Rust
133 lines
2.9 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
use dom::bindings::codegen::HTMLAnchorElementBinding;
|
|
use dom::bindings::utils::{DOMString, ErrorResult};
|
|
use dom::document::AbstractDocument;
|
|
use dom::element::HTMLAnchorElementTypeId;
|
|
use dom::htmlelement::HTMLElement;
|
|
use dom::node::{AbstractNode, Node};
|
|
|
|
pub struct HTMLAnchorElement {
|
|
htmlelement: HTMLElement
|
|
}
|
|
|
|
impl HTMLAnchorElement {
|
|
pub fn new_inherited(localName: ~str, document: AbstractDocument) -> HTMLAnchorElement {
|
|
HTMLAnchorElement {
|
|
htmlelement: HTMLElement::new_inherited(HTMLAnchorElementTypeId, localName, document)
|
|
}
|
|
}
|
|
|
|
pub fn new(localName: ~str, document: AbstractDocument) -> AbstractNode {
|
|
let element = HTMLAnchorElement::new_inherited(localName, document);
|
|
Node::reflect_node(@mut element, document, HTMLAnchorElementBinding::Wrap)
|
|
}
|
|
}
|
|
|
|
impl HTMLAnchorElement {
|
|
pub fn Href(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetHref(&mut self, _href: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Target(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetTarget(&self, _target: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Download(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetDownload(&self, _download: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Ping(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetPing(&self, _ping: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Rel(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetRel(&self, _rel: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Hreflang(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Type(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Text(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Coords(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetCoords(&mut self, _coords: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Charset(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetCharset(&mut self, _charset: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Name(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Rev(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetRev(&mut self, _rev: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
|
|
pub fn Shape(&self) -> DOMString {
|
|
~""
|
|
}
|
|
|
|
pub fn SetShape(&mut self, _shape: DOMString) -> ErrorResult {
|
|
Ok(())
|
|
}
|
|
}
|