diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-09 21:30:41 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-12 13:32:53 +0100 |
commit | 803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2 (patch) | |
tree | ce2deda718150aeffbd8826a4550b2ada9f34f34 /src/components/script/dom/htmloptionelement.rs | |
parent | 2975cb69e3bb4784647a5b7f6d5d4dac7b8241cf (diff) | |
download | servo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.tar.gz servo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.zip |
Make DOMString represent a non-nullable string.
Diffstat (limited to 'src/components/script/dom/htmloptionelement.rs')
-rw-r--r-- | src/components/script/dom/htmloptionelement.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs index 4f7adb4b845..d5674e9cd47 100644 --- a/src/components/script/dom/htmloptionelement.rs +++ b/src/components/script/dom/htmloptionelement.rs @@ -39,11 +39,11 @@ impl HTMLOptionElement { None } - pub fn Label(&self) -> DOMString { + pub fn Label(&self) -> Option<DOMString> { None } - pub fn SetLabel(&mut self, _label: &DOMString) -> ErrorResult { + pub fn SetLabel(&mut self, _label: &Option<DOMString>) -> ErrorResult { Ok(()) } @@ -63,19 +63,19 @@ impl HTMLOptionElement { Ok(()) } - pub fn Value(&self) -> DOMString { + pub fn Value(&self) -> Option<DOMString> { None } - pub fn SetValue(&mut self, _value: &DOMString) -> ErrorResult { + pub fn SetValue(&mut self, _value: &Option<DOMString>) -> ErrorResult { Ok(()) } - pub fn Text(&self) -> DOMString { + pub fn Text(&self) -> Option<DOMString> { None } - pub fn SetText(&mut self, _text: &DOMString) -> ErrorResult { + pub fn SetText(&mut self, _text: &Option<DOMString>) -> ErrorResult { Ok(()) } |