aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmloutputelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-06-01 15:41:09 +0200
committerMs2ger <ms2ger@gmail.com>2014-06-01 15:41:09 +0200
commita0783aebbf95659ed571dabcbb7df7784828d696 (patch)
tree9adda8f3c3b245d04dc2f47573b4962281926d89 /src/components/script/dom/htmloutputelement.rs
parenteaae994d5761e137ecc847e6b38cbcaf9ff88c19 (diff)
downloadservo-a0783aebbf95659ed571dabcbb7df7784828d696.tar.gz
servo-a0783aebbf95659ed571dabcbb7df7784828d696.zip
Remove not-yet-implemented members from IDL and Rust code.
These stub implementations bring no value, and significantly increased maintenance costs. This commit also synchronizes the IDL with the HTML specification and makes the URLs consistent.
Diffstat (limited to 'src/components/script/dom/htmloutputelement.rs')
-rw-r--r--src/components/script/dom/htmloutputelement.rs70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/components/script/dom/htmloutputelement.rs b/src/components/script/dom/htmloutputelement.rs
index 4e7ce08eaa5..2aa947fbc44 100644
--- a/src/components/script/dom/htmloutputelement.rs
+++ b/src/components/script/dom/htmloutputelement.rs
@@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOutputElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOutputElementDerived;
use dom::bindings::js::{JSRef, Temporary};
-use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLOutputElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
-use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState;
use servo_util::str::DOMString;
@@ -40,80 +38,12 @@ impl HTMLOutputElement {
}
pub trait HTMLOutputElementMethods {
- fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
- fn Name(&self) -> DOMString;
- fn SetName(&self, _name: DOMString) -> ErrorResult;
- fn Type(&self) -> DOMString;
- fn DefaultValue(&self) -> DOMString;
- fn SetDefaultValue(&self, _value: DOMString) -> ErrorResult;
- fn Value(&self) -> DOMString;
- fn SetValue(&self, _value: DOMString) -> ErrorResult;
- fn WillValidate(&self) -> bool;
- fn SetWillValidate(&self, _will_validate: bool);
fn Validity(&self) -> Temporary<ValidityState>;
- fn ValidationMessage(&self) -> DOMString;
- fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult;
- fn CheckValidity(&self) -> bool;
- fn SetCustomValidity(&self, _error: DOMString);
}
impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
- fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
- None
- }
-
- fn Name(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetName(&self, _name: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Type(&self) -> DOMString {
- "".to_owned()
- }
-
- fn DefaultValue(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetDefaultValue(&self, _value: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Value(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetValue(&self, _value: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn WillValidate(&self) -> bool {
- false
- }
-
- fn SetWillValidate(&self, _will_validate: bool) {
- }
-
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
-
- fn ValidationMessage(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn CheckValidity(&self) -> bool {
- true
- }
-
- fn SetCustomValidity(&self, _error: DOMString) {
- }
}