diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-10 14:11:15 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-12 13:57:18 +0100 |
commit | 08afc6d19d5875763a241e08534ba952e507b137 (patch) | |
tree | a3ca25a011543eb928aa7843cc39931b56063b33 /src/components/script/dom/htmlselectelement.rs | |
parent | 803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2 (diff) | |
download | servo-08afc6d19d5875763a241e08534ba952e507b137.tar.gz servo-08afc6d19d5875763a241e08534ba952e507b137.zip |
Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207.
Diffstat (limited to 'src/components/script/dom/htmlselectelement.rs')
-rw-r--r-- | src/components/script/dom/htmlselectelement.rs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/components/script/dom/htmlselectelement.rs b/src/components/script/dom/htmlselectelement.rs index 1676672816b..608295e903a 100644 --- a/src/components/script/dom/htmlselectelement.rs +++ b/src/components/script/dom/htmlselectelement.rs @@ -56,11 +56,11 @@ impl HTMLSelectElement { Ok(()) } - pub fn Name(&self) -> Option<DOMString> { - None + pub fn Name(&self) -> DOMString { + ~"" } - pub fn SetName(&mut self, _name: &Option<DOMString>) -> ErrorResult { + pub fn SetName(&mut self, _name: &DOMString) -> ErrorResult { Ok(()) } @@ -80,8 +80,8 @@ impl HTMLSelectElement { Ok(()) } - pub fn Type(&self) -> Option<DOMString> { - None + pub fn Type(&self) -> DOMString { + ~"" } pub fn Length(&self) -> u32 { @@ -96,7 +96,7 @@ impl HTMLSelectElement { None } - pub fn NamedItem(&self, _name: &Option<DOMString>) -> Option<AbstractNode<ScriptView>> { + pub fn NamedItem(&self, _name: &DOMString) -> Option<AbstractNode<ScriptView>> { None } @@ -122,11 +122,11 @@ impl HTMLSelectElement { Ok(()) } - pub fn Value(&self) -> Option<DOMString> { - None + pub fn Value(&self) -> DOMString { + ~"" } - pub fn SetValue(&mut self, _value: &Option<DOMString>) { + pub fn SetValue(&mut self, _value: &DOMString) { } pub fn WillValidate(&self) -> bool { @@ -144,11 +144,11 @@ impl HTMLSelectElement { pub fn SetValidity(&mut self, _validity: @mut ValidityState) { } - pub fn ValidationMessage(&self) -> Option<DOMString> { - None + pub fn ValidationMessage(&self) -> DOMString { + ~"" } - pub fn SetValidationMessage(&mut self, _message: &Option<DOMString>) -> ErrorResult { + pub fn SetValidationMessage(&mut self, _message: &DOMString) -> ErrorResult { Ok(()) } @@ -156,6 +156,6 @@ impl HTMLSelectElement { true } - pub fn SetCustomValidity(&mut self, _error: &Option<DOMString>) { + pub fn SetCustomValidity(&mut self, _error: &DOMString) { } } |