aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-11-09 21:30:41 +0100
committerMs2ger <ms2ger@gmail.com>2013-11-12 13:32:53 +0100
commit803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2 (patch)
treece2deda718150aeffbd8826a4550b2ada9f34f34 /src/components/script/dom/htmlformelement.rs
parent2975cb69e3bb4784647a5b7f6d5d4dac7b8241cf (diff)
downloadservo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.tar.gz
servo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.zip
Make DOMString represent a non-nullable string.
Diffstat (limited to 'src/components/script/dom/htmlformelement.rs')
-rw-r--r--src/components/script/dom/htmlformelement.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/components/script/dom/htmlformelement.rs b/src/components/script/dom/htmlformelement.rs
index 54469a9631f..5d81fabd0d0 100644
--- a/src/components/script/dom/htmlformelement.rs
+++ b/src/components/script/dom/htmlformelement.rs
@@ -28,59 +28,59 @@ impl HTMLFormElement {
}
impl HTMLFormElement {
- pub fn AcceptCharset(&self) -> DOMString {
+ pub fn AcceptCharset(&self) -> Option<DOMString> {
None
}
- pub fn SetAcceptCharset(&mut self, _accept_charset: &DOMString) -> ErrorResult {
+ pub fn SetAcceptCharset(&mut self, _accept_charset: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Action(&self) -> DOMString {
+ pub fn Action(&self) -> Option<DOMString> {
None
}
- pub fn SetAction(&mut self, _action: &DOMString) -> ErrorResult {
+ pub fn SetAction(&mut self, _action: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Autocomplete(&self) -> DOMString {
+ pub fn Autocomplete(&self) -> Option<DOMString> {
None
}
- pub fn SetAutocomplete(&mut self, _autocomplete: &DOMString) -> ErrorResult {
+ pub fn SetAutocomplete(&mut self, _autocomplete: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Enctype(&self) -> DOMString {
+ pub fn Enctype(&self) -> Option<DOMString> {
None
}
- pub fn SetEnctype(&mut self, _enctype: &DOMString) -> ErrorResult {
+ pub fn SetEnctype(&mut self, _enctype: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Encoding(&self) -> DOMString {
+ pub fn Encoding(&self) -> Option<DOMString> {
None
}
- pub fn SetEncoding(&mut self, _encoding: &DOMString) -> ErrorResult {
+ pub fn SetEncoding(&mut self, _encoding: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Method(&self) -> DOMString {
+ pub fn Method(&self) -> Option<DOMString> {
None
}
- pub fn SetMethod(&mut self, _method: &DOMString) -> ErrorResult {
+ pub fn SetMethod(&mut self, _method: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Name(&self) -> DOMString {
+ pub fn Name(&self) -> Option<DOMString> {
None
}
- pub fn SetName(&mut self, _name: &DOMString) -> ErrorResult {
+ pub fn SetName(&mut self, _name: &Option<DOMString>) -> ErrorResult {
Ok(())
}
@@ -92,11 +92,11 @@ impl HTMLFormElement {
Ok(())
}
- pub fn Target(&self) -> DOMString {
+ pub fn Target(&self) -> Option<DOMString> {
None
}
- pub fn SetTarget(&mut self, _target: &DOMString) -> ErrorResult {
+ pub fn SetTarget(&mut self, _target: &Option<DOMString>) -> ErrorResult {
Ok(())
}