Make DOMString an alias for Option<~str>

Fixes #898.
This commit is contained in:
Keegan McAllister 2013-09-18 14:46:42 -07:00
parent 5be084a3b6
commit 68ddc6b4ab
69 changed files with 435 additions and 461 deletions

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::htmlelement::HTMLElement;
use dom::bindings::utils::{DOMString, null_string, ErrorResult};
use dom::bindings::utils::{DOMString, ErrorResult};
pub struct HTMLAnchorElement {
parent: HTMLElement
@ -11,91 +11,91 @@ pub struct HTMLAnchorElement {
impl HTMLAnchorElement {
pub fn Href(&self) -> DOMString {
null_string
None
}
pub fn SetHref(&mut self, _href: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Target(&self) -> DOMString {
null_string
None
}
pub fn SetTarget(&self, _target: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Download(&self) -> DOMString {
null_string
None
}
pub fn SetDownload(&self, _download: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Ping(&self) -> DOMString {
null_string
None
}
pub fn SetPing(&self, _ping: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Rel(&self) -> DOMString {
null_string
None
}
pub fn SetRel(&self, _rel: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Hreflang(&self) -> DOMString {
null_string
None
}
pub fn SetHreflang(&self, _href_lang: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Type(&self) -> DOMString {
null_string
None
}
pub fn SetType(&mut self, _type: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Text(&self) -> DOMString {
null_string
None
}
pub fn SetText(&mut self, _text: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Coords(&self) -> DOMString {
null_string
None
}
pub fn SetCoords(&mut self, _coords: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Charset(&self) -> DOMString {
null_string
None
}
pub fn SetCharset(&mut self, _charset: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Name(&self) -> DOMString {
null_string
None
}
pub fn SetName(&mut self, _name: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Rev(&self) -> DOMString {
null_string
None
}
pub fn SetRev(&mut self, _rev: &DOMString, _rv: &mut ErrorResult) {
}
pub fn Shape(&self) -> DOMString {
null_string
None
}
pub fn SetShape(&mut self, _shape: &DOMString, _rv: &mut ErrorResult) {