aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlfieldsetelement.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/htmlfieldsetelement.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/htmlfieldsetelement.rs')
-rw-r--r--src/components/script/dom/htmlfieldsetelement.rs51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/components/script/dom/htmlfieldsetelement.rs b/src/components/script/dom/htmlfieldsetelement.rs
index 73e35b84455..48d86e114d1 100644
--- a/src/components/script/dom/htmlfieldsetelement.rs
+++ b/src/components/script/dom/htmlfieldsetelement.rs
@@ -5,11 +5,9 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFieldSetElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFieldSetElementDerived, NodeCast};
use dom::bindings::js::{JSRef, Temporary};
-use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{Element, HTMLFieldSetElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
-use dom::htmlformelement::HTMLFormElement;
use dom::htmlcollection::{HTMLCollection, CollectionFilter};
use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
@@ -41,45 +39,11 @@ impl HTMLFieldSetElement {
}
pub trait HTMLFieldSetElementMethods {
- fn Disabled(&self) -> bool;
- fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
- fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
- fn Name(&self) -> DOMString;
- fn SetName(&self, _name: DOMString) -> ErrorResult;
- fn Type(&self) -> DOMString;
fn Elements(&self) -> Temporary<HTMLCollection>;
- fn WillValidate(&self) -> bool;
fn Validity(&self) -> Temporary<ValidityState>;
- fn ValidationMessage(&self) -> DOMString;
- fn CheckValidity(&self) -> bool;
- fn SetCustomValidity(&self, _error: DOMString);
}
impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
- fn Disabled(&self) -> bool {
- false
- }
-
- fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
- Ok(())
- }
-
- 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()
- }
-
// http://www.whatwg.org/html/#dom-fieldset-elements
fn Elements(&self) -> Temporary<HTMLCollection> {
struct ElementsFilter;
@@ -97,23 +61,8 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
HTMLCollection::create(&*window, node, filter)
}
- fn WillValidate(&self) -> bool {
- false
- }
-
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
-
- fn ValidationMessage(&self) -> DOMString {
- "".to_owned()
- }
-
- fn CheckValidity(&self) -> bool {
- false
- }
-
- fn SetCustomValidity(&self, _error: DOMString) {
- }
}