diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-06-01 15:41:09 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-06-01 15:41:09 +0200 |
commit | a0783aebbf95659ed571dabcbb7df7784828d696 (patch) | |
tree | 9adda8f3c3b245d04dc2f47573b4962281926d89 /src | |
parent | eaae994d5761e137ecc847e6b38cbcaf9ff88c19 (diff) | |
download | servo-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')
131 files changed, 876 insertions, 5533 deletions
diff --git a/src/components/script/dom/htmlanchorelement.rs b/src/components/script/dom/htmlanchorelement.rs index d28e7289fce..af8ab7050c4 100644 --- a/src/components/script/dom/htmlanchorelement.rs +++ b/src/components/script/dom/htmlanchorelement.rs @@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAnchorElementBinding; use dom::bindings::codegen::InheritTypes::HTMLAnchorElementDerived; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast, NodeCast}; use dom::bindings::js::{JSRef, Temporary, OptionalRootable}; -use dom::bindings::error::ErrorResult; use dom::document::{Document, DocumentHelpers}; use dom::attr::AttrMethods; use dom::element::{Element, AttributeHandlers, HTMLAnchorElementTypeId}; @@ -43,138 +42,6 @@ impl HTMLAnchorElement { } pub trait HTMLAnchorElementMethods { - fn Href(&self) -> DOMString; - fn SetHref(&self, _href: DOMString) -> ErrorResult; - fn Target(&self) -> DOMString; - fn SetTarget(&self, _target: DOMString) -> ErrorResult; - fn Download(&self) -> DOMString; - fn SetDownload(&self, _download: DOMString) -> ErrorResult; - fn Ping(&self) -> DOMString; - fn SetPing(&self, _ping: DOMString) -> ErrorResult; - fn Rel(&self) -> DOMString; - fn SetRel(&self, _rel: DOMString) -> ErrorResult; - fn Hreflang(&self) -> DOMString; - fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Text(&self) -> DOMString; - fn SetText(&self, _text: DOMString) -> ErrorResult; - fn Coords(&self) -> DOMString; - fn SetCoords(&self, _coords: DOMString) -> ErrorResult; - fn Charset(&self) -> DOMString; - fn SetCharset(&self, _charset: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Rev(&self) -> DOMString; - fn SetRev(&self, _rev: DOMString) -> ErrorResult; - fn Shape(&self) -> DOMString; - fn SetShape(&self, _shape: DOMString) -> ErrorResult; -} - -impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> { - fn Href(&self) -> DOMString { - "".to_owned() - } - - fn SetHref(&self, _href: DOMString) -> ErrorResult { - Ok(()) - } - - fn Target(&self) -> DOMString { - "".to_owned() - } - - fn SetTarget(&self, _target: DOMString) -> ErrorResult { - Ok(()) - } - - fn Download(&self) -> DOMString { - "".to_owned() - } - - fn SetDownload(&self, _download: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ping(&self) -> DOMString { - "".to_owned() - } - - fn SetPing(&self, _ping: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rel(&self) -> DOMString { - "".to_owned() - } - - fn SetRel(&self, _rel: DOMString) -> ErrorResult { - Ok(()) - } - - fn Hreflang(&self) -> DOMString { - "".to_owned() - } - - fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Text(&self) -> DOMString { - "".to_owned() - } - - fn SetText(&self, _text: DOMString) -> ErrorResult { - Ok(()) - } - - fn Coords(&self) -> DOMString { - "".to_owned() - } - - fn SetCoords(&self, _coords: DOMString) -> ErrorResult { - Ok(()) - } - - fn Charset(&self) -> DOMString { - "".to_owned() - } - - fn SetCharset(&self, _charset: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rev(&self) -> DOMString { - "".to_owned() - } - - fn SetRev(&self, _rev: DOMString) -> ErrorResult { - Ok(()) - } - - fn Shape(&self) -> DOMString { - "".to_owned() - } - - fn SetShape(&self, _shape: DOMString) -> ErrorResult { - Ok(()) - } } trait PrivateHTMLAnchorElementHelpers { diff --git a/src/components/script/dom/htmlappletelement.rs b/src/components/script/dom/htmlappletelement.rs index 221875677ea..313cc5d0743 100644 --- a/src/components/script/dom/htmlappletelement.rs +++ b/src/components/script/dom/htmlappletelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAppletElementBinding; use dom::bindings::codegen::InheritTypes::HTMLAppletElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLAppletElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,116 +37,4 @@ impl HTMLAppletElement { } pub trait HTMLAppletElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Alt(&self) -> DOMString; - fn SetAlt(&self, _alt: DOMString) -> ErrorResult; - fn Archive(&self) -> DOMString; - fn SetArchive(&self, _archive: DOMString) -> ErrorResult; - fn Code(&self) -> DOMString; - fn SetCode(&self, _code: DOMString) -> ErrorResult; - fn CodeBase(&self) -> DOMString; - fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&self, _height: DOMString) -> ErrorResult; - fn Hspace(&self) -> u32; - fn SetHspace(&self, _hspace: u32) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Object(&self) -> DOMString; - fn SetObject(&self, _object: DOMString) -> ErrorResult; - fn Vspace(&self) -> u32; - fn SetVspace(&self, _vspace: u32) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; -} - -impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Alt(&self) -> DOMString { - "".to_owned() - } - - fn SetAlt(&self, _alt: DOMString) -> ErrorResult { - Ok(()) - } - - fn Archive(&self) -> DOMString { - "".to_owned() - } - - fn SetArchive(&self, _archive: DOMString) -> ErrorResult { - Ok(()) - } - - fn Code(&self) -> DOMString { - "".to_owned() - } - - fn SetCode(&self, _code: DOMString) -> ErrorResult { - Ok(()) - } - - fn CodeBase(&self) -> DOMString { - "".to_owned() - } - - fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn Hspace(&self) -> u32 { - 0 - } - - fn SetHspace(&self, _hspace: u32) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Object(&self) -> DOMString { - "".to_owned() - } - - fn SetObject(&self, _object: DOMString) -> ErrorResult { - Ok(()) - } - - fn Vspace(&self) -> u32 { - 0 - } - - fn SetVspace(&self, _vspace: u32) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlareaelement.rs b/src/components/script/dom/htmlareaelement.rs index 5dca8a823af..1854087f042 100644 --- a/src/components/script/dom/htmlareaelement.rs +++ b/src/components/script/dom/htmlareaelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAreaElementBinding; use dom::bindings::codegen::InheritTypes::HTMLAreaElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLAreaElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,86 +37,4 @@ impl HTMLAreaElement { } pub trait HTMLAreaElementMethods { - fn Alt(&self) -> DOMString; - fn SetAlt(&self, _alt: DOMString) -> ErrorResult; - fn Coords(&self) -> DOMString; - fn SetCoords(&self, _coords: DOMString) -> ErrorResult; - fn Shape(&self) -> DOMString; - fn SetShape(&self, _shape: DOMString) -> ErrorResult; - fn Href(&self) -> DOMString; - fn SetHref(&self, _href: DOMString) -> ErrorResult; - fn Target(&self) -> DOMString; - fn SetTarget(&self, _target: DOMString) -> ErrorResult; - fn Download(&self) -> DOMString; - fn SetDownload(&self, _download: DOMString) -> ErrorResult; - fn Ping(&self) -> DOMString; - fn SetPing(&self, _ping: DOMString) -> ErrorResult; - fn NoHref(&self) -> bool; - fn SetNoHref(&self, _no_href: bool) -> ErrorResult; -} - -impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> { - fn Alt(&self) -> DOMString { - "".to_owned() - } - - fn SetAlt(&self, _alt: DOMString) -> ErrorResult { - Ok(()) - } - - fn Coords(&self) -> DOMString { - "".to_owned() - } - - fn SetCoords(&self, _coords: DOMString) -> ErrorResult { - Ok(()) - } - - fn Shape(&self) -> DOMString { - "".to_owned() - } - - fn SetShape(&self, _shape: DOMString) -> ErrorResult { - Ok(()) - } - - fn Href(&self) -> DOMString { - "".to_owned() - } - - fn SetHref(&self, _href: DOMString) -> ErrorResult { - Ok(()) - } - - fn Target(&self) -> DOMString { - "".to_owned() - } - - fn SetTarget(&self, _target: DOMString) -> ErrorResult { - Ok(()) - } - - fn Download(&self) -> DOMString { - "".to_owned() - } - - fn SetDownload(&self, _download: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ping(&self) -> DOMString { - "".to_owned() - } - - fn SetPing(&self, _ping: DOMString) -> ErrorResult { - Ok(()) - } - - fn NoHref(&self) -> bool { - false - } - - fn SetNoHref(&self, _no_href: bool) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlbaseelement.rs b/src/components/script/dom/htmlbaseelement.rs index 4548349b247..44453b13c47 100644 --- a/src/components/script/dom/htmlbaseelement.rs +++ b/src/components/script/dom/htmlbaseelement.rs @@ -4,7 +4,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLBaseElementBinding; use dom::bindings::codegen::InheritTypes::HTMLBaseElementDerived; -use dom::bindings::error::ErrorResult; use dom::bindings::js::{JSRef, Temporary}; use dom::document::Document; use dom::element::HTMLBaseElementTypeId; @@ -38,26 +37,4 @@ impl HTMLBaseElement { } pub trait HTMLBaseElementMethods { - fn Href(&self) -> DOMString; - fn SetHref(&self, _href: DOMString) -> ErrorResult; - fn Target(&self) -> DOMString; - fn SetTarget(&self, _target: DOMString) -> ErrorResult; -} - -impl<'a> HTMLBaseElementMethods for JSRef<'a, HTMLBaseElement> { - fn Href(&self) -> DOMString { - "".to_owned() - } - - fn SetHref(&self, _href: DOMString) -> ErrorResult { - Ok(()) - } - - fn Target(&self) -> DOMString { - "".to_owned() - } - - fn SetTarget(&self, _target: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlbodyelement.rs b/src/components/script/dom/htmlbodyelement.rs index 9f94f9d134c..a1407c41970 100644 --- a/src/components/script/dom/htmlbodyelement.rs +++ b/src/components/script/dom/htmlbodyelement.rs @@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::EventHandlerBinding::EventHandl use dom::bindings::codegen::BindingDeclarations::HTMLBodyElementBinding; use dom::bindings::codegen::InheritTypes::EventTargetCast; use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementCast}; -use dom::bindings::error::ErrorResult; use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::utils::Reflectable; use dom::document::Document; @@ -43,71 +42,11 @@ impl HTMLBodyElement { } pub trait HTMLBodyElementMethods { - fn Text(&self) -> DOMString; - fn SetText(&mut self, _text: DOMString) -> ErrorResult; - fn Link(&self) -> DOMString; - fn SetLink(&self, _link: DOMString) -> ErrorResult; - fn VLink(&self) -> DOMString; - fn SetVLink(&self, _v_link: DOMString) -> ErrorResult; - fn ALink(&self) -> DOMString; - fn SetALink(&self, _a_link: DOMString) -> ErrorResult; - fn BgColor(&self) -> DOMString; - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult; - fn Background(&self) -> DOMString; - fn SetBackground(&self, _background: DOMString) -> ErrorResult; fn GetOnunload(&self) -> Option<EventHandlerNonNull>; fn SetOnunload(&mut self, listener: Option<EventHandlerNonNull>); } impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> { - fn Text(&self) -> DOMString { - "".to_owned() - } - - fn SetText(&mut self, _text: DOMString) -> ErrorResult { - Ok(()) - } - - fn Link(&self) -> DOMString { - "".to_owned() - } - - fn SetLink(&self, _link: DOMString) -> ErrorResult { - Ok(()) - } - - fn VLink(&self) -> DOMString { - "".to_owned() - } - - fn SetVLink(&self, _v_link: DOMString) -> ErrorResult { - Ok(()) - } - - fn ALink(&self) -> DOMString { - "".to_owned() - } - - fn SetALink(&self, _a_link: DOMString) -> ErrorResult { - Ok(()) - } - - fn BgColor(&self) -> DOMString { - "".to_owned() - } - - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult { - Ok(()) - } - - fn Background(&self) -> DOMString { - "".to_owned() - } - - fn SetBackground(&self, _background: DOMString) -> ErrorResult { - Ok(()) - } - fn GetOnunload(&self) -> Option<EventHandlerNonNull> { let win = window_from_node(self).root(); win.deref().GetOnunload() diff --git a/src/components/script/dom/htmlbrelement.rs b/src/components/script/dom/htmlbrelement.rs index 3ac76fddafc..18b1c3752bb 100644 --- a/src/components/script/dom/htmlbrelement.rs +++ b/src/components/script/dom/htmlbrelement.rs @@ -4,7 +4,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLBRElementBinding; use dom::bindings::codegen::InheritTypes::HTMLBRElementDerived; -use dom::bindings::error::ErrorResult; use dom::bindings::js::{JSRef, Temporary}; use dom::document::Document; use dom::element::HTMLBRElementTypeId; @@ -38,16 +37,4 @@ impl HTMLBRElement { } pub trait HTMLBRElementMethods { - fn Clear(&self) -> DOMString; - fn SetClear(&self, _text: DOMString) -> ErrorResult; -} - -impl<'a> HTMLBRElementMethods for JSRef<'a, HTMLBRElement> { - fn Clear(&self) -> DOMString { - "".to_owned() - } - - fn SetClear(&self, _text: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlbuttonelement.rs b/src/components/script/dom/htmlbuttonelement.rs index 1618d0b5b8f..59999403192 100644 --- a/src/components/script/dom/htmlbuttonelement.rs +++ b/src/components/script/dom/htmlbuttonelement.rs @@ -5,12 +5,10 @@ use dom::bindings::codegen::BindingDeclarations::HTMLButtonElementBinding; use dom::bindings::codegen::InheritTypes::HTMLButtonElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLButtonElementTypeId; 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,145 +38,12 @@ impl HTMLButtonElement { } pub trait HTMLButtonElementMethods { - fn Autofocus(&self) -> bool; - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult; - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>; - fn FormAction(&self) -> DOMString; - fn SetFormAction(&self, _formaction: DOMString) -> ErrorResult; - fn FormEnctype(&self) -> DOMString; - fn SetFormEnctype(&self, _formenctype: DOMString) -> ErrorResult; - fn FormMethod(&self) -> DOMString; - fn SetFormMethod(&self, _formmethod: DOMString) -> ErrorResult; - fn FormNoValidate(&self) -> bool; - fn SetFormNoValidate(&self, _novalidate: bool) -> ErrorResult; - fn FormTarget(&self) -> DOMString; - fn SetFormTarget(&self, _formtarget: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: 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> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> { - fn Autofocus(&self) -> bool { - false - } - - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult { - Ok(()) - } - - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> { - None - } - - fn FormAction(&self) -> DOMString { - "".to_owned() - } - - fn SetFormAction(&self, _formaction: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormEnctype(&self) -> DOMString { - "".to_owned() - } - - fn SetFormEnctype(&self, _formenctype: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormMethod(&self) -> DOMString { - "".to_owned() - } - - fn SetFormMethod(&self, _formmethod: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormNoValidate(&self) -> bool { - false - } - - fn SetFormNoValidate(&self, _novalidate: bool) -> ErrorResult { - Ok(()) - } - - fn FormTarget(&self) -> DOMString { - "".to_owned() - } - - fn SetFormTarget(&self, _formtarget: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: 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) { - } } diff --git a/src/components/script/dom/htmlcanvaselement.rs b/src/components/script/dom/htmlcanvaselement.rs index 8dd7240f764..8522431c7ea 100644 --- a/src/components/script/dom/htmlcanvaselement.rs +++ b/src/components/script/dom/htmlcanvaselement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLCanvasElementBinding; use dom::bindings::codegen::InheritTypes::HTMLCanvasElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::{ErrorResult}; use dom::document::Document; use dom::element::HTMLCanvasElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLCanvasElement { } pub trait HTMLCanvasElementMethods { - fn Width(&self) -> u32; - fn SetWidth(&self, _width: u32) -> ErrorResult; - fn Height(&self) -> u32; - fn SetHeight(&self, _height: u32) -> ErrorResult; -} - -impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> { - fn Width(&self) -> u32 { - 0 - } - - fn SetWidth(&self, _width: u32) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> u32 { - 0 - } - - fn SetHeight(&self, _height: u32) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmldataelement.rs b/src/components/script/dom/htmldataelement.rs index 956cfa48f40..18f23c9bcc1 100644 --- a/src/components/script/dom/htmldataelement.rs +++ b/src/components/script/dom/htmldataelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLDataElementBinding; use dom::bindings::codegen::InheritTypes::HTMLDataElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLDataElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLDataElement { } pub trait HTMLDataElementMethods { - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString) -> ErrorResult; -} - -impl<'a> HTMLDataElementMethods for JSRef<'a, HTMLDataElement> { - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmldirectoryelement.rs b/src/components/script/dom/htmldirectoryelement.rs index fd42c56d95a..f2a960473c7 100644 --- a/src/components/script/dom/htmldirectoryelement.rs +++ b/src/components/script/dom/htmldirectoryelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLDirectoryElementBinding; use dom::bindings::codegen::InheritTypes::HTMLDirectoryElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLDirectoryElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLDirectoryElement { } pub trait HTMLDirectoryElementMethods { - fn Compact(&self) -> bool; - fn SetCompact(&self, _compact: bool) -> ErrorResult; -} - -impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> { - fn Compact(&self) -> bool { - false - } - - fn SetCompact(&self, _compact: bool) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmldivelement.rs b/src/components/script/dom/htmldivelement.rs index 90fcdd82f16..cf2e23e09c4 100644 --- a/src/components/script/dom/htmldivelement.rs +++ b/src/components/script/dom/htmldivelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLDivElementBinding; use dom::bindings::codegen::InheritTypes::HTMLDivElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLDivElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLDivElement { } pub trait HTMLDivElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLDivElementMethods for JSRef<'a, HTMLDivElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmldlistelement.rs b/src/components/script/dom/htmldlistelement.rs index 1fd020cbacd..ce1f6df4425 100644 --- a/src/components/script/dom/htmldlistelement.rs +++ b/src/components/script/dom/htmldlistelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLDListElementBinding; use dom::bindings::codegen::InheritTypes::HTMLDListElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLDListElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,27 +37,4 @@ impl HTMLDListElement { } pub trait HTMLDListElementMethods { - fn Compact(&self) -> bool; - fn SetCompact(&self, _compact: bool) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; } - -impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> { - fn Compact(&self) -> bool { - false - } - - fn SetCompact(&self, _compact: bool) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } -} - diff --git a/src/components/script/dom/htmlelement.rs b/src/components/script/dom/htmlelement.rs index 30c488d97ab..4e245630dd7 100644 --- a/src/components/script/dom/htmlelement.rs +++ b/src/components/script/dom/htmlelement.rs @@ -7,7 +7,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLElementBinding; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFrameSetElementDerived}; use dom::bindings::codegen::InheritTypes::EventTargetCast; use dom::bindings::codegen::InheritTypes::{HTMLElementDerived, HTMLBodyElementDerived}; -use dom::bindings::error::{ErrorResult, Fallible}; use dom::bindings::js::{JSRef, Temporary}; use dom::document::Document; use dom::element::{Element, ElementTypeId, HTMLElementTypeId}; @@ -18,9 +17,6 @@ use dom::window::WindowMethods; use servo_util::namespace; use servo_util::str::DOMString; -use js::jsapi::JSContext; -use js::jsval::{JSVal, NullValue}; - #[deriving(Encodable)] pub struct HTMLElement { pub element: Element @@ -61,158 +57,11 @@ impl<'a> PrivateHTMLElementHelpers for JSRef<'a, HTMLElement> { } pub trait HTMLElementMethods { - fn Title(&self) -> DOMString; - fn SetTitle(&mut self, _title: DOMString); - fn Lang(&self) -> DOMString; - fn SetLang(&mut self, _lang: DOMString); - fn Dir(&self) -> DOMString; - fn SetDir(&mut self, _dir: DOMString) -> ErrorResult; - fn GetItemValue(&self, _cx: *mut JSContext) -> Fallible<JSVal>; - fn SetItemValue(&mut self, _cx: *mut JSContext, _val: JSVal) -> ErrorResult; - fn Hidden(&self) -> bool; - fn SetHidden(&mut self, _hidden: bool) -> ErrorResult; - fn Click(&self); - fn TabIndex(&self) -> i32; - fn SetTabIndex(&mut self, _index: i32) -> ErrorResult; - fn Focus(&self) -> ErrorResult; - fn Blur(&self) -> ErrorResult; - fn AccessKey(&self) -> DOMString; - fn SetAccessKey(&self, _key: DOMString) -> ErrorResult; - fn AccessKeyLabel(&self) -> DOMString; - fn Draggable(&self) -> bool; - fn SetDraggable(&mut self, _draggable: bool) -> ErrorResult; - fn ContentEditable(&self) -> DOMString; - fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult; - fn IsContentEditable(&self) -> bool; - fn Spellcheck(&self) -> bool; - fn SetSpellcheck(&self, _val: bool) -> ErrorResult; - fn GetOffsetParent(&self) -> Option<Temporary<Element>>; - fn OffsetTop(&self) -> i32; - fn OffsetLeft(&self) -> i32; - fn OffsetWidth(&self) -> i32; - fn OffsetHeight(&self) -> i32; fn GetOnload(&self) -> Option<EventHandlerNonNull>; fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>); } impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> { - fn Title(&self) -> DOMString { - "".to_owned() - } - - fn SetTitle(&mut self, _title: DOMString) { - } - - fn Lang(&self) -> DOMString { - "".to_owned() - } - - fn SetLang(&mut self, _lang: DOMString) { - } - - fn Dir(&self) -> DOMString { - "".to_owned() - } - - fn SetDir(&mut self, _dir: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetItemValue(&self, _cx: *mut JSContext) -> Fallible<JSVal> { - Ok(NullValue()) - } - - fn SetItemValue(&mut self, _cx: *mut JSContext, _val: JSVal) -> ErrorResult { - Ok(()) - } - - fn Hidden(&self) -> bool { - false - } - - fn SetHidden(&mut self, _hidden: bool) -> ErrorResult { - Ok(()) - } - - fn Click(&self) { - } - - fn TabIndex(&self) -> i32 { - 0 - } - - fn SetTabIndex(&mut self, _index: i32) -> ErrorResult { - Ok(()) - } - - fn Focus(&self) -> ErrorResult { - Ok(()) - } - - fn Blur(&self) -> ErrorResult { - Ok(()) - } - - fn AccessKey(&self) -> DOMString { - "".to_owned() - } - - fn SetAccessKey(&self, _key: DOMString) -> ErrorResult { - Ok(()) - } - - fn AccessKeyLabel(&self) -> DOMString { - "".to_owned() - } - - fn Draggable(&self) -> bool { - false - } - - fn SetDraggable(&mut self, _draggable: bool) -> ErrorResult { - Ok(()) - } - - fn ContentEditable(&self) -> DOMString { - "".to_owned() - } - - fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult { - Ok(()) - } - - fn IsContentEditable(&self) -> bool { - false - } - - fn Spellcheck(&self) -> bool { - false - } - - fn SetSpellcheck(&self, _val: bool) -> ErrorResult { - Ok(()) - } - - fn GetOffsetParent(&self) -> Option<Temporary<Element>> { - None - } - - fn OffsetTop(&self) -> i32 { - 0 - } - - fn OffsetLeft(&self) -> i32 { - 0 - } - - fn OffsetWidth(&self) -> i32 { - 0 - } - - fn OffsetHeight(&self) -> i32 { - 0 - } - fn GetOnload(&self) -> Option<EventHandlerNonNull> { if self.is_body_or_frameset() { let win = window_from_node(self).root(); diff --git a/src/components/script/dom/htmlembedelement.rs b/src/components/script/dom/htmlembedelement.rs index d272bd9a6fc..320c551aaf8 100644 --- a/src/components/script/dom/htmlembedelement.rs +++ b/src/components/script/dom/htmlembedelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLEmbedElementBinding; use dom::bindings::codegen::InheritTypes::HTMLEmbedElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLEmbedElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,71 +37,4 @@ impl HTMLEmbedElement { } pub trait HTMLEmbedElementMethods { - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&self, _height: DOMString) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _type: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _type: DOMString) -> ErrorResult; - fn GetSVGDocument(&self) -> Option<Temporary<Document>>; -} - -impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> { - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetSVGDocument(&self) -> Option<Temporary<Document>> { - None - } } 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) { - } } diff --git a/src/components/script/dom/htmlfontelement.rs b/src/components/script/dom/htmlfontelement.rs index 1419c7dd081..6429be7d853 100644 --- a/src/components/script/dom/htmlfontelement.rs +++ b/src/components/script/dom/htmlfontelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLFontElementBinding; use dom::bindings::codegen::InheritTypes::HTMLFontElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLFontElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,36 +37,4 @@ impl HTMLFontElement { } pub trait HTMLFontElementMethods { - fn Color(&self) -> DOMString; - fn SetColor(&self, _color: DOMString) -> ErrorResult; - fn Face(&self) -> DOMString; - fn SetFace(&self, _face: DOMString) -> ErrorResult; - fn Size(&self) -> DOMString; - fn SetSize(&self, _size: DOMString) -> ErrorResult; -} - -impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> { - fn Color(&self) -> DOMString { - "".to_owned() - } - - fn SetColor(&self, _color: DOMString) -> ErrorResult { - Ok(()) - } - - fn Face(&self) -> DOMString { - "".to_owned() - } - - fn SetFace(&self, _face: DOMString) -> ErrorResult { - Ok(()) - } - - fn Size(&self) -> DOMString { - "".to_owned() - } - - fn SetSize(&self, _size: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlformelement.rs b/src/components/script/dom/htmlformelement.rs index 2ba82fe7ce4..3e8056e0d40 100644 --- a/src/components/script/dom/htmlformelement.rs +++ b/src/components/script/dom/htmlformelement.rs @@ -5,13 +5,11 @@ use dom::bindings::codegen::BindingDeclarations::HTMLFormElementBinding; use dom::bindings::codegen::InheritTypes::HTMLFormElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; -use dom::element::{Element, HTMLFormElementTypeId}; +use dom::element::HTMLFormElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; -use dom::htmlcollection::{HTMLCollection, Static}; use dom::htmlelement::HTMLElement; -use dom::node::{Node, ElementNodeTypeId, window_from_node}; +use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; #[deriving(Encodable)] @@ -39,127 +37,4 @@ impl HTMLFormElement { } pub trait HTMLFormElementMethods { - fn AcceptCharset(&self) -> DOMString; - fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult; - fn Action(&self) -> DOMString; - fn SetAction(&self, _action: DOMString) -> ErrorResult; - fn Autocomplete(&self) -> DOMString; - fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult; - fn Enctype(&self) -> DOMString; - fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult; - fn Encoding(&self) -> DOMString; - fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult; - fn Method(&self) -> DOMString; - fn SetMethod(&self, _method: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn NoValidate(&self) -> bool; - fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult; - fn Target(&self) -> DOMString; - fn SetTarget(&self, _target: DOMString) -> ErrorResult; - fn Elements(&self) -> Temporary<HTMLCollection>; - fn Length(&self) -> i32; - fn Submit(&self) -> ErrorResult; - fn Reset(&self); - fn CheckValidity(&self) -> bool; - fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Temporary<Element>; -} - -impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> { - fn AcceptCharset(&self) -> DOMString { - "".to_owned() - } - - fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult { - Ok(()) - } - - fn Action(&self) -> DOMString { - "".to_owned() - } - - fn SetAction(&self, _action: DOMString) -> ErrorResult { - Ok(()) - } - - fn Autocomplete(&self) -> DOMString { - "".to_owned() - } - - fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult { - Ok(()) - } - - fn Enctype(&self) -> DOMString { - "".to_owned() - } - - fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult { - Ok(()) - } - - fn Encoding(&self) -> DOMString { - "".to_owned() - } - - fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult { - Ok(()) - } - - fn Method(&self) -> DOMString { - "".to_owned() - } - - fn SetMethod(&self, _method: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn NoValidate(&self) -> bool { - false - } - - fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult { - Ok(()) - } - - fn Target(&self) -> DOMString { - "".to_owned() - } - - fn SetTarget(&self, _target: DOMString) -> ErrorResult { - Ok(()) - } - - fn Elements(&self) -> Temporary<HTMLCollection> { - // FIXME: https://github.com/mozilla/servo/issues/1844 - let window = window_from_node(self).root(); - HTMLCollection::new(&*window, Static(vec!())) - } - - fn Length(&self) -> i32 { - 0 - } - - fn Submit(&self) -> ErrorResult { - Ok(()) - } - - fn Reset(&self) { - } - - fn CheckValidity(&self) -> bool { - false - } - - fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Temporary<Element> { - fail!("Not implemented.") - } } diff --git a/src/components/script/dom/htmlframeelement.rs b/src/components/script/dom/htmlframeelement.rs index 320f0e66949..428d5bbb297 100644 --- a/src/components/script/dom/htmlframeelement.rs +++ b/src/components/script/dom/htmlframeelement.rs @@ -5,13 +5,11 @@ use dom::bindings::codegen::BindingDeclarations::HTMLFrameElementBinding; use dom::bindings::codegen::InheritTypes::HTMLFrameElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLFrameElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::htmlelement::HTMLElement; use dom::node::{Node, ElementNodeTypeId}; -use dom::window::Window; use servo_util::str::DOMString; #[deriving(Encodable)] @@ -39,96 +37,4 @@ impl HTMLFrameElement { } pub trait HTMLFrameElementMethods { - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Scrolling(&self) -> DOMString; - fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult; - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn FrameBorder(&self) -> DOMString; - fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult; - fn LongDesc(&self) -> DOMString; - fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult; - fn NoResize(&self) -> bool; - fn SetNoResize(&self, _no_resize: bool) -> ErrorResult; - fn GetContentDocument(&self) -> Option<Temporary<Document>>; - fn GetContentWindow(&self) -> Option<Temporary<Window>>; - fn MarginHeight(&self) -> DOMString; - fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult; - fn MarginWidth(&self) -> DOMString; - fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult; -} - -impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> { - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scrolling(&self) -> DOMString { - "".to_owned() - } - - fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult { - Ok(()) - } - - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn FrameBorder(&self) -> DOMString { - "".to_owned() - } - - fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult { - Ok(()) - } - - fn LongDesc(&self) -> DOMString { - "".to_owned() - } - - fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult { - Ok(()) - } - - fn NoResize(&self) -> bool { - false - } - - fn SetNoResize(&self, _no_resize: bool) -> ErrorResult { - Ok(()) - } - - fn GetContentDocument(&self) -> Option<Temporary<Document>> { - None - } - - fn GetContentWindow(&self) -> Option<Temporary<Window>> { - None - } - - fn MarginHeight(&self) -> DOMString { - "".to_owned() - } - - fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn MarginWidth(&self) -> DOMString { - "".to_owned() - } - - fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlframesetelement.rs b/src/components/script/dom/htmlframesetelement.rs index 6a4551370d9..8af52c21cbb 100644 --- a/src/components/script/dom/htmlframesetelement.rs +++ b/src/components/script/dom/htmlframesetelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLFrameSetElementBinding; use dom::bindings::codegen::InheritTypes::HTMLFrameSetElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLFrameSetElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLFrameSetElement { } pub trait HTMLFrameSetElementMethods { - fn Cols(&self) -> DOMString; - fn SetCols(&self, _cols: DOMString) -> ErrorResult; - fn Rows(&self) -> DOMString; - fn SetRows(&self, _rows: DOMString) -> ErrorResult; -} - -impl<'a> HTMLFrameSetElementMethods for JSRef<'a, HTMLFrameSetElement> { - fn Cols(&self) -> DOMString { - "".to_owned() - } - - fn SetCols(&self, _cols: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rows(&self) -> DOMString { - "".to_owned() - } - - fn SetRows(&self, _rows: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlheadingelement.rs b/src/components/script/dom/htmlheadingelement.rs index 95d67b7317c..59de8bd2b0a 100644 --- a/src/components/script/dom/htmlheadingelement.rs +++ b/src/components/script/dom/htmlheadingelement.rs @@ -49,15 +49,4 @@ impl HTMLHeadingElement { } pub trait HTMLHeadingElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString); -} - -impl<'a> HTMLHeadingElementMethods for JSRef<'a, HTMLHeadingElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) { - } } diff --git a/src/components/script/dom/htmlhrelement.rs b/src/components/script/dom/htmlhrelement.rs index 89d45c78ae7..b3a8e1e7721 100644 --- a/src/components/script/dom/htmlhrelement.rs +++ b/src/components/script/dom/htmlhrelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLHRElementBinding; use dom::bindings::codegen::InheritTypes::HTMLHRElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLHRElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,56 +37,4 @@ impl HTMLHRElement { } pub trait HTMLHRElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Color(&self) -> DOMString; - fn SetColor(&self, _color: DOMString) -> ErrorResult; - fn NoShade(&self) -> bool; - fn SetNoShade(&self, _no_shade: bool) -> ErrorResult; - fn Size(&self) -> DOMString; - fn SetSize(&self, _size: DOMString) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; -} - -impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Color(&self) -> DOMString { - "".to_owned() - } - - fn SetColor(&self, _color: DOMString) -> ErrorResult { - Ok(()) - } - - fn NoShade(&self) -> bool { - false - } - - fn SetNoShade(&self, _no_shade: bool) -> ErrorResult { - Ok(()) - } - - fn Size(&self) -> DOMString { - "".to_owned() - } - - fn SetSize(&self, _size: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlhtmlelement.rs b/src/components/script/dom/htmlhtmlelement.rs index 114b637f653..0a325aed1a1 100644 --- a/src/components/script/dom/htmlhtmlelement.rs +++ b/src/components/script/dom/htmlhtmlelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLHtmlElementBinding; use dom::bindings::codegen::InheritTypes::HTMLHtmlElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLHtmlElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLHtmlElement { } pub trait HTMLHtmlElementMethods { - fn Version(&self) -> DOMString; - fn SetVersion(&self, _version: DOMString) -> ErrorResult; -} - -impl<'a> HTMLHtmlElementMethods for JSRef<'a, HTMLHtmlElement> { - fn Version(&self) -> DOMString { - "".to_owned() - } - - fn SetVersion(&self, _version: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 6d357c7c09d..3dc28fb6c97 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -4,7 +4,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLIFrameElementBinding; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLIFrameElementDerived, HTMLElementCast}; -use dom::bindings::error::ErrorResult; use dom::bindings::js::{JSRef, Temporary, OptionalRootable}; use dom::document::Document; use dom::element::{HTMLIFrameElementTypeId, Element}; @@ -90,62 +89,12 @@ impl HTMLIFrameElement { } pub trait HTMLIFrameElementMethods { - fn Src(&self) -> DOMString; - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult; - fn Srcdoc(&self) -> DOMString; - fn SetSrcdoc(&mut self, _srcdoc: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&mut self, _name: DOMString) -> ErrorResult; fn Sandbox(&self) -> DOMString; fn SetSandbox(&mut self, sandbox: DOMString); - fn AllowFullscreen(&self) -> bool; - fn SetAllowFullscreen(&mut self, _allow: bool) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&mut self, _height: DOMString) -> ErrorResult; - fn GetContentDocument(&self) -> Option<Temporary<Document>>; fn GetContentWindow(&self) -> Option<Temporary<Window>>; - fn Align(&self) -> DOMString; - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult; - fn Scrolling(&self) -> DOMString; - fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult; - fn FrameBorder(&self) -> DOMString; - fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult; - fn LongDesc(&self) -> DOMString; - fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult; - fn MarginHeight(&self) -> DOMString; - fn SetMarginHeight(&mut self, _marginheight: DOMString) -> ErrorResult; - fn MarginWidth(&self) -> DOMString; - fn SetMarginWidth(&mut self, _marginwidth: DOMString) -> ErrorResult; - fn GetSVGDocument(&self) -> Option<Temporary<Document>>; } impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> { - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&mut self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Srcdoc(&self) -> DOMString { - "".to_owned() - } - - fn SetSrcdoc(&mut self, _srcdoc: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&mut self, _name: DOMString) -> ErrorResult { - Ok(()) - } - fn Sandbox(&self) -> DOMString { let element: &JSRef<Element> = ElementCast::from_ref(self); element.get_string_attribute("sandbox") @@ -156,34 +105,6 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> { element.set_string_attribute("sandbox", sandbox); } - fn AllowFullscreen(&self) -> bool { - false - } - - fn SetAllowFullscreen(&mut self, _allow: bool) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&mut self, _width: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&mut self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetContentDocument(&self) -> Option<Temporary<Document>> { - None - } - fn GetContentWindow(&self) -> Option<Temporary<Window>> { self.size.and_then(|size| { let window = window_from_node(self).root(); @@ -198,58 +119,6 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> { }) }) } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&mut self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scrolling(&self) -> DOMString { - "".to_owned() - } - - fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult { - Ok(()) - } - - fn FrameBorder(&self) -> DOMString { - "".to_owned() - } - - fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult { - Ok(()) - } - - fn LongDesc(&self) -> DOMString { - "".to_owned() - } - - fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult { - Ok(()) - } - - fn MarginHeight(&self) -> DOMString { - "".to_owned() - } - - fn SetMarginHeight(&mut self, _marginheight: DOMString) -> ErrorResult { - Ok(()) - } - - fn MarginWidth(&self) -> DOMString { - "".to_owned() - } - - fn SetMarginWidth(&mut self, _marginwidth: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetSVGDocument(&self) -> Option<Temporary<Document>> { - None - } } impl<'a> VirtualMethods for JSRef<'a, HTMLIFrameElement> { diff --git a/src/components/script/dom/htmlimageelement.rs b/src/components/script/dom/htmlimageelement.rs index 35a38aa3057..eeebdb497d3 100644 --- a/src/components/script/dom/htmlimageelement.rs +++ b/src/components/script/dom/htmlimageelement.rs @@ -4,7 +4,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLImageElementBinding; use dom::bindings::codegen::InheritTypes::{NodeCast, ElementCast, HTMLElementCast, HTMLImageElementDerived}; -use dom::bindings::error::ErrorResult; use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::trace::Untraceable; use dom::document::Document; @@ -93,8 +92,6 @@ pub trait HTMLImageElementMethods { fn SetAlt(&mut self, alt: DOMString); fn Src(&self) -> DOMString; fn SetSrc(&mut self, src: DOMString); - fn CrossOrigin(&self) -> DOMString; - fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult; fn UseMap(&self) -> DOMString; fn SetUseMap(&mut self, use_map: DOMString); fn IsMap(&self) -> bool; @@ -103,9 +100,6 @@ pub trait HTMLImageElementMethods { fn SetWidth(&mut self, width: u32); fn Height(&self) -> u32; fn SetHeight(&mut self, height: u32); - fn NaturalWidth(&self) -> u32; - fn NaturalHeight(&self) -> u32; - fn Complete(&self) -> bool; fn Name(&self) -> DOMString; fn SetName(&mut self, name: DOMString); fn Align(&self) -> DOMString; @@ -141,14 +135,6 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> { element.set_url_attribute("src", src) } - fn CrossOrigin(&self) -> DOMString { - "".to_owned() - } - - fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult { - Ok(()) - } - fn UseMap(&self) -> DOMString { let element: &JSRef<Element> = ElementCast::from_ref(self); element.get_string_attribute("useMap") @@ -191,18 +177,6 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> { elem.set_uint_attribute("height", height) } - fn NaturalWidth(&self) -> u32 { - 0 - } - - fn NaturalHeight(&self) -> u32 { - 0 - } - - fn Complete(&self) -> bool { - false - } - fn Name(&self) -> DOMString { let element: &JSRef<Element> = ElementCast::from_ref(self); element.get_string_attribute("name") diff --git a/src/components/script/dom/htmlinputelement.rs b/src/components/script/dom/htmlinputelement.rs index 0af4293cfc9..fbfdc6bb0d8 100644 --- a/src/components/script/dom/htmlinputelement.rs +++ b/src/components/script/dom/htmlinputelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLInputElementBinding; use dom::bindings::codegen::InheritTypes::HTMLInputElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::{ErrorResult, Fallible}; use dom::document::Document; use dom::element::HTMLInputElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,390 +37,4 @@ impl HTMLInputElement { } pub trait HTMLInputElementMethods { - fn Accept(&self) -> DOMString; - fn SetAccept(&self, _accept: DOMString) -> ErrorResult; - fn Alt(&self) -> DOMString; - fn SetAlt(&self, _alt: DOMString) -> ErrorResult; - fn Autocomplete(&self) -> DOMString; - fn SetAutocomplete(&self, _autocomple: DOMString) -> ErrorResult; - fn Autofocus(&self) -> bool; - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult; - fn DefaultChecked(&self) -> bool; - fn SetDefaultChecked(&self, _default_checked: bool) -> ErrorResult; - fn Checked(&self) -> bool; - fn SetChecked(&self, _checked: bool); - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn FormAction(&self) -> DOMString; - fn SetFormAction(&self, _form_action: DOMString) -> ErrorResult; - fn FormEnctype(&self) -> DOMString; - fn SetFormEnctype(&self, _form_enctype: DOMString) -> ErrorResult; - fn FormMethod(&self) -> DOMString; - fn SetFormMethod(&self, _form_method: DOMString) -> ErrorResult; - fn FormNoValidate(&self) -> bool; - fn SetFormNoValidate(&self, _form_no_validate: bool) -> ErrorResult; - fn FormTarget(&self) -> DOMString; - fn SetFormTarget(&self, _form_target: DOMString) -> ErrorResult; - fn Height(&self) -> u32; - fn SetHeight(&self, _height: u32) -> ErrorResult; - fn Indeterminate(&self) -> bool; - fn SetIndeterminate(&self, _indeterminate: bool); - fn InputMode(&self) -> DOMString; - fn SetInputMode(&self, _input_mode: DOMString) -> ErrorResult; - fn Max(&self) -> DOMString; - fn SetMax(&self, _max: DOMString) -> ErrorResult; - fn MaxLength(&self) -> i32; - fn SetMaxLength(&self, _max_length: i32) -> ErrorResult; - fn Min(&self) -> DOMString; - fn SetMin(&self, _min: DOMString) -> ErrorResult; - fn Multiple(&self) -> bool; - fn SetMultiple(&self, _multiple: bool) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Pattern(&self) -> DOMString; - fn SetPattern(&self, _pattern: DOMString) -> ErrorResult; - fn Placeholder(&self) -> DOMString; - fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult; - fn ReadOnly(&self) -> bool; - fn SetReadOnly(&self, _read_only: bool) -> ErrorResult; - fn Required(&self) -> bool; - fn SetRequired(&self, _required: bool) -> ErrorResult; - fn Size(&self) -> u32; - fn SetSize(&self, _size: u32) -> ErrorResult; - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn Step(&self) -> DOMString; - fn SetStep(&self, _step: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn DefaultValue(&self) -> DOMString; - fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult; - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString) -> ErrorResult; - fn Width(&self) -> u32; - fn SetWidth(&self, _width: u32); - fn WillValidate(&self) -> bool; - fn SetWillValidate(&self, _will_validate: bool); - fn GetValidationMessage(&self) -> Fallible<DOMString>; - fn CheckValidity(&self) -> bool; - fn SetCustomValidity(&self, _error: DOMString); - fn Select(&self); - fn GetSelectionStart(&self) -> Fallible<i32>; - fn SetSelectionStart(&self, _selection_start: i32) -> ErrorResult; - fn GetSelectionEnd(&self) -> Fallible<i32>; - fn SetSelectionEnd(&self, _selection_end: i32) -> ErrorResult; - fn GetSelectionDirection(&self) -> Fallible<DOMString>; - fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn UseMap(&self) -> DOMString; - fn SetUseMap(&self, _align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> { - fn Accept(&self) -> DOMString { - "".to_owned() - } - - fn SetAccept(&self, _accept: DOMString) -> ErrorResult { - Ok(()) - } - - fn Alt(&self) -> DOMString { - "".to_owned() - } - - fn SetAlt(&self, _alt: DOMString) -> ErrorResult { - Ok(()) - } - - fn Autocomplete(&self) -> DOMString { - "".to_owned() - } - - fn SetAutocomplete(&self, _autocomple: DOMString) -> ErrorResult { - Ok(()) - } - - fn Autofocus(&self) -> bool { - false - } - - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult { - Ok(()) - } - - fn DefaultChecked(&self) -> bool { - false - } - - fn SetDefaultChecked(&self, _default_checked: bool) -> ErrorResult { - Ok(()) - } - - fn Checked(&self) -> bool { - false - } - - fn SetChecked(&self, _checked: bool) { - } - - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn FormAction(&self) -> DOMString { - "".to_owned() - } - - fn SetFormAction(&self, _form_action: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormEnctype(&self) -> DOMString { - "".to_owned() - } - - fn SetFormEnctype(&self, _form_enctype: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormMethod(&self) -> DOMString { - "".to_owned() - } - - fn SetFormMethod(&self, _form_method: DOMString) -> ErrorResult { - Ok(()) - } - - fn FormNoValidate(&self) -> bool { - false - } - - fn SetFormNoValidate(&self, _form_no_validate: bool) -> ErrorResult { - Ok(()) - } - - fn FormTarget(&self) -> DOMString { - "".to_owned() - } - - fn SetFormTarget(&self, _form_target: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> u32 { - 0 - } - - fn SetHeight(&self, _height: u32) -> ErrorResult { - Ok(()) - } - - fn Indeterminate(&self) -> bool { - false - } - - fn SetIndeterminate(&self, _indeterminate: bool) { - } - - fn InputMode(&self) -> DOMString { - "".to_owned() - } - - fn SetInputMode(&self, _input_mode: DOMString) -> ErrorResult { - Ok(()) - } - - fn Max(&self) -> DOMString { - "".to_owned() - } - - fn SetMax(&self, _max: DOMString) -> ErrorResult { - Ok(()) - } - - fn MaxLength(&self) -> i32 { - 0 - } - - fn SetMaxLength(&self, _max_length: i32) -> ErrorResult { - Ok(()) - } - - fn Min(&self) -> DOMString { - "".to_owned() - } - - fn SetMin(&self, _min: DOMString) -> ErrorResult { - Ok(()) - } - - fn Multiple(&self) -> bool { - false - } - - fn SetMultiple(&self, _multiple: bool) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Pattern(&self) -> DOMString { - "".to_owned() - } - - fn SetPattern(&self, _pattern: DOMString) -> ErrorResult { - Ok(()) - } - - fn Placeholder(&self) -> DOMString { - "".to_owned() - } - - fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult { - Ok(()) - } - - fn ReadOnly(&self) -> bool { - false - } - - fn SetReadOnly(&self, _read_only: bool) -> ErrorResult { - Ok(()) - } - - fn Required(&self) -> bool { - false - } - - fn SetRequired(&self, _required: bool) -> ErrorResult { - Ok(()) - } - - fn Size(&self) -> u32 { - 0 - } - - fn SetSize(&self, _size: u32) -> ErrorResult { - Ok(()) - } - - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Step(&self) -> DOMString { - "".to_owned() - } - - fn SetStep(&self, _step: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn DefaultValue(&self) -> DOMString { - "".to_owned() - } - - fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult { - Ok(()) - } - - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> u32 { - 0 - } - - fn SetWidth(&self, _width: u32) { - } - - fn WillValidate(&self) -> bool { - false - } - - fn SetWillValidate(&self, _will_validate: bool) { - } - - fn GetValidationMessage(&self) -> Fallible<DOMString> { - Ok("".to_owned()) - } - - fn CheckValidity(&self) -> bool { - false - } - - fn SetCustomValidity(&self, _error: DOMString) { - } - - fn Select(&self) { - } - - fn GetSelectionStart(&self) -> Fallible<i32> { - Ok(0) - } - - fn SetSelectionStart(&self, _selection_start: i32) -> ErrorResult { - Ok(()) - } - - fn GetSelectionEnd(&self) -> Fallible<i32> { - Ok(0) - } - - fn SetSelectionEnd(&self, _selection_end: i32) -> ErrorResult { - Ok(()) - } - - fn GetSelectionDirection(&self) -> Fallible<DOMString> { - Ok("".to_owned()) - } - - fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn UseMap(&self) -> DOMString { - "".to_owned() - } - - fn SetUseMap(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmllabelelement.rs b/src/components/script/dom/htmllabelelement.rs index 69aa07ff631..3623f68227d 100644 --- a/src/components/script/dom/htmllabelelement.rs +++ b/src/components/script/dom/htmllabelelement.rs @@ -37,15 +37,4 @@ impl HTMLLabelElement { } pub trait HTMLLabelElementMethods { - fn HtmlFor(&self) -> DOMString; - fn SetHtmlFor(&self, _html_for: DOMString); -} - -impl<'a> HTMLLabelElementMethods for JSRef<'a, HTMLLabelElement> { - fn HtmlFor(&self) -> DOMString { - "".to_owned() - } - - fn SetHtmlFor(&self, _html_for: DOMString) { - } } diff --git a/src/components/script/dom/htmllegendelement.rs b/src/components/script/dom/htmllegendelement.rs index 85bbb4deae7..ef3a3aefc7b 100644 --- a/src/components/script/dom/htmllegendelement.rs +++ b/src/components/script/dom/htmllegendelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLLegendElementBinding; use dom::bindings::codegen::InheritTypes::HTMLLegendElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLLegendElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLLegendElement { } pub trait HTMLLegendElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLLegendElementMethods for JSRef<'a, HTMLLegendElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmllielement.rs b/src/components/script/dom/htmllielement.rs index ab2665b76ee..c7740b08074 100644 --- a/src/components/script/dom/htmllielement.rs +++ b/src/components/script/dom/htmllielement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLLIElementBinding; use dom::bindings::codegen::InheritTypes::HTMLLIElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLLIElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLLIElement { } pub trait HTMLLIElementMethods { - fn Value(&self) -> i32; - fn SetValue(&self, _value: i32) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; -} - -impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> { - fn Value(&self) -> i32 { - 0 - } - - fn SetValue(&self, _value: i32) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmllinkelement.rs b/src/components/script/dom/htmllinkelement.rs index 3d4756a66b4..67b69c698d2 100644 --- a/src/components/script/dom/htmllinkelement.rs +++ b/src/components/script/dom/htmllinkelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLLinkElementBinding; use dom::bindings::codegen::InheritTypes::HTMLLinkElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLLinkElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,105 +37,4 @@ impl HTMLLinkElement { } pub trait HTMLLinkElementMethods { - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disable: bool); - fn Href(&self) -> DOMString; - fn SetHref(&self, _href: DOMString) -> ErrorResult; - fn CrossOrigin(&self) -> DOMString; - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult; - fn Rel(&self) -> DOMString; - fn SetRel(&self, _rel: DOMString) -> ErrorResult; - fn Media(&self) -> DOMString; - fn SetMedia(&self, _media: DOMString) -> ErrorResult; - fn Hreflang(&self) -> DOMString; - fn SetHreflang(&self, _href: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Charset(&self) -> DOMString; - fn SetCharset(&self, _charset: DOMString) -> ErrorResult; - fn Rev(&self) -> DOMString; - fn SetRev(&self, _rev: DOMString) -> ErrorResult; - fn Target(&self) -> DOMString; - fn SetTarget(&self, _target: DOMString) -> ErrorResult; -} - -impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> { - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disable: bool) { - } - - fn Href(&self) -> DOMString { - "".to_owned() - } - - fn SetHref(&self, _href: DOMString) -> ErrorResult { - Ok(()) - } - - fn CrossOrigin(&self) -> DOMString { - "".to_owned() - } - - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rel(&self) -> DOMString { - "".to_owned() - } - - fn SetRel(&self, _rel: DOMString) -> ErrorResult { - Ok(()) - } - - fn Media(&self) -> DOMString { - "".to_owned() - } - - fn SetMedia(&self, _media: DOMString) -> ErrorResult { - Ok(()) - } - - fn Hreflang(&self) -> DOMString { - "".to_owned() - } - - fn SetHreflang(&self, _href: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Charset(&self) -> DOMString { - "".to_owned() - } - - fn SetCharset(&self, _charset: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rev(&self) -> DOMString { - "".to_owned() - } - - fn SetRev(&self, _rev: DOMString) -> ErrorResult { - Ok(()) - } - - fn Target(&self) -> DOMString { - "".to_owned() - } - - fn SetTarget(&self, _target: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlmapelement.rs b/src/components/script/dom/htmlmapelement.rs index b7eebaf9106..3036ea86797 100644 --- a/src/components/script/dom/htmlmapelement.rs +++ b/src/components/script/dom/htmlmapelement.rs @@ -5,13 +5,11 @@ use dom::bindings::codegen::BindingDeclarations::HTMLMapElementBinding; use dom::bindings::codegen::InheritTypes::HTMLMapElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLMapElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; -use dom::htmlcollection::{HTMLCollection, Static}; use dom::htmlelement::HTMLElement; -use dom::node::{Node, ElementNodeTypeId, window_from_node}; +use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; #[deriving(Encodable)] @@ -39,24 +37,4 @@ impl HTMLMapElement { } pub trait HTMLMapElementMethods { - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Areas(&self) -> Temporary<HTMLCollection>; } - -impl<'a> HTMLMapElementMethods for JSRef<'a, HTMLMapElement> { - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Areas(&self) -> Temporary<HTMLCollection> { - // FIXME: https://github.com/mozilla/servo/issues/1845 - let window = window_from_node(self).root(); - HTMLCollection::new(&*window, Static(vec!())) - } -} - diff --git a/src/components/script/dom/htmlmediaelement.rs b/src/components/script/dom/htmlmediaelement.rs index 6b939a1b001..ca9f7d9d0e9 100644 --- a/src/components/script/dom/htmlmediaelement.rs +++ b/src/components/script/dom/htmlmediaelement.rs @@ -4,7 +4,6 @@ use dom::bindings::js::{JSRef}; use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{ElementTypeId, HTMLAudioElementTypeId, HTMLVideoElementTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -36,174 +35,4 @@ impl HTMLMediaElement { } pub trait HTMLMediaElementMethods { - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn CurrentSrc(&self) -> DOMString; - fn CrossOrigin(&self) -> DOMString; - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult; - fn Preload(&self) -> DOMString; - fn SetPreload(&self, _preload: DOMString) -> ErrorResult; - fn Load(&self); - fn CanPlayType(&self, _type: DOMString) -> DOMString; - fn ReadyState(&self) -> u16; - fn Seeking(&self) -> bool; - fn CurrentTime(&self) -> f64; - fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult; - fn GetDuration(&self) -> f64; - fn Paused(&self) -> bool; - fn DefaultPlaybackRate(&self) -> f64; - fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult; - fn PlaybackRate(&self) -> f64; - fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult; - fn Ended(&self) -> bool; - fn Autoplay(&self) -> bool; - fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult; - fn Loop(&self) -> bool; - fn SetLoop(&self, _loop: bool) -> ErrorResult; - fn Play(&self) -> ErrorResult; - fn Pause(&self) -> ErrorResult; - fn Controls(&self) -> bool; - fn SetControls(&self, _controls: bool) -> ErrorResult; - fn Volume(&self) -> f64; - fn SetVolume(&self, _volume: f64) -> ErrorResult; - fn Muted(&self) -> bool; - fn SetMuted(&self, _muted: bool); - fn DefaultMuted(&self) -> bool; - fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult; -} - -impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> { - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn CurrentSrc(&self) -> DOMString { - "".to_owned() - } - - fn CrossOrigin(&self) -> DOMString { - "".to_owned() - } - - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult { - Ok(()) - } - - fn Preload(&self) -> DOMString { - "".to_owned() - } - - fn SetPreload(&self, _preload: DOMString) -> ErrorResult { - Ok(()) - } - - fn Load(&self) { - } - - fn CanPlayType(&self, _type: DOMString) -> DOMString { - "".to_owned() - } - - fn ReadyState(&self) -> u16 { - 0 - } - - fn Seeking(&self) -> bool { - false - } - - fn CurrentTime(&self) -> f64 { - 0f64 - } - - fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult { - Ok(()) - } - - fn GetDuration(&self) -> f64 { - 0f64 - } - - fn Paused(&self) -> bool { - false - } - - fn DefaultPlaybackRate(&self) -> f64 { - 0f64 - } - - fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult { - Ok(()) - } - - fn PlaybackRate(&self) -> f64 { - 0f64 - } - - fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult { - Ok(()) - } - - fn Ended(&self) -> bool { - false - } - - fn Autoplay(&self) -> bool { - false - } - - fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult { - Ok(()) - } - - fn Loop(&self) -> bool { - false - } - - fn SetLoop(&self, _loop: bool) -> ErrorResult { - Ok(()) - } - - fn Play(&self) -> ErrorResult { - Ok(()) - } - - fn Pause(&self) -> ErrorResult { - Ok(()) - } - - fn Controls(&self) -> bool { - false - } - - fn SetControls(&self, _controls: bool) -> ErrorResult { - Ok(()) - } - - fn Volume(&self) -> f64 { - 0f64 - } - - fn SetVolume(&self, _volume: f64) -> ErrorResult { - Ok(()) - } - - fn Muted(&self) -> bool { - false - } - - fn SetMuted(&self, _muted: bool) { - } - - fn DefaultMuted(&self) -> bool { - false - } - - fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlmetaelement.rs b/src/components/script/dom/htmlmetaelement.rs index cdfbcef211e..855349c3d36 100644 --- a/src/components/script/dom/htmlmetaelement.rs +++ b/src/components/script/dom/htmlmetaelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLMetaElementBinding; use dom::bindings::codegen::InheritTypes::HTMLMetaElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLMetaElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,46 +37,4 @@ impl HTMLMetaElement { } pub trait HTMLMetaElementMethods { - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn HttpEquiv(&self) -> DOMString; - fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult; - fn Content(&self) -> DOMString; - fn SetContent(&self, _content: DOMString) -> ErrorResult; - fn Scheme(&self) -> DOMString; - fn SetScheme(&self, _scheme: DOMString) -> ErrorResult; -} - -impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> { - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn HttpEquiv(&self) -> DOMString { - "".to_owned() - } - - fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult { - Ok(()) - } - - fn Content(&self) -> DOMString { - "".to_owned() - } - - fn SetContent(&self, _content: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scheme(&self) -> DOMString { - "".to_owned() - } - - fn SetScheme(&self, _scheme: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlmeterelement.rs b/src/components/script/dom/htmlmeterelement.rs index b54dcc173a6..8e439270be7 100644 --- a/src/components/script/dom/htmlmeterelement.rs +++ b/src/components/script/dom/htmlmeterelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLMeterElementBinding; use dom::bindings::codegen::InheritTypes::HTMLMeterElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLMeterElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,67 +37,4 @@ impl HTMLMeterElement { } pub trait HTMLMeterElementMethods { - fn Value(&self) -> f64; - fn SetValue(&self, _value: f64) -> ErrorResult; - fn Min(&self) -> f64; - fn SetMin(&self, _min: f64) -> ErrorResult; - fn Max(&self) -> f64; - fn SetMax(&self, _max: f64) -> ErrorResult; - fn Low(&self) -> f64; - fn SetLow(&self, _low: f64) -> ErrorResult; - fn High(&self) -> f64; - fn SetHigh(&self, _high: f64) -> ErrorResult; - fn Optimum(&self) -> f64; - fn SetOptimum(&self, _optimum: f64) -> ErrorResult; } - -impl<'a> HTMLMeterElementMethods for JSRef<'a, HTMLMeterElement> { - fn Value(&self) -> f64 { - 0.0 - } - - fn SetValue(&self, _value: f64) -> ErrorResult { - Ok(()) - } - - fn Min(&self) -> f64 { - 0.0 - } - - fn SetMin(&self, _min: f64) -> ErrorResult { - Ok(()) - } - - fn Max(&self) -> f64 { - 0.0 - } - - fn SetMax(&self, _max: f64) -> ErrorResult { - Ok(()) - } - - fn Low(&self) -> f64 { - 0.0 - } - - fn SetLow(&self, _low: f64) -> ErrorResult { - Ok(()) - } - - fn High(&self) -> f64 { - 0.0 - } - - fn SetHigh(&self, _high: f64) -> ErrorResult { - Ok(()) - } - - fn Optimum(&self) -> f64 { - 0.0 - } - - fn SetOptimum(&self, _optimum: f64) -> ErrorResult { - Ok(()) - } -} - diff --git a/src/components/script/dom/htmlmodelement.rs b/src/components/script/dom/htmlmodelement.rs index bc5bda15e4c..c063157818f 100644 --- a/src/components/script/dom/htmlmodelement.rs +++ b/src/components/script/dom/htmlmodelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLModElementBinding; use dom::bindings::codegen::InheritTypes::HTMLModElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLModElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLModElement { } pub trait HTMLModElementMethods { - fn Cite(&self) -> DOMString; - fn SetCite(&self, _cite: DOMString) -> ErrorResult; - fn DateTime(&self) -> DOMString; - fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult; -} - -impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> { - fn Cite(&self) -> DOMString { - "".to_owned() - } - - fn SetCite(&self, _cite: DOMString) -> ErrorResult { - Ok(()) - } - - fn DateTime(&self) -> DOMString { - "".to_owned() - } - - fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlobjectelement.rs b/src/components/script/dom/htmlobjectelement.rs index fa2210b08c6..9bdd2629239 100644 --- a/src/components/script/dom/htmlobjectelement.rs +++ b/src/components/script/dom/htmlobjectelement.rs @@ -7,17 +7,14 @@ use dom::bindings::codegen::BindingDeclarations::HTMLObjectElementBinding; use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast}; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{Element, HTMLObjectElementTypeId}; use dom::element::AttributeHandlers; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::htmlelement::HTMLElement; -use dom::htmlformelement::HTMLFormElement; use dom::node::{Node, ElementNodeTypeId, NodeHelpers, window_from_node}; use dom::validitystate::ValidityState; use dom::virtualmethods::VirtualMethods; -use dom::window::Window; use servo_util::str::DOMString; use servo_net::image_cache_task; @@ -77,213 +74,14 @@ impl<'a> ProcessDataURL for JSRef<'a, HTMLObjectElement> { } pub trait HTMLObjectElementMethods { - fn Data(&self) -> DOMString; - fn SetData(&self, _data: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn UseMap(&self) -> DOMString; - fn SetUseMap(&self, _use_map: DOMString) -> ErrorResult; - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&self, _height: DOMString) -> ErrorResult; - fn GetContentDocument(&self) -> Option<Temporary<Document>>; - fn GetContentWindow(&self) -> Option<Temporary<Window>>; - fn WillValidate(&self) -> bool; fn Validity(&self) -> Temporary<ValidityState>; - fn ValidationMessage(&self) -> DOMString; - fn CheckValidity(&self) -> bool; - fn SetCustomValidity(&self, _error: DOMString); - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Archive(&self) -> DOMString; - fn SetArchive(&self, _archive: DOMString) -> ErrorResult; - fn Code(&self) -> DOMString; - fn SetCode(&self, _code: DOMString) -> ErrorResult; - fn Declare(&self) -> bool; - fn SetDeclare(&self, _declare: bool) -> ErrorResult; - fn Hspace(&self) -> u32; - fn SetHspace(&self, _hspace: u32) -> ErrorResult; - fn Standby(&self) -> DOMString; - fn SetStandby(&self, _standby: DOMString) -> ErrorResult; - fn Vspace(&self) -> u32; - fn SetVspace(&self, _vspace: u32) -> ErrorResult; - fn CodeBase(&self) -> DOMString; - fn SetCodeBase(&self, _codebase: DOMString) -> ErrorResult; - fn CodeType(&self) -> DOMString; - fn SetCodeType(&self, _codetype: DOMString) -> ErrorResult; - fn Border(&self) -> DOMString; - fn SetBorder(&self, _border: DOMString) -> ErrorResult; - fn GetSVGDocument(&self) -> Option<Temporary<Document>>; } impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> { - fn Data(&self) -> DOMString { - "".to_owned() - } - - fn SetData(&self, _data: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn UseMap(&self) -> DOMString { - "".to_owned() - } - - fn SetUseMap(&self, _use_map: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> { - None - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetContentDocument(&self) -> Option<Temporary<Document>> { - None - } - - fn GetContentWindow(&self) -> Option<Temporary<Window>> { - None - } - - 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) { - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Archive(&self) -> DOMString { - "".to_owned() - } - - fn SetArchive(&self, _archive: DOMString) -> ErrorResult { - Ok(()) - } - - fn Code(&self) -> DOMString { - "".to_owned() - } - - fn SetCode(&self, _code: DOMString) -> ErrorResult { - Ok(()) - } - - fn Declare(&self) -> bool { - false - } - - fn SetDeclare(&self, _declare: bool) -> ErrorResult { - Ok(()) - } - - fn Hspace(&self) -> u32 { - 0 - } - - fn SetHspace(&self, _hspace: u32) -> ErrorResult { - Ok(()) - } - - fn Standby(&self) -> DOMString { - "".to_owned() - } - - fn SetStandby(&self, _standby: DOMString) -> ErrorResult { - Ok(()) - } - - fn Vspace(&self) -> u32 { - 0 - } - - fn SetVspace(&self, _vspace: u32) -> ErrorResult { - Ok(()) - } - - fn CodeBase(&self) -> DOMString { - "".to_owned() - } - - fn SetCodeBase(&self, _codebase: DOMString) -> ErrorResult { - Ok(()) - } - - fn CodeType(&self) -> DOMString { - "".to_owned() - } - - fn SetCodeType(&self, _codetype: DOMString) -> ErrorResult { - Ok(()) - } - - fn Border(&self) -> DOMString { - "".to_owned() - } - - fn SetBorder(&self, _border: DOMString) -> ErrorResult { - Ok(()) - } - - fn GetSVGDocument(&self) -> Option<Temporary<Document>> { - None - } } impl<'a> VirtualMethods for JSRef<'a, HTMLObjectElement> { diff --git a/src/components/script/dom/htmlolistelement.rs b/src/components/script/dom/htmlolistelement.rs index e9176930ced..7300a29286f 100644 --- a/src/components/script/dom/htmlolistelement.rs +++ b/src/components/script/dom/htmlolistelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLOListElementBinding; use dom::bindings::codegen::InheritTypes::HTMLOListElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLOListElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,46 +37,4 @@ impl HTMLOListElement { } pub trait HTMLOListElementMethods { - fn Reversed(&self) -> bool; - fn SetReversed(&self, _reversed: bool) -> ErrorResult; - fn Start(&self) -> i32; - fn SetStart(&self, _start: i32) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Compact(&self) -> bool; - fn SetCompact(&self, _compact: bool) -> ErrorResult; -} - -impl<'a> HTMLOListElementMethods for JSRef<'a, HTMLOListElement> { - fn Reversed(&self) -> bool { - false - } - - fn SetReversed(&self, _reversed: bool) -> ErrorResult { - Ok(()) - } - - fn Start(&self) -> i32 { - 0 - } - - fn SetStart(&self, _start: i32) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Compact(&self) -> bool { - false - } - - fn SetCompact(&self, _compact: bool) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmloptgroupelement.rs b/src/components/script/dom/htmloptgroupelement.rs index b67c1fda42f..db1cf2725f0 100644 --- a/src/components/script/dom/htmloptgroupelement.rs +++ b/src/components/script/dom/htmloptgroupelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLOptGroupElementBinding; use dom::bindings::codegen::InheritTypes::HTMLOptGroupElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLOptGroupElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLOptGroupElement { } pub trait HTMLOptGroupElementMethods { - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn Label(&self) -> DOMString; - fn SetLabel(&self, _label: DOMString) -> ErrorResult; -} - -impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> { - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn Label(&self) -> DOMString { - "".to_owned() - } - - fn SetLabel(&self, _label: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmloptionelement.rs b/src/components/script/dom/htmloptionelement.rs index 2e142d6d255..3b40f9021ab 100644 --- a/src/components/script/dom/htmloptionelement.rs +++ b/src/components/script/dom/htmloptionelement.rs @@ -5,12 +5,10 @@ use dom::bindings::codegen::BindingDeclarations::HTMLOptionElementBinding; use dom::bindings::codegen::InheritTypes::HTMLOptionElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLOptionElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::htmlelement::HTMLElement; -use dom::htmlformelement::HTMLFormElement; use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; @@ -39,76 +37,4 @@ impl HTMLOptionElement { } pub trait HTMLOptionElementMethods { - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>; - fn Label(&self) -> DOMString; - fn SetLabel(&self, _label: DOMString) -> ErrorResult; - fn DefaultSelected(&self) -> bool; - fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult; - fn Selected(&self) -> bool; - fn SetSelected(&self, _selected: bool) -> ErrorResult; - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString) -> ErrorResult; - fn Text(&self) -> DOMString; - fn SetText(&self, _text: DOMString) -> ErrorResult; - fn Index(&self) -> i32; -} - -impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> { - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> { - None - } - - fn Label(&self) -> DOMString { - "".to_owned() - } - - fn SetLabel(&self, _label: DOMString) -> ErrorResult { - Ok(()) - } - - fn DefaultSelected(&self) -> bool { - false - } - - fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult { - Ok(()) - } - - fn Selected(&self) -> bool { - false - } - - fn SetSelected(&self, _selected: bool) -> ErrorResult { - Ok(()) - } - - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) -> ErrorResult { - Ok(()) - } - - fn Text(&self) -> DOMString { - "".to_owned() - } - - fn SetText(&self, _text: DOMString) -> ErrorResult { - Ok(()) - } - - fn Index(&self) -> i32 { - 0 - } } 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) { - } } diff --git a/src/components/script/dom/htmlparagraphelement.rs b/src/components/script/dom/htmlparagraphelement.rs index 6b57f28600b..656b67d8809 100644 --- a/src/components/script/dom/htmlparagraphelement.rs +++ b/src/components/script/dom/htmlparagraphelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLParagraphElementBinding; use dom::bindings::codegen::InheritTypes::HTMLParagraphElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLParagraphElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLParagraphElement { } pub trait HTMLParagraphElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLParagraphElementMethods for JSRef<'a, HTMLParagraphElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlparamelement.rs b/src/components/script/dom/htmlparamelement.rs index e9bc3cd07fa..8c0e0bfe091 100644 --- a/src/components/script/dom/htmlparamelement.rs +++ b/src/components/script/dom/htmlparamelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLParamElementBinding; use dom::bindings::codegen::InheritTypes::HTMLParamElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLParamElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,46 +37,4 @@ impl HTMLParamElement { } pub trait HTMLParamElementMethods { - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn ValueType(&self) -> DOMString; - fn SetValueType(&self, _value_type: DOMString) -> ErrorResult; -} - -impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> { - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn ValueType(&self) -> DOMString { - "".to_owned() - } - - fn SetValueType(&self, _value_type: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlpreelement.rs b/src/components/script/dom/htmlpreelement.rs index 93f1f196b7d..35a13f7288b 100644 --- a/src/components/script/dom/htmlpreelement.rs +++ b/src/components/script/dom/htmlpreelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLPreElementBinding; use dom::bindings::codegen::InheritTypes::HTMLPreElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLPreElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLPreElement { } pub trait HTMLPreElementMethods { - fn Width(&self) -> i32; - fn SetWidth(&self, _width: i32) -> ErrorResult; -} - -impl<'a> HTMLPreElementMethods for JSRef<'a, HTMLPreElement> { - fn Width(&self) -> i32 { - 0 - } - - fn SetWidth(&self, _width: i32) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlprogresselement.rs b/src/components/script/dom/htmlprogresselement.rs index 7b95b1ebf8a..f2a08bb52d9 100644 --- a/src/components/script/dom/htmlprogresselement.rs +++ b/src/components/script/dom/htmlprogresselement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLProgressElementBinding; use dom::bindings::codegen::InheritTypes::HTMLProgressElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::{ErrorResult, Fallible}; use dom::document::Document; use dom::element::HTMLProgressElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,36 +37,4 @@ impl HTMLProgressElement { } pub trait HTMLProgressElementMethods { - fn Value(&self) -> f64; - fn SetValue(&self, _value: f64) -> ErrorResult; - fn Max(&self) -> f64; - fn SetMax(&self, _max: f64) -> ErrorResult; - fn Position(&self) -> f64; - fn GetPositiom(&self) -> Fallible<f64>; -} - -impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> { - fn Value(&self) -> f64 { - 0f64 - } - - fn SetValue(&self, _value: f64) -> ErrorResult { - Ok(()) - } - - fn Max(&self) -> f64 { - 0f64 - } - - fn SetMax(&self, _max: f64) -> ErrorResult { - Ok(()) - } - - fn Position(&self) -> f64 { - 0f64 - } - - fn GetPositiom(&self) -> Fallible<f64> { - Ok(0f64) - } } diff --git a/src/components/script/dom/htmlquoteelement.rs b/src/components/script/dom/htmlquoteelement.rs index cc61f5cdaf0..efd972890db 100644 --- a/src/components/script/dom/htmlquoteelement.rs +++ b/src/components/script/dom/htmlquoteelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLQuoteElementBinding; use dom::bindings::codegen::InheritTypes::HTMLQuoteElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLQuoteElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLQuoteElement { } pub trait HTMLQuoteElementMethods { - fn Cite(&self) -> DOMString; - fn SetCite(&self, _cite: DOMString) -> ErrorResult; -} - -impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> { - fn Cite(&self) -> DOMString { - "".to_owned() - } - - fn SetCite(&self, _cite: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlscriptelement.rs b/src/components/script/dom/htmlscriptelement.rs index 4f618275011..f7e94ce16cf 100644 --- a/src/components/script/dom/htmlscriptelement.rs +++ b/src/components/script/dom/htmlscriptelement.rs @@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLScriptElementBinding; use dom::bindings::codegen::InheritTypes::HTMLScriptElementDerived; use dom::bindings::codegen::InheritTypes::ElementCast; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{HTMLScriptElementTypeId, Element, AttributeHandlers}; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -40,23 +39,6 @@ impl HTMLScriptElement { pub trait HTMLScriptElementMethods { fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Charset(&self) -> DOMString; - fn SetCharset(&self, _charset: DOMString) -> ErrorResult; - fn Async(&self) -> bool; - fn SetAsync(&self, _async: bool) -> ErrorResult; - fn Defer(&self) -> bool; - fn SetDefer(&self, _defer: bool) -> ErrorResult; - fn CrossOrigin(&self) -> DOMString; - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult; - fn Text(&self) -> DOMString; - fn SetText(&self, _text: DOMString) -> ErrorResult; - fn Event(&self) -> DOMString; - fn SetEvent(&self, _event: DOMString) -> ErrorResult; - fn HtmlFor(&self) -> DOMString; - fn SetHtmlFor(&self, _html_for: DOMString) -> ErrorResult; } impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> { @@ -64,72 +46,4 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> { let element: &JSRef<Element> = ElementCast::from_ref(self); element.get_url_attribute("src") } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Charset(&self) -> DOMString { - "".to_owned() - } - - fn SetCharset(&self, _charset: DOMString) -> ErrorResult { - Ok(()) - } - - fn Async(&self) -> bool { - false - } - - fn SetAsync(&self, _async: bool) -> ErrorResult { - Ok(()) - } - - fn Defer(&self) -> bool { - false - } - - fn SetDefer(&self, _defer: bool) -> ErrorResult { - Ok(()) - } - - fn CrossOrigin(&self) -> DOMString { - "".to_owned() - } - - fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult { - Ok(()) - } - - fn Text(&self) -> DOMString { - "".to_owned() - } - - fn SetText(&self, _text: DOMString) -> ErrorResult { - Ok(()) - } - - fn Event(&self) -> DOMString { - "".to_owned() - } - - fn SetEvent(&self, _event: DOMString) -> ErrorResult { - Ok(()) - } - - fn HtmlFor(&self) -> DOMString { - "".to_owned() - } - - fn SetHtmlFor(&self, _html_for: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlselectelement.rs b/src/components/script/dom/htmlselectelement.rs index b5e4ec43793..48f99586b85 100644 --- a/src/components/script/dom/htmlselectelement.rs +++ b/src/components/script/dom/htmlselectelement.rs @@ -4,16 +4,12 @@ use dom::bindings::codegen::BindingDeclarations::HTMLSelectElementBinding; use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived; -use dom::bindings::codegen::UnionTypes::{HTMLElementOrLong, HTMLOptionElementOrHTMLOptGroupElement}; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; -use dom::element::{Element, HTMLSelectElementTypeId}; +use dom::element::HTMLSelectElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::htmlelement::HTMLElement; -use dom::htmlformelement::HTMLFormElement; use dom::node::{Node, ElementNodeTypeId, window_from_node}; -use dom::htmloptionelement::HTMLOptionElement; use dom::validitystate::ValidityState; use servo_util::str::DOMString; @@ -42,172 +38,12 @@ impl HTMLSelectElement { } pub trait HTMLSelectElementMethods { - fn Autofocus(&self) -> bool; - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult; - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>; - fn Multiple(&self) -> bool; - fn SetMultiple(&self, _multiple: bool) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Required(&self) -> bool; - fn SetRequired(&self, _multiple: bool) -> ErrorResult; - fn Size(&self) -> u32; - fn SetSize(&self, _size: u32) -> ErrorResult; - fn Type(&self) -> DOMString; - fn Length(&self) -> u32; - fn SetLength(&self, _length: u32) -> ErrorResult; - fn Item(&self, _index: u32) -> Option<Temporary<Element>>; - fn NamedItem(&self, _name: DOMString) -> Option<Temporary<HTMLOptionElement>>; - fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Option<Temporary<Element>>; - fn IndexedSetter(&self, _index: u32, _option: Option<JSRef<HTMLOptionElement>>) -> ErrorResult; - fn Remove_(&self); - fn Remove(&self, _index: i32); - fn SelectedIndex(&self) -> i32; - fn SetSelectedIndex(&self, _index: i32) -> ErrorResult; - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString); - 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); - fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) -> ErrorResult; } impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> { - fn Autofocus(&self) -> bool { - false - } - - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult { - Ok(()) - } - - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> { - None - } - - fn Multiple(&self) -> bool { - false - } - - fn SetMultiple(&self, _multiple: bool) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Required(&self) -> bool { - false - } - - fn SetRequired(&self, _multiple: bool) -> ErrorResult { - Ok(()) - } - - fn Size(&self) -> u32 { - 0 - } - - fn SetSize(&self, _size: u32) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn Length(&self) -> u32 { - 0 - } - - fn SetLength(&self, _length: u32) -> ErrorResult { - Ok(()) - } - - fn Item(&self, _index: u32) -> Option<Temporary<Element>> { - None - } - - fn NamedItem(&self, _name: DOMString) -> Option<Temporary<HTMLOptionElement>> { - None - } - - fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Option<Temporary<Element>> { - None - } - - fn IndexedSetter(&self, _index: u32, _option: Option<JSRef<HTMLOptionElement>>) -> ErrorResult { - Ok(()) - } - - fn Remove_(&self) { - } - - fn Remove(&self, _index: i32) { - } - - fn SelectedIndex(&self) -> i32 { - 0 - } - - fn SetSelectedIndex(&self, _index: i32) -> ErrorResult { - Ok(()) - } - - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) { - } - - 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) { - } - - fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlsourceelement.rs b/src/components/script/dom/htmlsourceelement.rs index 66f8e2157eb..4d16d63f3ce 100644 --- a/src/components/script/dom/htmlsourceelement.rs +++ b/src/components/script/dom/htmlsourceelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLSourceElementBinding; use dom::bindings::codegen::InheritTypes::HTMLSourceElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLSourceElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,36 +37,4 @@ impl HTMLSourceElement { } pub trait HTMLSourceElementMethods { - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Media(&self) -> DOMString; - fn SetMedia(&self, _media: DOMString) -> ErrorResult; -} - -impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> { - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Media(&self) -> DOMString { - "".to_owned() - } - - fn SetMedia(&self, _media: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlstyleelement.rs b/src/components/script/dom/htmlstyleelement.rs index d75fb8cfc91..e51096fb1d4 100644 --- a/src/components/script/dom/htmlstyleelement.rs +++ b/src/components/script/dom/htmlstyleelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLStyleElementBinding; use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLStyleElementDerived, NodeCast}; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLStyleElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -41,47 +40,6 @@ impl HTMLStyleElement { } pub trait HTMLStyleElementMethods { - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool); - fn Media(&self) -> DOMString; - fn SetMedia(&self, _media: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Scoped(&self) -> bool; - fn SetScoped(&self, _scoped: bool) -> ErrorResult; -} - -impl<'a> HTMLStyleElementMethods for JSRef<'a, HTMLStyleElement> { - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) { - } - - fn Media(&self) -> DOMString { - "".to_owned() - } - - fn SetMedia(&self, _media: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scoped(&self) -> bool { - false - } - - fn SetScoped(&self, _scoped: bool) -> ErrorResult { - Ok(()) - } } pub trait StyleElementHelpers { diff --git a/src/components/script/dom/htmltablecaptionelement.rs b/src/components/script/dom/htmltablecaptionelement.rs index bfa42b893a9..74298b6267b 100644 --- a/src/components/script/dom/htmltablecaptionelement.rs +++ b/src/components/script/dom/htmltablecaptionelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTableCaptionElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTableCaptionElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTableCaptionElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLTableCaptionElement { } pub trait HTMLTableCaptionElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableCaptionElementMethods for JSRef<'a, HTMLTableCaptionElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltablecellelement.rs b/src/components/script/dom/htmltablecellelement.rs index 00adcb3e059..3a333727681 100644 --- a/src/components/script/dom/htmltablecellelement.rs +++ b/src/components/script/dom/htmltablecellelement.rs @@ -4,7 +4,6 @@ use dom::bindings::codegen::InheritTypes::HTMLTableCellElementDerived; use dom::bindings::js::JSRef; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{ElementTypeId, HTMLTableDataCellElementTypeId, HTMLTableHeaderCellElementTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -36,156 +35,4 @@ impl HTMLTableCellElement { } pub trait HTMLTableCellElementMethods { - fn ColSpan(&self) -> u32; - fn SetColSpan(&self, _col_span: u32) -> ErrorResult; - fn RowSpan(&self) -> u32; - fn SetRowSpan(&self, _col_span: u32) -> ErrorResult; - fn Headers(&self) -> DOMString; - fn SetHeaders(&self, _headers: DOMString) -> ErrorResult; - fn CellIndex(&self) -> i32; - fn GetCellIndex(&self, _cell_index: i32) -> ErrorResult; - fn Abbr(&self) -> DOMString; - fn SetAbbr(&self, _abbr: DOMString) -> ErrorResult; - fn Scope(&self) -> DOMString; - fn SetScope(&self, _abbr: DOMString) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Axis(&self) -> DOMString; - fn SetAxis(&self, _axis: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&self, _height: DOMString) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; - fn Ch(&self) -> DOMString; - fn SetCh(&self, _ch: DOMString) -> ErrorResult; - fn ChOff(&self) -> DOMString; - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult; - fn NoWrap(&self) -> bool; - fn SetNoWrap(&self, _no_wrap: bool) -> ErrorResult; - fn VAlign(&self) -> DOMString; - fn SetVAlign(&self, _valign: DOMString) -> ErrorResult; - fn BgColor(&self) -> DOMString; - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> { - fn ColSpan(&self) -> u32 { - 0 - } - - fn SetColSpan(&self, _col_span: u32) -> ErrorResult { - Ok(()) - } - - fn RowSpan(&self) -> u32 { - 0 - } - - fn SetRowSpan(&self, _col_span: u32) -> ErrorResult { - Ok(()) - } - - fn Headers(&self) -> DOMString { - "".to_owned() - } - - fn SetHeaders(&self, _headers: DOMString) -> ErrorResult { - Ok(()) - } - - fn CellIndex(&self) -> i32 { - 0 - } - - fn GetCellIndex(&self, _cell_index: i32) -> ErrorResult { - Ok(()) - } - - fn Abbr(&self) -> DOMString { - "".to_owned() - } - - fn SetAbbr(&self, _abbr: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scope(&self) -> DOMString { - "".to_owned() - } - - fn SetScope(&self, _abbr: DOMString) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Axis(&self) -> DOMString { - "".to_owned() - } - - fn SetAxis(&self, _axis: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ch(&self) -> DOMString { - "".to_owned() - } - - fn SetCh(&self, _ch: DOMString) -> ErrorResult { - Ok(()) - } - - fn ChOff(&self) -> DOMString { - "".to_owned() - } - - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult { - Ok(()) - } - - fn NoWrap(&self) -> bool { - false - } - - fn SetNoWrap(&self, _no_wrap: bool) -> ErrorResult { - Ok(()) - } - - fn VAlign(&self) -> DOMString { - "".to_owned() - } - - fn SetVAlign(&self, _valign: DOMString) -> ErrorResult { - Ok(()) - } - - fn BgColor(&self) -> DOMString { - "".to_owned() - } - - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltablecolelement.rs b/src/components/script/dom/htmltablecolelement.rs index 838f81a970b..15f7b5d2a82 100644 --- a/src/components/script/dom/htmltablecolelement.rs +++ b/src/components/script/dom/htmltablecolelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTableColElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTableColElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTableColElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,66 +37,4 @@ impl HTMLTableColElement { } pub trait HTMLTableColElementMethods { - fn Span(&self) -> u32; - fn SetSpan(&self, _span: u32) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Ch(&self) -> DOMString; - fn SetCh(&self, _ch: DOMString) -> ErrorResult; - fn ChOff(&self) -> DOMString; - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult; - fn VAlign(&self) -> DOMString; - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> { - fn Span(&self) -> u32 { - 0 - } - - fn SetSpan(&self, _span: u32) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ch(&self) -> DOMString { - "".to_owned() - } - - fn SetCh(&self, _ch: DOMString) -> ErrorResult { - Ok(()) - } - - fn ChOff(&self) -> DOMString { - "".to_owned() - } - - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult { - Ok(()) - } - - fn VAlign(&self) -> DOMString { - "".to_owned() - } - - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltableelement.rs b/src/components/script/dom/htmltableelement.rs index 20fd1d1e964..14b7d708818 100644 --- a/src/components/script/dom/htmltableelement.rs +++ b/src/components/script/dom/htmltableelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTableElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTableElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTableElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,126 +37,4 @@ impl HTMLTableElement { } pub trait HTMLTableElementMethods { - fn DeleteCaption(&self); - fn DeleteTHead(&self); - fn DeleteTFoot(&self); - fn DeleteRow(&self, _index: i32) -> ErrorResult; - fn Sortable(&self) -> bool; - fn SetSortable(&self, _sortable: bool); - fn StopSorting(&self); - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Border(&self) -> DOMString; - fn SetBorder(&self, _border: DOMString) -> ErrorResult; - fn Frame(&self) -> DOMString; - fn SetFrame(&self, _frame: DOMString) -> ErrorResult; - fn Rules(&self) -> DOMString; - fn SetRules(&self, _rules: DOMString) -> ErrorResult; - fn Summary(&self) -> DOMString; - fn SetSummary(&self, _summary: DOMString) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; - fn BgColor(&self) -> DOMString; - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult; - fn CellPadding(&self) -> DOMString; - fn SetCellPadding(&self, _cell_padding: DOMString) -> ErrorResult; - fn CellSpacing(&self) -> DOMString; - fn SetCellSpacing(&self, _cell_spacing: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> { - fn DeleteCaption(&self) { - } - - fn DeleteTHead(&self) { - } - - fn DeleteTFoot(&self) { - } - - fn DeleteRow(&self, _index: i32) -> ErrorResult { - Ok(()) - } - - fn Sortable(&self) -> bool { - false - } - - fn SetSortable(&self, _sortable: bool) { - } - - fn StopSorting(&self) { - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Border(&self) -> DOMString { - "".to_owned() - } - - fn SetBorder(&self, _border: DOMString) -> ErrorResult { - Ok(()) - } - - fn Frame(&self) -> DOMString { - "".to_owned() - } - - fn SetFrame(&self, _frame: DOMString) -> ErrorResult { - Ok(()) - } - - fn Rules(&self) -> DOMString { - "".to_owned() - } - - fn SetRules(&self, _rules: DOMString) -> ErrorResult { - Ok(()) - } - - fn Summary(&self) -> DOMString { - "".to_owned() - } - - fn SetSummary(&self, _summary: DOMString) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } - - fn BgColor(&self) -> DOMString { - "".to_owned() - } - - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult { - Ok(()) - } - - fn CellPadding(&self) -> DOMString { - "".to_owned() - } - - fn SetCellPadding(&self, _cell_padding: DOMString) -> ErrorResult { - Ok(()) - } - - fn CellSpacing(&self) -> DOMString { - "".to_owned() - } - - fn SetCellSpacing(&self, _cell_spacing: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltablerowelement.rs b/src/components/script/dom/htmltablerowelement.rs index 064205a885e..567576a9de3 100644 --- a/src/components/script/dom/htmltablerowelement.rs +++ b/src/components/script/dom/htmltablerowelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTableRowElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTableRowElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTableRowElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,81 +37,4 @@ impl HTMLTableRowElement { } pub trait HTMLTableRowElementMethods { - fn RowIndex(&self) -> i32; - fn GetRowIndex(&self) -> i32; - fn SectionRowIndex(&self) -> i32; - fn GetSectionRowIndex(&self) -> i32; - fn DeleteCell(&self, _index: i32) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Ch(&self) -> DOMString; - fn SetCh(&self, _ch: DOMString) -> ErrorResult; - fn ChOff(&self) -> DOMString; - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult; - fn VAlign(&self) -> DOMString; - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult; - fn BgColor(&self) -> DOMString; - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> { - fn RowIndex(&self) -> i32 { - 0 - } - - fn GetRowIndex(&self) -> i32 { - 0 - } - - fn SectionRowIndex(&self) -> i32 { - 0 - } - - fn GetSectionRowIndex(&self) -> i32 { - 0 - } - - fn DeleteCell(&self, _index: i32) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ch(&self) -> DOMString { - "".to_owned() - } - - fn SetCh(&self, _ch: DOMString) -> ErrorResult { - Ok(()) - } - - fn ChOff(&self) -> DOMString { - "".to_owned() - } - - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult { - Ok(()) - } - - fn VAlign(&self) -> DOMString { - "".to_owned() - } - - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult { - Ok(()) - } - - fn BgColor(&self) -> DOMString { - "".to_owned() - } - - fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltablesectionelement.rs b/src/components/script/dom/htmltablesectionelement.rs index 367f6acae11..4bcdce10bc8 100644 --- a/src/components/script/dom/htmltablesectionelement.rs +++ b/src/components/script/dom/htmltablesectionelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTableSectionElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTableSectionElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTableSectionElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,51 +37,4 @@ impl HTMLTableSectionElement { } pub trait HTMLTableSectionElementMethods { - fn DeleteRow(&self, _index: i32) -> ErrorResult; - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Ch(&self) -> DOMString; - fn SetCh(&self, _ch: DOMString) -> ErrorResult; - fn ChOff(&self) -> DOMString; - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult; - fn VAlign(&self) -> DOMString; - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> { - fn DeleteRow(&self, _index: i32) -> ErrorResult { - Ok(()) - } - - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Ch(&self) -> DOMString { - "".to_owned() - } - - fn SetCh(&self, _ch: DOMString) -> ErrorResult { - Ok(()) - } - - fn ChOff(&self) -> DOMString { - "".to_owned() - } - - fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult { - Ok(()) - } - - fn VAlign(&self) -> DOMString { - "".to_owned() - } - - fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltextareaelement.rs b/src/components/script/dom/htmltextareaelement.rs index d5caebee50e..8d9e131e359 100644 --- a/src/components/script/dom/htmltextareaelement.rs +++ b/src/components/script/dom/htmltextareaelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTextAreaElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTextAreaElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::{ErrorResult, Fallible}; use dom::document::Document; use dom::element::HTMLTextAreaElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,206 +37,4 @@ impl HTMLTextAreaElement { } pub trait HTMLTextAreaElementMethods { - fn Autofocus(&self) -> bool; - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult; - fn Cols(&self) -> u32; - fn SetCols(&self, _cols: u32) -> ErrorResult; - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool) -> ErrorResult; - fn MaxLength(&self) -> i32; - fn SetMaxLength(&self, _max_length: i32) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Placeholder(&self) -> DOMString; - fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult; - fn ReadOnly(&self) -> bool; - fn SetReadOnly(&self, _read_only: bool) -> ErrorResult; - fn Required(&self) -> bool; - fn SetRequired(&self, _required: bool) -> ErrorResult; - fn Rows(&self) -> u32; - fn SetRows(&self, _rows: u32) -> ErrorResult; - fn Wrap(&self) -> DOMString; - fn SetWrap(&self, _wrap: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString); - fn DefaultValue(&self) -> DOMString; - fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult; - fn Value(&self) -> DOMString; - fn SetValue(&self, _value: DOMString); - fn TextLength(&self) -> u32; - fn SetTextLength(&self, _text_length: u32) -> ErrorResult; - fn WillValidate(&self) -> bool; - fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult; - fn ValidationMessage(&self) -> DOMString; - fn CheckValidity(&self) -> bool; - fn SetCustomValidity(&self, _error: DOMString); - fn Select(&self); - fn GetSelectionStart(&self) -> Fallible<u32>; - fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult; - fn GetSelectionEnd(&self) -> Fallible<u32>; - fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult; - fn GetSelectionDirection(&self) -> Fallible<DOMString>; - fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult; - fn SetRangeText(&self, _replacement: DOMString); -} - -impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> { - fn Autofocus(&self) -> bool { - false - } - - fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult { - Ok(()) - } - - fn Cols(&self) -> u32 { - 0 - } - - fn SetCols(&self, _cols: u32) -> ErrorResult { - Ok(()) - } - - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) -> ErrorResult { - Ok(()) - } - - fn MaxLength(&self) -> i32 { - 0 - } - - fn SetMaxLength(&self, _max_length: i32) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Placeholder(&self) -> DOMString { - "".to_owned() - } - - fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult { - Ok(()) - } - - fn ReadOnly(&self) -> bool { - false - } - - fn SetReadOnly(&self, _read_only: bool) -> ErrorResult { - Ok(()) - } - - fn Required(&self) -> bool { - false - } - - fn SetRequired(&self, _required: bool) -> ErrorResult { - Ok(()) - } - - fn Rows(&self) -> u32 { - 0 - } - - fn SetRows(&self, _rows: u32) -> ErrorResult { - Ok(()) - } - - fn Wrap(&self) -> DOMString { - "".to_owned() - } - - fn SetWrap(&self, _wrap: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) { - } - - fn DefaultValue(&self) -> DOMString { - "".to_owned() - } - - fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult { - Ok(()) - } - - fn Value(&self) -> DOMString { - "".to_owned() - } - - fn SetValue(&self, _value: DOMString) { - } - - fn TextLength(&self) -> u32 { - 0 - } - - fn SetTextLength(&self, _text_length: u32) -> ErrorResult { - Ok(()) - } - - fn WillValidate(&self) -> bool { - false - } - - fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult { - Ok(()) - } - - fn ValidationMessage(&self) -> DOMString { - "".to_owned() - } - - fn CheckValidity(&self) -> bool { - false - } - - fn SetCustomValidity(&self, _error: DOMString) { - } - - fn Select(&self) { - } - - fn GetSelectionStart(&self) -> Fallible<u32> { - Ok(0) - } - - fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult { - Ok(()) - } - - fn GetSelectionEnd(&self) -> Fallible<u32> { - Ok(0) - } - - fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult { - Ok(()) - } - - fn GetSelectionDirection(&self) -> Fallible<DOMString> { - Ok("".to_owned()) - } - - fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult { - Ok(()) - } - - fn SetRangeText(&self, _replacement: DOMString) { - } } diff --git a/src/components/script/dom/htmltimeelement.rs b/src/components/script/dom/htmltimeelement.rs index 1778fb871ef..20765644479 100644 --- a/src/components/script/dom/htmltimeelement.rs +++ b/src/components/script/dom/htmltimeelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTimeElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTimeElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTimeElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLTimeElement { } pub trait HTMLTimeElementMethods { - fn DateTime(&self) -> DOMString; - fn SetDateTime(&self, _dateTime: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTimeElementMethods for JSRef<'a, HTMLTimeElement> { - fn DateTime(&self) -> DOMString { - "".to_owned() - } - - fn SetDateTime(&self, _dateTime: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltitleelement.rs b/src/components/script/dom/htmltitleelement.rs index 1f5649dc836..8589c931259 100644 --- a/src/components/script/dom/htmltitleelement.rs +++ b/src/components/script/dom/htmltitleelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTitleElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTitleElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTitleElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,16 +37,4 @@ impl HTMLTitleElement { } pub trait HTMLTitleElementMethods { - fn Text(&self) -> DOMString; - fn SetText(&self, _text: DOMString) -> ErrorResult; -} - -impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> { - fn Text(&self) -> DOMString { - "".to_owned() - } - - fn SetText(&self, _text: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmltrackelement.rs b/src/components/script/dom/htmltrackelement.rs index 8ce51312b46..72be3af4134 100644 --- a/src/components/script/dom/htmltrackelement.rs +++ b/src/components/script/dom/htmltrackelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLTrackElementBinding; use dom::bindings::codegen::InheritTypes::HTMLTrackElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLTrackElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,61 +37,4 @@ impl HTMLTrackElement { } pub trait HTMLTrackElementMethods { - fn Kind(&self) -> DOMString; - fn SetKind(&self, _kind: DOMString) -> ErrorResult; - fn Src(&self) -> DOMString; - fn SetSrc(&self, _src: DOMString) -> ErrorResult; - fn Srclang(&self) -> DOMString; - fn SetSrclang(&self, _srclang: DOMString) -> ErrorResult; - fn Label(&self) -> DOMString; - fn SetLabel(&self, _label: DOMString) -> ErrorResult; - fn Default(&self) -> bool; - fn SetDefault(&self, _default: bool) -> ErrorResult; - fn ReadyState(&self) -> u16; -} - -impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> { - fn Kind(&self) -> DOMString { - "".to_owned() - } - - fn SetKind(&self, _kind: DOMString) -> ErrorResult { - Ok(()) - } - - fn Src(&self) -> DOMString { - "".to_owned() - } - - fn SetSrc(&self, _src: DOMString) -> ErrorResult { - Ok(()) - } - - fn Srclang(&self) -> DOMString { - "".to_owned() - } - - fn SetSrclang(&self, _srclang: DOMString) -> ErrorResult { - Ok(()) - } - - fn Label(&self) -> DOMString { - "".to_owned() - } - - fn SetLabel(&self, _label: DOMString) -> ErrorResult { - Ok(()) - } - - fn Default(&self) -> bool { - false - } - - fn SetDefault(&self, _default: bool) -> ErrorResult { - Ok(()) - } - - fn ReadyState(&self) -> u16 { - 0 - } } diff --git a/src/components/script/dom/htmlulistelement.rs b/src/components/script/dom/htmlulistelement.rs index e73d671e166..7974bbbb959 100644 --- a/src/components/script/dom/htmlulistelement.rs +++ b/src/components/script/dom/htmlulistelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLUListElementBinding; use dom::bindings::codegen::InheritTypes::HTMLUListElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLUListElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,26 +37,4 @@ impl HTMLUListElement { } pub trait HTMLUListElementMethods { - fn Compact(&self) -> bool; - fn SetCompact(&self, _compact: bool) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; -} - -impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> { - fn Compact(&self) -> bool { - false - } - - fn SetCompact(&self, _compact: bool) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/htmlvideoelement.rs b/src/components/script/dom/htmlvideoelement.rs index e6ec0ecf5c3..33e917a457d 100644 --- a/src/components/script/dom/htmlvideoelement.rs +++ b/src/components/script/dom/htmlvideoelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLVideoElementBinding; use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLVideoElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,46 +37,4 @@ impl HTMLVideoElement { } pub trait HTMLVideoElementMethods { - fn Width(&self) -> u32; - fn SetWidth(&self, _width: u32) -> ErrorResult; - fn Height(&self) -> u32; - fn SetHeight(&self, _height: u32) -> ErrorResult; - fn VideoWidth(&self) -> u32; - fn VideoHeight(&self) -> u32; - fn Poster(&self) -> DOMString; - fn SetPoster(&self, _poster: DOMString) -> ErrorResult; -} - -impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> { - fn Width(&self) -> u32 { - 0 - } - - fn SetWidth(&self, _width: u32) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> u32 { - 0 - } - - fn SetHeight(&self, _height: u32) -> ErrorResult { - Ok(()) - } - - fn VideoWidth(&self) -> u32 { - 0 - } - - fn VideoHeight(&self) -> u32 { - 0 - } - - fn Poster(&self) -> DOMString { - "".to_owned() - } - - fn SetPoster(&self, _poster: DOMString) -> ErrorResult { - Ok(()) - } } diff --git a/src/components/script/dom/text.rs b/src/components/script/dom/text.rs index e0f5edd2287..fd6f26e6273 100644 --- a/src/components/script/dom/text.rs +++ b/src/components/script/dom/text.rs @@ -44,16 +44,4 @@ impl Text { } pub trait TextMethods { - fn SplitText(&self, _offset: u32) -> Fallible<Temporary<Text>>; - fn GetWholeText(&self) -> Fallible<DOMString>; -} - -impl<'a> TextMethods for JSRef<'a, Text> { - fn SplitText(&self, _offset: u32) -> Fallible<Temporary<Text>> { - fail!("unimplemented") - } - - fn GetWholeText(&self) -> Fallible<DOMString> { - Ok("".to_owned()) - } } diff --git a/src/components/script/dom/webidls/HTMLAnchorElement.webidl b/src/components/script/dom/webidls/HTMLAnchorElement.webidl index a4e1866fbf9..cd56efa00c8 100644 --- a/src/components/script/dom/webidls/HTMLAnchorElement.webidl +++ b/src/components/script/dom/webidls/HTMLAnchorElement.webidl @@ -11,44 +11,27 @@ * and create derivative works of this document. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-a-element +// http://www.whatwg.org/html/#htmlanchorelement interface HTMLAnchorElement : HTMLElement { - // No support for stringifier attributes yet - //[SetterThrows] - //stringifier attribute DOMString href; - //stringifier; - [SetterThrows] - attribute DOMString href; - [SetterThrows] - attribute DOMString target; - [SetterThrows] - attribute DOMString download; - [SetterThrows] - attribute DOMString ping; - [SetterThrows] - attribute DOMString rel; - // relList not supported yet + // attribute DOMString target; + // attribute DOMString download; + //[PutForwards=value] attribute DOMSettableTokenList ping; + // attribute DOMString rel; //readonly attribute DOMTokenList relList; - [SetterThrows] - attribute DOMString hreflang; - [SetterThrows] - attribute DOMString type; + // attribute DOMString hreflang; + // attribute DOMString type; - [SetterThrows] - attribute DOMString text; + // attribute DOMString text; + + // also has obsolete members }; //HTMLAnchorElement implements URLUtils; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLAnchorElement-partial partial interface HTMLAnchorElement { - [SetterThrows] - attribute DOMString coords; - [SetterThrows] - attribute DOMString charset; - [SetterThrows] - attribute DOMString name; - [SetterThrows] - attribute DOMString rev; - [SetterThrows] - attribute DOMString shape; + // attribute DOMString coords; + // attribute DOMString charset; + // attribute DOMString name; + // attribute DOMString rev; + // attribute DOMString shape; }; diff --git a/src/components/script/dom/webidls/HTMLAppletElement.webidl b/src/components/script/dom/webidls/HTMLAppletElement.webidl index 21313ae630f..2612ffee2a1 100644 --- a/src/components/script/dom/webidls/HTMLAppletElement.webidl +++ b/src/components/script/dom/webidls/HTMLAppletElement.webidl @@ -1,39 +1,19 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-applet-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-applet-element -[NeedNewResolve] +// http://www.whatwg.org/html/#htmlappletelement interface HTMLAppletElement : HTMLElement { - [Pure, SetterThrows] - attribute DOMString align; - [Pure, SetterThrows] - attribute DOMString alt; - [Pure, SetterThrows] - attribute DOMString archive; - [Pure, SetterThrows] - attribute DOMString code; - [Pure, SetterThrows] - attribute DOMString codeBase; - [Pure, SetterThrows] - attribute DOMString height; - [Pure, SetterThrows] - attribute unsigned long hspace; - [Pure, SetterThrows] - attribute DOMString name; - [Pure, SetterThrows] - attribute DOMString _object; - [Pure, SetterThrows] - attribute unsigned long vspace; - [Pure, SetterThrows] - attribute DOMString width; + // attribute DOMString align; + // attribute DOMString alt; + // attribute DOMString archive; + // attribute DOMString code; + // attribute DOMString codeBase; + // attribute DOMString height; + // attribute unsigned long hspace; + // attribute DOMString name; + // attribute DOMString _object; // the underscore is not part of the identifier + // attribute unsigned long vspace; + // attribute DOMString width; }; diff --git a/src/components/script/dom/webidls/HTMLAreaElement.webidl b/src/components/script/dom/webidls/HTMLAreaElement.webidl index f63f897bf5b..0cbbe2d7ce1 100644 --- a/src/components/script/dom/webidls/HTMLAreaElement.webidl +++ b/src/components/script/dom/webidls/HTMLAreaElement.webidl @@ -1,52 +1,26 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-area-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-area-element +// http://www.whatwg.org/html/#htmlareaelement interface HTMLAreaElement : HTMLElement { - [SetterThrows] - attribute DOMString alt; - [SetterThrows] - attribute DOMString coords; - [SetterThrows] - attribute DOMString shape; - // No support for stringifier attributes yet - //[SetterThrows] - //stringifier attribute DOMString href; -// stringifier; - [SetterThrows] - attribute DOMString href; - [SetterThrows] - attribute DOMString target; - [SetterThrows] - attribute DOMString download; - [SetterThrows] - attribute DOMString ping; + // attribute DOMString alt; + // attribute DOMString coords; + // attribute DOMString shape; + // attribute DOMString target; + // attribute DOMString download; + //[PutForwards=value] attribute DOMSettableTokenList ping; + // attribute DOMString rel; + //readonly attribute DOMTokenList relList; + // attribute DOMString hreflang; + // attribute DOMString type; - // not implemented. - // [SetterThrows] - // attribute DOMString rel; - //readonly attribute DOMTokenList relList; - // - // [SetterThrows] - // attribute DOMString hreflang; - // [SetterThrows] - // attribute DOMString type; + // also has obsolete members }; //HTMLAreaElement implements URLUtils; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLAreaElement-partial partial interface HTMLAreaElement { - [SetterThrows] - attribute boolean noHref; + // attribute boolean noHref; }; diff --git a/src/components/script/dom/webidls/HTMLAudioElement.webidl b/src/components/script/dom/webidls/HTMLAudioElement.webidl index ad2acd8ed03..9832eeda044 100644 --- a/src/components/script/dom/webidls/HTMLAudioElement.webidl +++ b/src/components/script/dom/webidls/HTMLAudioElement.webidl @@ -1,15 +1,8 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-audio-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -[NamedConstructor=Audio(optional DOMString src)] +// http://www.whatwg.org/html/#htmlaudioelement +//[NamedConstructor=Audio(optional DOMString src)] interface HTMLAudioElement : HTMLMediaElement {}; diff --git a/src/components/script/dom/webidls/HTMLBRElement.webidl b/src/components/script/dom/webidls/HTMLBRElement.webidl index 66b0e717f2e..972b9377a0e 100644 --- a/src/components/script/dom/webidls/HTMLBRElement.webidl +++ b/src/components/script/dom/webidls/HTMLBRElement.webidl @@ -1,22 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-br-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-br-element -interface HTMLBRElement : HTMLElement {}; +// http://www.whatwg.org/html/#htmlbrelement +interface HTMLBRElement : HTMLElement { + // also has obsolete members +}; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLBRElement-partial partial interface HTMLBRElement { - [SetterThrows] - attribute DOMString clear; + // attribute DOMString clear; }; diff --git a/src/components/script/dom/webidls/HTMLBaseElement.webidl b/src/components/script/dom/webidls/HTMLBaseElement.webidl index d3e7e4d8d71..c39951b6783 100644 --- a/src/components/script/dom/webidls/HTMLBaseElement.webidl +++ b/src/components/script/dom/webidls/HTMLBaseElement.webidl @@ -1,20 +1,10 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-base-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-base-element +// http://www.whatwg.org/html/#htmlbaseelement interface HTMLBaseElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString href; - [SetterThrows, Pure] - attribute DOMString target; + // attribute DOMString href; + // attribute DOMString target; }; diff --git a/src/components/script/dom/webidls/HTMLBodyElement.webidl b/src/components/script/dom/webidls/HTMLBodyElement.webidl index 05d11436371..6d6967d2709 100644 --- a/src/components/script/dom/webidls/HTMLBodyElement.webidl +++ b/src/components/script/dom/webidls/HTMLBodyElement.webidl @@ -1,26 +1,21 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlbodyelement interface HTMLBodyElement : HTMLElement { + + // also has obsolete members }; +HTMLBodyElement implements WindowEventHandlers; +// http://www.whatwg.org/html/#HTMLBodyElement-partial partial interface HTMLBodyElement { - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString text; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString link; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString vLink; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString aLink; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; - [SetterThrows] attribute DOMString background; + //[TreatNullAs=EmptyString] attribute DOMString text; + //[TreatNullAs=EmptyString] attribute DOMString link; + //[TreatNullAs=EmptyString] attribute DOMString vLink; + //[TreatNullAs=EmptyString] attribute DOMString aLink; + //[TreatNullAs=EmptyString] attribute DOMString bgColor; + // attribute DOMString background; }; - -HTMLBodyElement implements WindowEventHandlers; diff --git a/src/components/script/dom/webidls/HTMLButtonElement.webidl b/src/components/script/dom/webidls/HTMLButtonElement.webidl index 2b7e18d6312..6425ed3e119 100644 --- a/src/components/script/dom/webidls/HTMLButtonElement.webidl +++ b/src/components/script/dom/webidls/HTMLButtonElement.webidl @@ -1,43 +1,29 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-button-element - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element +// http://www.whatwg.org/html/#htmlbuttonelement interface HTMLButtonElement : HTMLElement { - [SetterThrows, Pure] - attribute boolean autofocus; - [SetterThrows, Pure] - attribute boolean disabled; - [Pure] - readonly attribute HTMLFormElement? form; - [SetterThrows, Pure] - attribute DOMString formAction; - [SetterThrows, Pure] - attribute DOMString formEnctype; - [SetterThrows, Pure] - attribute DOMString formMethod; - [SetterThrows, Pure] - attribute boolean formNoValidate; - [SetterThrows, Pure] - attribute DOMString formTarget; - [SetterThrows, Pure] - attribute DOMString name; - [SetterThrows, Pure] - attribute DOMString type; - [SetterThrows, Pure] - attribute DOMString value; + // attribute boolean autofocus; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + // attribute DOMString formAction; + // attribute DOMString formEnctype; + // attribute DOMString formMethod; + // attribute boolean formNoValidate; + // attribute DOMString formTarget; + // attribute DOMString name; + // attribute DOMString type; + // attribute DOMString value; + // attribute HTMLMenuElement? menu; - readonly attribute boolean willValidate; + //readonly attribute boolean willValidate; readonly attribute ValidityState validity; - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); + + //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLCanvasElement.webidl b/src/components/script/dom/webidls/HTMLCanvasElement.webidl index adddbb18436..3e5f2a6e3a6 100644 --- a/src/components/script/dom/webidls/HTMLCanvasElement.webidl +++ b/src/components/script/dom/webidls/HTMLCanvasElement.webidl @@ -1,18 +1,21 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-canvas-element - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// http://www.whatwg.org/html/#htmlcanvaselement +//typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; interface HTMLCanvasElement : HTMLElement { - [Pure, SetterThrows] - attribute unsigned long width; - [Pure, SetterThrows] - attribute unsigned long height; + // attribute unsigned long width; + // attribute unsigned long height; + + //RenderingContext? getContext(DOMString contextId, any... arguments); + //boolean probablySupportsContext(DOMString contextId, any... arguments); + + //void setContext(RenderingContext context); + //CanvasProxy transferControlToProxy(); + + //DOMString toDataURL(optional DOMString type, any... arguments); + //void toBlob(FileCallback? _callback, optional DOMString type, any... arguments); }; diff --git a/src/components/script/dom/webidls/HTMLCollection.webidl b/src/components/script/dom/webidls/HTMLCollection.webidl index 7389e776834..26227c54c4a 100644 --- a/src/components/script/dom/webidls/HTMLCollection.webidl +++ b/src/components/script/dom/webidls/HTMLCollection.webidl @@ -1,11 +1,7 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is: - * http://dom.spec.whatwg.org/#interface-htmlcollection - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ interface HTMLCollection { readonly attribute unsigned long length; diff --git a/src/components/script/dom/webidls/HTMLDListElement.webidl b/src/components/script/dom/webidls/HTMLDListElement.webidl index 08020a49700..3c0a8b9c63d 100644 --- a/src/components/script/dom/webidls/HTMLDListElement.webidl +++ b/src/components/script/dom/webidls/HTMLDListElement.webidl @@ -1,23 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element +// http://www.whatwg.org/html/#htmldlistelement interface HTMLDListElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLDListElement-partial partial interface HTMLDListElement { - [SetterThrows] - attribute boolean compact; + // attribute boolean compact; }; diff --git a/src/components/script/dom/webidls/HTMLDataElement.webidl b/src/components/script/dom/webidls/HTMLDataElement.webidl index 8a487122873..c6025423fb0 100644 --- a/src/components/script/dom/webidls/HTMLDataElement.webidl +++ b/src/components/script/dom/webidls/HTMLDataElement.webidl @@ -1,13 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-data-element - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmldataelement interface HTMLDataElement : HTMLElement { - [SetterThrows] - attribute DOMString value; + // attribute DOMString value; }; diff --git a/src/components/script/dom/webidls/HTMLDataListElement.webidl b/src/components/script/dom/webidls/HTMLDataListElement.webidl index 83b20cd2bc3..ae7055bb48c 100644 --- a/src/components/script/dom/webidls/HTMLDataListElement.webidl +++ b/src/components/script/dom/webidls/HTMLDataListElement.webidl @@ -1,16 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmldatalistelement interface HTMLDataListElement : HTMLElement { readonly attribute HTMLCollection options; }; diff --git a/src/components/script/dom/webidls/HTMLDirectoryElement.webidl b/src/components/script/dom/webidls/HTMLDirectoryElement.webidl index 9d5160af1bc..6015b4e8859 100644 --- a/src/components/script/dom/webidls/HTMLDirectoryElement.webidl +++ b/src/components/script/dom/webidls/HTMLDirectoryElement.webidl @@ -1,19 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#htmldirectoryelement interface HTMLDirectoryElement : HTMLElement { - [SetterThrows, Pure] - attribute boolean compact; + // attribute boolean compact; }; - diff --git a/src/components/script/dom/webidls/HTMLDivElement.webidl b/src/components/script/dom/webidls/HTMLDivElement.webidl index f50e2aad003..be451ce3e23 100644 --- a/src/components/script/dom/webidls/HTMLDivElement.webidl +++ b/src/components/script/dom/webidls/HTMLDivElement.webidl @@ -1,19 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -interface HTMLDivElement : HTMLElement {}; +// http://www.whatwg.org/html/#htmldivelement +interface HTMLDivElement : HTMLElement { + // also has obsolete members +}; +// http://www.whatwg.org/html/#HTMLDivElement-partial partial interface HTMLDivElement { - [SetterThrows] - attribute DOMString align; + // attribute DOMString align; }; diff --git a/src/components/script/dom/webidls/HTMLElement.webidl b/src/components/script/dom/webidls/HTMLElement.webidl index 20d83845d7b..ebaa83a19bf 100644 --- a/src/components/script/dom/webidls/HTMLElement.webidl +++ b/src/components/script/dom/webidls/HTMLElement.webidl @@ -1,58 +1,48 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ and - * http://dev.w3.org/csswg/cssom-view/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlelement interface HTMLElement : Element { // metadata attributes - attribute DOMString title; - attribute DOMString lang; - [SetterThrows, Pure] - attribute DOMString dir; - [Throws] - attribute any itemValue; + // attribute DOMString title; + // attribute DOMString lang; + // attribute boolean translate; + // attribute DOMString dir; + //readonly attribute DOMStringMap dataset; + + // microdata + // attribute boolean itemScope; + //[PutForwards=value] readonly attribute DOMSettableTokenList itemType; + // attribute DOMString itemId; + //[PutForwards=value] readonly attribute DOMSettableTokenList itemRef; + //[PutForwards=value] readonly attribute DOMSettableTokenList itemProp; + //readonly attribute HTMLPropertiesCollection properties; + // attribute any itemValue; // acts as DOMString on setting // user interaction - [SetterThrows, Pure] - attribute boolean hidden; - void click(); - [SetterThrows, Pure] - attribute long tabIndex; - [Throws] - void focus(); - [Throws] - void blur(); - [SetterThrows, Pure] - attribute DOMString accessKey; - [Pure] - readonly attribute DOMString accessKeyLabel; - [SetterThrows, Pure] - attribute boolean draggable; - [SetterThrows, Pure] - attribute DOMString contentEditable; - [Pure] - readonly attribute boolean isContentEditable; - [SetterThrows, Pure] - attribute boolean spellcheck; -}; + // attribute boolean hidden; + //void click(); + // attribute long tabIndex; + //void focus(); + //void blur(); + // attribute DOMString accessKey; + //readonly attribute DOMString accessKeyLabel; + // attribute boolean draggable; + //[PutForwards=value] readonly attribute DOMSettableTokenList dropzone; + // attribute DOMString contentEditable; + //readonly attribute boolean isContentEditable; + // attribute HTMLMenuElement? contextMenu; + // attribute boolean spellcheck; + //void forceSpellCheck(); -// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface -partial interface HTMLElement { - // CSSOM things are not [Pure] because they can flush - readonly attribute Element? offsetParent; - readonly attribute long offsetTop; - readonly attribute long offsetLeft; - readonly attribute long offsetWidth; - readonly attribute long offsetHeight; + // command API + //readonly attribute DOMString? commandType; + //readonly attribute DOMString? commandLabel; + //readonly attribute DOMString? commandIcon; + //readonly attribute boolean? commandHidden; + //readonly attribute boolean? commandDisabled; + //readonly attribute boolean? commandChecked; }; HTMLElement implements GlobalEventHandlers; -//HTMLElement implements OnErrorEventHandlerForNodes; diff --git a/src/components/script/dom/webidls/HTMLEmbedElement.webidl b/src/components/script/dom/webidls/HTMLEmbedElement.webidl index 0332af199f2..0b708113b55 100644 --- a/src/components/script/dom/webidls/HTMLEmbedElement.webidl +++ b/src/components/script/dom/webidls/HTMLEmbedElement.webidl @@ -1,38 +1,21 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element - * http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element +// http://www.whatwg.org/html/#htmlembedelement interface HTMLEmbedElement : HTMLElement { - [Pure, SetterThrows] - attribute DOMString src; - [Pure, SetterThrows] - attribute DOMString type; - [Pure, SetterThrows] - attribute DOMString width; - [Pure, SetterThrows] - attribute DOMString height; -}; + // attribute DOMString src; + // attribute DOMString type; + // attribute DOMString width; + // attribute DOMString height; + //legacycaller any (any... arguments); -// http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial -partial interface HTMLEmbedElement { - [Pure, SetterThrows] - attribute DOMString align; - [Pure, SetterThrows] - attribute DOMString name; + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLEmbedElement-partial partial interface HTMLEmbedElement { - // GetSVGDocument - Document? getSVGDocument(); + // attribute DOMString align; + // attribute DOMString name; }; diff --git a/src/components/script/dom/webidls/HTMLFieldSetElement.webidl b/src/components/script/dom/webidls/HTMLFieldSetElement.webidl index 16eee1f9323..f854cd23bab 100644 --- a/src/components/script/dom/webidls/HTMLFieldSetElement.webidl +++ b/src/components/script/dom/webidls/HTMLFieldSetElement.webidl @@ -1,32 +1,23 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-fieldset-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlfieldsetelement interface HTMLFieldSetElement : HTMLElement { - [SetterThrows] - attribute boolean disabled; - readonly attribute HTMLFormElement? form; - [SetterThrows] - attribute DOMString name; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + // attribute DOMString name; - readonly attribute DOMString type; + //readonly attribute DOMString type; + //readonly attribute HTMLFormControlsCollection elements; readonly attribute HTMLCollection elements; - readonly attribute boolean willValidate; + //readonly attribute boolean willValidate; readonly attribute ValidityState validity; - readonly attribute DOMString validationMessage; - - boolean checkValidity(); - - void setCustomValidity(DOMString error); + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); }; diff --git a/src/components/script/dom/webidls/HTMLFontElement.webidl b/src/components/script/dom/webidls/HTMLFontElement.webidl index 781dabb889f..4bdcb766745 100644 --- a/src/components/script/dom/webidls/HTMLFontElement.webidl +++ b/src/components/script/dom/webidls/HTMLFontElement.webidl @@ -1,18 +1,11 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlfontelement interface HTMLFontElement : HTMLElement { - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString color; - [SetterThrows] attribute DOMString face; - [SetterThrows] attribute DOMString size; + //[TreatNullAs=EmptyString] attribute DOMString color; + // attribute DOMString face; + // attribute DOMString size; }; diff --git a/src/components/script/dom/webidls/HTMLFormElement.webidl b/src/components/script/dom/webidls/HTMLFormElement.webidl index 088231cbb43..ffa36bc4d6b 100644 --- a/src/components/script/dom/webidls/HTMLFormElement.webidl +++ b/src/components/script/dom/webidls/HTMLFormElement.webidl @@ -1,46 +1,30 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#htmlformelement - * - * â“’ Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -[OverrideBuiltins] +// http://www.whatwg.org/html/#htmlformelement +//[OverrideBuiltins] interface HTMLFormElement : HTMLElement { - [Pure, SetterThrows] - attribute DOMString acceptCharset; - [Pure, SetterThrows] - attribute DOMString action; - [Pure, SetterThrows] - attribute DOMString autocomplete; - [Pure, SetterThrows] - attribute DOMString enctype; - [Pure, SetterThrows] - attribute DOMString encoding; - [Pure, SetterThrows] - attribute DOMString method; - [Pure, SetterThrows] - attribute DOMString name; - [Pure, SetterThrows] - attribute boolean noValidate; - [Pure, SetterThrows] - attribute DOMString target; + // attribute DOMString acceptCharset; + // attribute DOMString action; + // attribute DOMString autocomplete; + // attribute DOMString enctype; + // attribute DOMString encoding; + // attribute DOMString method; + // attribute DOMString name; + // attribute boolean noValidate; + // attribute DOMString target; - [Constant] - readonly attribute HTMLCollection elements; - [Pure] - readonly attribute long length; + //readonly attribute HTMLFormControlsCollection elements; + //readonly attribute long length; + //getter Element (unsigned long index); + //getter (RadioNodeList or Element) (DOMString name); - getter Element (unsigned long index); + //void submit(); + //void reset(); + //boolean checkValidity(); + //boolean reportValidity(); - [Throws] - void submit(); - void reset(); - boolean checkValidity(); + //void requestAutocomplete(); }; diff --git a/src/components/script/dom/webidls/HTMLFrameElement.webidl b/src/components/script/dom/webidls/HTMLFrameElement.webidl index f1c78606b02..effa8d13e99 100644 --- a/src/components/script/dom/webidls/HTMLFrameElement.webidl +++ b/src/components/script/dom/webidls/HTMLFrameElement.webidl @@ -1,32 +1,19 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement +// http://www.whatwg.org/html/#htmlframeelement interface HTMLFrameElement : HTMLElement { - [SetterThrows] - attribute DOMString name; - [SetterThrows] - attribute DOMString scrolling; - [SetterThrows] - attribute DOMString src; - [SetterThrows] - attribute DOMString frameBorder; - [SetterThrows] - attribute DOMString longDesc; - [SetterThrows] - attribute boolean noResize; - readonly attribute Document? contentDocument; - readonly attribute Window? contentWindow; + // attribute DOMString name; + // attribute DOMString scrolling; + // attribute DOMString src; + // attribute DOMString frameBorder; + // attribute DOMString longDesc; + // attribute boolean noResize; + //readonly attribute Document? contentDocument; + //readonly attribute WindowProxy? contentWindow; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth; + //[TreatNullAs=EmptyString] attribute DOMString marginHeight; + //[TreatNullAs=EmptyString] attribute DOMString marginWidth; }; diff --git a/src/components/script/dom/webidls/HTMLFrameSetElement.webidl b/src/components/script/dom/webidls/HTMLFrameSetElement.webidl index 6cc4d98cea1..50245baa049 100644 --- a/src/components/script/dom/webidls/HTMLFrameSetElement.webidl +++ b/src/components/script/dom/webidls/HTMLFrameSetElement.webidl @@ -1,21 +1,11 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlframesetelement interface HTMLFrameSetElement : HTMLElement { - [SetterThrows] - attribute DOMString cols; - [SetterThrows] - attribute DOMString rows; + // attribute DOMString cols; + // attribute DOMString rows; }; - //HTMLFrameSetElement implements WindowEventHandlers; diff --git a/src/components/script/dom/webidls/HTMLHRElement.webidl b/src/components/script/dom/webidls/HTMLHRElement.webidl index 0495e43b314..482e1bca516 100644 --- a/src/components/script/dom/webidls/HTMLHRElement.webidl +++ b/src/components/script/dom/webidls/HTMLHRElement.webidl @@ -1,30 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element +// http://www.whatwg.org/html/#htmlhrelement interface HTMLHRElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLHRElement-partial partial interface HTMLHRElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString color; - [SetterThrows] - attribute boolean noShade; - [SetterThrows] - attribute DOMString size; - [SetterThrows] - attribute DOMString width; + // attribute DOMString align; + // attribute DOMString color; + // attribute boolean noShade; + // attribute DOMString size; + // attribute DOMString width; }; diff --git a/src/components/script/dom/webidls/HTMLHeadElement.webidl b/src/components/script/dom/webidls/HTMLHeadElement.webidl index ca6bc3819e1..b7a53d2052b 100644 --- a/src/components/script/dom/webidls/HTMLHeadElement.webidl +++ b/src/components/script/dom/webidls/HTMLHeadElement.webidl @@ -1,15 +1,7 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-head-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-head-element +// http://www.whatwg.org/html/#htmlheadelement interface HTMLHeadElement : HTMLElement {}; diff --git a/src/components/script/dom/webidls/HTMLHeadingElement.webidl b/src/components/script/dom/webidls/HTMLHeadingElement.webidl index 37e7396dfdd..21a6060c335 100644 --- a/src/components/script/dom/webidls/HTMLHeadingElement.webidl +++ b/src/components/script/dom/webidls/HTMLHeadingElement.webidl @@ -1,21 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements +// http://www.whatwg.org/html/#htmlheadingelement interface HTMLHeadingElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLHeadingElement-partial partial interface HTMLHeadingElement { - attribute DOMString align; + // attribute DOMString align; }; diff --git a/src/components/script/dom/webidls/HTMLHtmlElement.webidl b/src/components/script/dom/webidls/HTMLHtmlElement.webidl index b06de776192..f48fc6dafac 100644 --- a/src/components/script/dom/webidls/HTMLHtmlElement.webidl +++ b/src/components/script/dom/webidls/HTMLHtmlElement.webidl @@ -1,22 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-html-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-html-element -interface HTMLHtmlElement : HTMLElement {}; +// http://www.whatwg.org/html/#htmlhtmlelement +interface HTMLHtmlElement : HTMLElement { + // also has obsolete members +}; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLHtmlElement-partial partial interface HTMLHtmlElement { - [SetterThrows, Pure] - attribute DOMString version; + // attribute DOMString version; }; diff --git a/src/components/script/dom/webidls/HTMLIFrameElement.webidl b/src/components/script/dom/webidls/HTMLIFrameElement.webidl index 09d81a27102..026de5a0e6e 100644 --- a/src/components/script/dom/webidls/HTMLIFrameElement.webidl +++ b/src/components/script/dom/webidls/HTMLIFrameElement.webidl @@ -1,51 +1,33 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-iframe-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmliframeelement interface HTMLIFrameElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString src; - [SetterThrows, Pure] - attribute DOMString srcdoc; - [SetterThrows, Pure] - attribute DOMString name; - // We're implementing sandbox as a string for now, see bug 845057. - attribute DOMString sandbox; - [SetterThrows, Pure] - attribute boolean allowFullscreen; - [SetterThrows, Pure] - attribute DOMString width; - [SetterThrows, Pure] - attribute DOMString height; - readonly attribute Document? contentDocument; + // attribute DOMString src; + // attribute DOMString srcdoc; + // attribute DOMString name; + //[PutForwards=value] readonly attribute DOMSettableTokenList sandbox; + attribute DOMString sandbox; + // attribute boolean seamless; + // attribute boolean allowFullscreen; + // attribute DOMString width; + // attribute DOMString height; + //readonly attribute Document? contentDocument; + //readonly attribute WindowProxy? contentWindow; readonly attribute Window? contentWindow; -}; - -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis -partial interface HTMLIFrameElement { - [SetterThrows, Pure] - attribute DOMString align; - [SetterThrows, Pure] - attribute DOMString scrolling; - [SetterThrows, Pure] - attribute DOMString frameBorder; - [SetterThrows, Pure] - attribute DOMString longDesc; - [TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginHeight; - [TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginWidth; + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLIFrameElement-partial partial interface HTMLIFrameElement { - // GetSVGDocument - Document? getSVGDocument(); + // attribute DOMString align; + // attribute DOMString scrolling; + // attribute DOMString frameBorder; + // attribute DOMString longDesc; + + //[TreatNullAs=EmptyString] attribute DOMString marginHeight; + //[TreatNullAs=EmptyString] attribute DOMString marginWidth; }; diff --git a/src/components/script/dom/webidls/HTMLImageElement.webidl b/src/components/script/dom/webidls/HTMLImageElement.webidl index 482f7e69c1d..08e71ff8ee7 100644 --- a/src/components/script/dom/webidls/HTMLImageElement.webidl +++ b/src/components/script/dom/webidls/HTMLImageElement.webidl @@ -1,34 +1,30 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#htmlimageelement - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] +// http://www.whatwg.org/html/#htmlimageelement +//[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] interface HTMLImageElement : HTMLElement { attribute DOMString alt; attribute DOMString src; - [SetterThrows] - attribute DOMString crossOrigin; + // attribute DOMString srcset; + // attribute DOMString crossOrigin; attribute DOMString useMap; attribute boolean isMap; attribute unsigned long width; attribute unsigned long height; - readonly attribute unsigned long naturalWidth; - readonly attribute unsigned long naturalHeight; - readonly attribute boolean complete; + //readonly attribute unsigned long naturalWidth; + //readonly attribute unsigned long naturalHeight; + //readonly attribute boolean complete; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLImageElement-partial partial interface HTMLImageElement { attribute DOMString name; + // attribute DOMString lowsrc; attribute DOMString align; attribute unsigned long hspace; attribute unsigned long vspace; diff --git a/src/components/script/dom/webidls/HTMLInputElement.webidl b/src/components/script/dom/webidls/HTMLInputElement.webidl index 61198a8ea22..256cc814cff 100644 --- a/src/components/script/dom/webidls/HTMLInputElement.webidl +++ b/src/components/script/dom/webidls/HTMLInputElement.webidl @@ -1,102 +1,76 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-input-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlinputelement interface HTMLInputElement : HTMLElement { - [Pure, SetterThrows] - attribute DOMString accept; - [Pure, SetterThrows] - attribute DOMString alt; - [Pure, SetterThrows] - attribute DOMString autocomplete; - [Pure, SetterThrows] - attribute boolean autofocus; - [Pure, SetterThrows] - attribute boolean defaultChecked; - [Pure] - attribute boolean checked; - [Pure, SetterThrows] - attribute boolean disabled; - [Pure, SetterThrows] - attribute DOMString formAction; - [Pure, SetterThrows] - attribute DOMString formEnctype; - [Pure, SetterThrows] - attribute DOMString formMethod; - [Pure, SetterThrows] - attribute boolean formNoValidate; - [Pure, SetterThrows] - attribute DOMString formTarget; - [Pure, SetterThrows] - attribute unsigned long height; - [Pure] - attribute boolean indeterminate; - [Pure, SetterThrows] - attribute DOMString inputMode; - [Pure, SetterThrows] - attribute DOMString max; - [Pure, SetterThrows] - attribute long maxLength; - [Pure, SetterThrows] - attribute DOMString min; - [Pure, SetterThrows] - attribute boolean multiple; - [Pure, SetterThrows] - attribute DOMString name; - [Pure, SetterThrows] - attribute DOMString pattern; - [Pure, SetterThrows] - attribute DOMString placeholder; - [Pure, SetterThrows] - attribute boolean readOnly; - [Pure, SetterThrows] - attribute boolean required; - [Pure, SetterThrows] - attribute unsigned long size; - [Pure, SetterThrows] - attribute DOMString src; - [Pure, SetterThrows] - attribute DOMString step; - [Pure, SetterThrows] - attribute DOMString type; - [Pure, SetterThrows] - attribute DOMString defaultValue; - [Pure, TreatNullAs=EmptyString, SetterThrows] - attribute DOMString value; - attribute unsigned long width; + // attribute DOMString accept; + // attribute DOMString alt; + // attribute DOMString autocomplete; + // attribute boolean autofocus; + // attribute boolean defaultChecked; + // attribute boolean checked; + // attribute DOMString dirName; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + //readonly attribute FileList? files; + // attribute DOMString formAction; + // attribute DOMString formEnctype; + // attribute DOMString formMethod; + // attribute boolean formNoValidate; + // attribute DOMString formTarget; + // attribute unsigned long height; + // attribute boolean indeterminate; + // attribute DOMString inputMode; + //readonly attribute HTMLElement? list; + // attribute DOMString max; + // attribute long maxLength; + // attribute DOMString min; + // attribute long minLength; + // attribute boolean multiple; + // attribute DOMString name; + // attribute DOMString pattern; + // attribute DOMString placeholder; + // attribute boolean readOnly; + // attribute boolean required; + // attribute unsigned long size; + // attribute DOMString src; + // attribute DOMString step; + // attribute DOMString type; + // attribute DOMString defaultValue; + //[TreatNullAs=EmptyString] attribute DOMString value; + // attribute Date? valueAsDate; + // attribute unrestricted double valueAsNumber; + // attribute double valueLow; + // attribute double valueHigh; + // attribute unsigned long width; - [Pure] - readonly attribute boolean willValidate; - [GetterThrows] - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); + //void stepUp(optional long n = 1); + //void stepDown(optional long n = 1); - void select(); + //readonly attribute boolean willValidate; + //readonly attribute ValidityState validity; + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); + + //readonly attribute NodeList labels; + + //void select(); + // attribute unsigned long selectionStart; + // attribute unsigned long selectionEnd; + // attribute DOMString selectionDirection; + //void setRangeText(DOMString replacement); + //void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve"); + //void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction); - [Throws] - // TODO: unsigned vs signed - attribute long selectionStart; - [Throws] - attribute long selectionEnd; - [Throws] - attribute DOMString selectionDirection; // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLInputElement-partial partial interface HTMLInputElement { - [Pure, SetterThrows] - attribute DOMString align; - [Pure, SetterThrows] - attribute DOMString useMap; + // attribute DOMString align; + // attribute DOMString useMap; }; diff --git a/src/components/script/dom/webidls/HTMLLIElement.webidl b/src/components/script/dom/webidls/HTMLLIElement.webidl index c20e00846b3..87d8b78b175 100644 --- a/src/components/script/dom/webidls/HTMLLIElement.webidl +++ b/src/components/script/dom/webidls/HTMLLIElement.webidl @@ -1,25 +1,16 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-li-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element +// http://www.whatwg.org/html/#htmllielement interface HTMLLIElement : HTMLElement { - [SetterThrows, Pure] - attribute long value; + // attribute long value; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLLIElement-partial partial interface HTMLLIElement { - [SetterThrows, Pure] - attribute DOMString type; + // attribute DOMString type; }; diff --git a/src/components/script/dom/webidls/HTMLLabelElement.webidl b/src/components/script/dom/webidls/HTMLLabelElement.webidl index b78947216d3..c3ff7fb50cd 100644 --- a/src/components/script/dom/webidls/HTMLLabelElement.webidl +++ b/src/components/script/dom/webidls/HTMLLabelElement.webidl @@ -1,18 +1,11 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ - -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmllabelelement interface HTMLLabelElement : HTMLElement { - attribute DOMString htmlFor; + //readonly attribute HTMLFormElement? form; + // attribute DOMString htmlFor; + //readonly attribute HTMLElement? control; }; diff --git a/src/components/script/dom/webidls/HTMLLegendElement.webidl b/src/components/script/dom/webidls/HTMLLegendElement.webidl index 4bea26a7831..3622cd27672 100644 --- a/src/components/script/dom/webidls/HTMLLegendElement.webidl +++ b/src/components/script/dom/webidls/HTMLLegendElement.webidl @@ -1,23 +1,16 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element +// http://www.whatwg.org/html/#htmllegendelement interface HTMLLegendElement : HTMLElement { + //readonly attribute HTMLFormElement? form; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLLegendElement-partial partial interface HTMLLegendElement { - [SetterThrows] - attribute DOMString align; + // attribute DOMString align; }; diff --git a/src/components/script/dom/webidls/HTMLLinkElement.webidl b/src/components/script/dom/webidls/HTMLLinkElement.webidl index 213e70856f3..3757bada2b3 100644 --- a/src/components/script/dom/webidls/HTMLLinkElement.webidl +++ b/src/components/script/dom/webidls/HTMLLinkElement.webidl @@ -1,43 +1,26 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-link-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-link-element +// http://www.whatwg.org/html/#htmllinkelement interface HTMLLinkElement : HTMLElement { - [Pure] - attribute boolean disabled; - [SetterThrows, Pure] - attribute DOMString href; - [SetterThrows, Pure] - attribute DOMString crossOrigin; - [SetterThrows, Pure] - attribute DOMString rel; - [SetterThrows, Pure] - attribute DOMString media; - [SetterThrows, Pure] - attribute DOMString hreflang; - [SetterThrows, Pure] - attribute DOMString type; -}; + // attribute DOMString href; + // attribute DOMString crossOrigin; + // attribute DOMString rel; + //readonly attribute DOMTokenList relList; + // attribute DOMString media; + // attribute DOMString hreflang; + // attribute DOMString type; + //[PutForwards=value] readonly attribute DOMSettableTokenList sizes; -// TODO + // also has obsolete members +}; //HTMLLinkElement implements LinkStyle; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLLinkElement-partial partial interface HTMLLinkElement { - [SetterThrows, Pure] - attribute DOMString charset; - [SetterThrows, Pure] - attribute DOMString rev; - [SetterThrows, Pure] - attribute DOMString target; + // attribute DOMString charset; + // attribute DOMString rev; + // attribute DOMString target; }; diff --git a/src/components/script/dom/webidls/HTMLMainElement.webidl b/src/components/script/dom/webidls/HTMLMainElement.webidl index 05a5531d62b..357661de6de 100644 --- a/src/components/script/dom/webidls/HTMLMainElement.webidl +++ b/src/components/script/dom/webidls/HTMLMainElement.webidl @@ -1,14 +1,7 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -interface HTMLMainElement : HTMLElement {};
\ No newline at end of file +// Proprietary. +interface HTMLMainElement : HTMLElement {}; diff --git a/src/components/script/dom/webidls/HTMLMapElement.webidl b/src/components/script/dom/webidls/HTMLMapElement.webidl index bab62839739..c5eb1cea3e4 100644 --- a/src/components/script/dom/webidls/HTMLMapElement.webidl +++ b/src/components/script/dom/webidls/HTMLMapElement.webidl @@ -1,19 +1,11 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-map-element - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-map-element +// http://www.whatwg.org/html/#htmlmapelement interface HTMLMapElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString name; - [Constant] - readonly attribute HTMLCollection areas; + // attribute DOMString name; + //readonly attribute HTMLCollection areas; + //readonly attribute HTMLCollection images; }; diff --git a/src/components/script/dom/webidls/HTMLMediaElement.webidl b/src/components/script/dom/webidls/HTMLMediaElement.webidl index a835d302600..53f5770f54f 100644 --- a/src/components/script/dom/webidls/HTMLMediaElement.webidl +++ b/src/components/script/dom/webidls/HTMLMediaElement.webidl @@ -1,67 +1,67 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#media-elements - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlmediaelement +//enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" }; interface HTMLMediaElement : HTMLElement { - // network state - [SetterThrows] - attribute DOMString src; - readonly attribute DOMString currentSrc; - [SetterThrows] - attribute DOMString crossOrigin; - const unsigned short NETWORK_EMPTY = 0; - const unsigned short NETWORK_IDLE = 1; - const unsigned short NETWORK_LOADING = 2; - const unsigned short NETWORK_NO_SOURCE = 3; - [SetterThrows] - attribute DOMString preload; - void load(); - DOMString canPlayType(DOMString type); + // error state + //readonly attribute MediaError? error; + + // network state + // attribute DOMString src; + //readonly attribute DOMString currentSrc; + // attribute DOMString crossOrigin; + //const unsigned short NETWORK_EMPTY = 0; + //const unsigned short NETWORK_IDLE = 1; + //const unsigned short NETWORK_LOADING = 2; + //const unsigned short NETWORK_NO_SOURCE = 3; + //readonly attribute unsigned short networkState; + // attribute DOMString preload; + //readonly attribute TimeRanges buffered; + //void load(); + //CanPlayTypeResult canPlayType(DOMString type); // ready state - const unsigned short HAVE_NOTHING = 0; - const unsigned short HAVE_METADATA = 1; - const unsigned short HAVE_CURRENT_DATA = 2; - const unsigned short HAVE_FUTURE_DATA = 3; - const unsigned short HAVE_ENOUGH_DATA = 4; - readonly attribute unsigned short readyState; - readonly attribute boolean seeking; + //const unsigned short HAVE_NOTHING = 0; + //const unsigned short HAVE_METADATA = 1; + //const unsigned short HAVE_CURRENT_DATA = 2; + //const unsigned short HAVE_FUTURE_DATA = 3; + //const unsigned short HAVE_ENOUGH_DATA = 4; + //readonly attribute unsigned short readyState; + //readonly attribute boolean seeking; // playback state - [SetterThrows] - attribute double currentTime; - readonly attribute boolean paused; - [SetterThrows] - attribute double defaultPlaybackRate; - [SetterThrows] - attribute double playbackRate; - readonly attribute boolean ended; - [SetterThrows] - attribute boolean autoplay; - [SetterThrows] - attribute boolean loop; - [Throws] - void play(); - [Throws] - void pause(); + // attribute double currentTime; + //void fastSeek(double time); + //readonly attribute unrestricted double duration; + //Date getStartDate(); + //readonly attribute boolean paused; + // attribute double defaultPlaybackRate; + // attribute double playbackRate; + //readonly attribute TimeRanges played; + //readonly attribute TimeRanges seekable; + //readonly attribute boolean ended; + // attribute boolean autoplay; + // attribute boolean loop; + //void play(); + //void pause(); + + // media controller + // attribute DOMString mediaGroup; + // attribute MediaController? controller; // controls - [SetterThrows] - attribute boolean controls; - [SetterThrows] - attribute double volume; - attribute boolean muted; - [SetterThrows] - attribute boolean defaultMuted; + // attribute boolean controls; + // attribute double volume; + // attribute boolean muted; + // attribute boolean defaultMuted; + // tracks + //readonly attribute AudioTrackList audioTracks; + //readonly attribute VideoTrackList videoTracks; + //readonly attribute TextTrackList textTracks; + //TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = ""); }; diff --git a/src/components/script/dom/webidls/HTMLMetaElement.webidl b/src/components/script/dom/webidls/HTMLMetaElement.webidl index 5b7b0f92c24..97f89b35576 100644 --- a/src/components/script/dom/webidls/HTMLMetaElement.webidl +++ b/src/components/script/dom/webidls/HTMLMetaElement.webidl @@ -1,28 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element +// http://www.whatwg.org/html/#htmlmetaelement interface HTMLMetaElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString name; - [SetterThrows, Pure] - attribute DOMString httpEquiv; - [SetterThrows, Pure] - attribute DOMString content; + // attribute DOMString name; + // attribute DOMString httpEquiv; + // attribute DOMString content; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLMetaElement-partial partial interface HTMLMetaElement { - [SetterThrows, Pure] - attribute DOMString scheme; + // attribute DOMString scheme; }; diff --git a/src/components/script/dom/webidls/HTMLMeterElement.webidl b/src/components/script/dom/webidls/HTMLMeterElement.webidl index ee88591f1a6..96c40ba6114 100644 --- a/src/components/script/dom/webidls/HTMLMeterElement.webidl +++ b/src/components/script/dom/webidls/HTMLMeterElement.webidl @@ -1,28 +1,15 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element +// http://www.whatwg.org/html/#htmlmeterelement interface HTMLMeterElement : HTMLElement { - [SetterThrows] - attribute double value; - [SetterThrows] - attribute double min; - [SetterThrows] - attribute double max; - [SetterThrows] - attribute double low; - [SetterThrows] - attribute double high; - [SetterThrows] - attribute double optimum; + // attribute double value; + // attribute double min; + // attribute double max; + // attribute double low; + // attribute double high; + // attribute double optimum; + //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLModElement.webidl b/src/components/script/dom/webidls/HTMLModElement.webidl index 45086ccebbf..3f8f0e62638 100644 --- a/src/components/script/dom/webidls/HTMLModElement.webidl +++ b/src/components/script/dom/webidls/HTMLModElement.webidl @@ -1,19 +1,10 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements +// http://www.whatwg.org/html/#htmlmodelement interface HTMLModElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString cite; - [SetterThrows, Pure] - attribute DOMString dateTime; + // attribute DOMString cite; + // attribute DOMString dateTime; }; diff --git a/src/components/script/dom/webidls/HTMLOListElement.webidl b/src/components/script/dom/webidls/HTMLOListElement.webidl index f41abf3eaa3..9f9f654acc5 100644 --- a/src/components/script/dom/webidls/HTMLOListElement.webidl +++ b/src/components/script/dom/webidls/HTMLOListElement.webidl @@ -1,29 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-ol-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-ol-element +// http://www.whatwg.org/html/#htmlolistelement interface HTMLOListElement : HTMLElement { - [SetterThrows] - attribute boolean reversed; - [SetterThrows] - attribute long start; - [SetterThrows] - attribute DOMString type; + // attribute boolean reversed; + // attribute long start; + // attribute DOMString type; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLOListElement-partial partial interface HTMLOListElement { - [SetterThrows] - attribute boolean compact; + // attribute boolean compact; }; diff --git a/src/components/script/dom/webidls/HTMLObjectElement.webidl b/src/components/script/dom/webidls/HTMLObjectElement.webidl index 97b25b9cfc3..56fc290e546 100644 --- a/src/components/script/dom/webidls/HTMLObjectElement.webidl +++ b/src/components/script/dom/webidls/HTMLObjectElement.webidl @@ -1,72 +1,44 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-object-element - * http://www.whatwg.org/specs/web-apps/current-work/#HTMLObjectElement-partial - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-object-element -[NeedNewResolve] +// http://www.whatwg.org/html/#htmlobjectelement interface HTMLObjectElement : HTMLElement { - [Pure, SetterThrows] - attribute DOMString data; - [Pure, SetterThrows] - attribute DOMString type; - [Pure, SetterThrows] - attribute DOMString name; - [Pure, SetterThrows] - attribute DOMString useMap; - [Pure] - readonly attribute HTMLFormElement? form; - [Pure, SetterThrows] - attribute DOMString width; - [Pure, SetterThrows] - attribute DOMString height; - // Not pure: can trigger about:blank instantiation - readonly attribute Document? contentDocument; - // Not pure: can trigger about:blank instantiation - readonly attribute Window? contentWindow; + // attribute DOMString data; + // attribute DOMString type; + // attribute boolean typeMustMatch; + // attribute DOMString name; + // attribute DOMString useMap; + //readonly attribute HTMLFormElement? form; + // attribute DOMString width; + // attribute DOMString height; + //readonly attribute Document? contentDocument; + //readonly attribute WindowProxy? contentWindow; - readonly attribute boolean willValidate; + //readonly attribute boolean willValidate; readonly attribute ValidityState validity; - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); -}; + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); -// http://www.whatwg.org/specs/web-apps/current-work/#HTMLObjectElement-partial -partial interface HTMLObjectElement { - [Pure, SetterThrows] - attribute DOMString align; - [Pure, SetterThrows] - attribute DOMString archive; - [Pure, SetterThrows] - attribute DOMString code; - [Pure, SetterThrows] - attribute boolean declare; - [Pure, SetterThrows] - attribute unsigned long hspace; - [Pure, SetterThrows] - attribute DOMString standby; - [Pure, SetterThrows] - attribute unsigned long vspace; - [Pure, SetterThrows] - attribute DOMString codeBase; - [Pure, SetterThrows] - attribute DOMString codeType; + //legacycaller any (any... arguments); - [TreatNullAs=EmptyString, Pure, SetterThrows] - attribute DOMString border; + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLObjectElement-partial partial interface HTMLObjectElement { - // GetSVGDocument - Document? getSVGDocument(); + // attribute DOMString align; + // attribute DOMString archive; + // attribute DOMString code; + // attribute boolean declare; + // attribute unsigned long hspace; + // attribute DOMString standby; + // attribute unsigned long vspace; + // attribute DOMString codeBase; + // attribute DOMString codeType; + + //[TreatNullAs=EmptyString] attribute DOMString border; }; diff --git a/src/components/script/dom/webidls/HTMLOptGroupElement.webidl b/src/components/script/dom/webidls/HTMLOptGroupElement.webidl index a23aee30d1d..e5831d1df78 100644 --- a/src/components/script/dom/webidls/HTMLOptGroupElement.webidl +++ b/src/components/script/dom/webidls/HTMLOptGroupElement.webidl @@ -1,19 +1,10 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-optgroup-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmloptgroupelement interface HTMLOptGroupElement : HTMLElement { - [SetterThrows] - attribute boolean disabled; - [SetterThrows] - attribute DOMString label; + // attribute boolean disabled; + // attribute DOMString label; }; diff --git a/src/components/script/dom/webidls/HTMLOptionElement.webidl b/src/components/script/dom/webidls/HTMLOptionElement.webidl index c80bedeef04..2cb5ab76d64 100644 --- a/src/components/script/dom/webidls/HTMLOptionElement.webidl +++ b/src/components/script/dom/webidls/HTMLOptionElement.webidl @@ -1,31 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-option-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -[NamedConstructor=Option(optional DOMString text, optional DOMString value, optional boolean defaultSelected, optional boolean selected)] +// http://www.whatwg.org/html/#htmloptionelement +//[NamedConstructor=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)] interface HTMLOptionElement : HTMLElement { - [SetterThrows] - attribute boolean disabled; - readonly attribute HTMLFormElement? form; - [SetterThrows] - attribute DOMString label; - [SetterThrows] - attribute boolean defaultSelected; - [SetterThrows] - attribute boolean selected; - [SetterThrows] - attribute DOMString value; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + // attribute DOMString label; + // attribute boolean defaultSelected; + // attribute boolean selected; + // attribute DOMString value; - [SetterThrows] - attribute DOMString text; - readonly attribute long index; + // attribute DOMString text; + //readonly attribute long index; }; diff --git a/src/components/script/dom/webidls/HTMLOutputElement.webidl b/src/components/script/dom/webidls/HTMLOutputElement.webidl index a42412bdd1c..d0d23d87d42 100644 --- a/src/components/script/dom/webidls/HTMLOutputElement.webidl +++ b/src/components/script/dom/webidls/HTMLOutputElement.webidl @@ -1,32 +1,24 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-output-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-output-element +// http://www.whatwg.org/html/#htmloutputelement interface HTMLOutputElement : HTMLElement { - readonly attribute HTMLFormElement? form; - [SetterThrows, Pure] - attribute DOMString name; + //[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor; + //readonly attribute HTMLFormElement? form; + // attribute DOMString name; - [Constant] - readonly attribute DOMString type; - [SetterThrows, Pure] - attribute DOMString defaultValue; - [SetterThrows, Pure] - attribute DOMString value; + //readonly attribute DOMString type; + // attribute DOMString defaultValue; + // attribute DOMString value; - readonly attribute boolean willValidate; + //readonly attribute boolean willValidate; readonly attribute ValidityState validity; - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); + + //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLParagraphElement.webidl b/src/components/script/dom/webidls/HTMLParagraphElement.webidl index 2a626d25750..86cae7cbe87 100644 --- a/src/components/script/dom/webidls/HTMLParagraphElement.webidl +++ b/src/components/script/dom/webidls/HTMLParagraphElement.webidl @@ -1,22 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-p-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-p-element +// http://www.whatwg.org/html/#htmlparagraphelement interface HTMLParagraphElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLParagraphElement-partial partial interface HTMLParagraphElement { - [SetterThrows] - attribute DOMString align; + // attribute DOMString align; }; diff --git a/src/components/script/dom/webidls/HTMLParamElement.webidl b/src/components/script/dom/webidls/HTMLParamElement.webidl index e2c7e8d7fab..afcb6ec1d9b 100644 --- a/src/components/script/dom/webidls/HTMLParamElement.webidl +++ b/src/components/script/dom/webidls/HTMLParamElement.webidl @@ -1,29 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-param-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-param-element +// http://www.whatwg.org/html/#htmlparamelement interface HTMLParamElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString name; - [SetterThrows, Pure] - attribute DOMString value; + // attribute DOMString name; + // attribute DOMString value; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLParamElement-partial partial interface HTMLParamElement { - [SetterThrows, Pure] - attribute DOMString type; - [SetterThrows, Pure] - attribute DOMString valueType; + // attribute DOMString type; + // attribute DOMString valueType; }; diff --git a/src/components/script/dom/webidls/HTMLPreElement.webidl b/src/components/script/dom/webidls/HTMLPreElement.webidl index 587b5308f46..f0498ebd32c 100644 --- a/src/components/script/dom/webidls/HTMLPreElement.webidl +++ b/src/components/script/dom/webidls/HTMLPreElement.webidl @@ -1,24 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-pre-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ - -// http://www.whatwg.org/specs/web-apps/current-work/#the-pre-element +// http://www.whatwg.org/html/#htmlpreelement interface HTMLPreElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLPreElement-partial partial interface HTMLPreElement { - [SetterThrows] - attribute long width; + // attribute long width; }; diff --git a/src/components/script/dom/webidls/HTMLProgressElement.webidl b/src/components/script/dom/webidls/HTMLProgressElement.webidl index fe16df7001c..53a95297afb 100644 --- a/src/components/script/dom/webidls/HTMLProgressElement.webidl +++ b/src/components/script/dom/webidls/HTMLProgressElement.webidl @@ -1,20 +1,12 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-progress-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlprogresselement interface HTMLProgressElement : HTMLElement { - [SetterThrows] - attribute double value; - [SetterThrows] - attribute double max; - readonly attribute double position; + // attribute double value; + // attribute double max; + //readonly attribute double position; + //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLQuoteElement.webidl b/src/components/script/dom/webidls/HTMLQuoteElement.webidl index a266dd353a1..a7b1ae41276 100644 --- a/src/components/script/dom/webidls/HTMLQuoteElement.webidl +++ b/src/components/script/dom/webidls/HTMLQuoteElement.webidl @@ -1,19 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-blockquote-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-blockquote-element +// http://www.whatwg.org/html/#htmlquoteelement interface HTMLQuoteElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString cite; + // attribute DOMString cite; }; - diff --git a/src/components/script/dom/webidls/HTMLScriptElement.webidl b/src/components/script/dom/webidls/HTMLScriptElement.webidl index 979e38ca3ad..bfa4ddf1d6c 100644 --- a/src/components/script/dom/webidls/HTMLScriptElement.webidl +++ b/src/components/script/dom/webidls/HTMLScriptElement.webidl @@ -1,35 +1,24 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-script-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlscriptelement interface HTMLScriptElement : HTMLElement { - [SetterThrows] - attribute DOMString src; - [SetterThrows] - attribute DOMString type; - [SetterThrows] - attribute DOMString charset; - [SetterThrows] - attribute boolean async; - [SetterThrows] - attribute boolean defer; - [SetterThrows] - attribute DOMString crossOrigin; - [SetterThrows] - attribute DOMString text; + // attribute DOMString src; + readonly attribute DOMString src; + // attribute DOMString type; + // attribute DOMString charset; + // attribute boolean async; + // attribute boolean defer; + // attribute DOMString crossOrigin; + // attribute DOMString text; + + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLScriptElement-partial partial interface HTMLScriptElement { - [SetterThrows] - attribute DOMString event; - [SetterThrows] - attribute DOMString htmlFor; + // attribute DOMString event; + // attribute DOMString htmlFor; }; - diff --git a/src/components/script/dom/webidls/HTMLSelectElement.webidl b/src/components/script/dom/webidls/HTMLSelectElement.webidl index 6e009e45de7..972a8950ec0 100644 --- a/src/components/script/dom/webidls/HTMLSelectElement.webidl +++ b/src/components/script/dom/webidls/HTMLSelectElement.webidl @@ -1,52 +1,39 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/html/#the-select-element - */ + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlselectelement interface HTMLSelectElement : HTMLElement { - [SetterThrows, Pure] - attribute boolean autofocus; - [SetterThrows, Pure] - attribute boolean disabled; - [Pure] - readonly attribute HTMLFormElement? form; - [SetterThrows, Pure] - attribute boolean multiple; - [SetterThrows, Pure] - attribute DOMString name; - [SetterThrows, Pure] - attribute boolean required; - [SetterThrows, Pure] - attribute unsigned long size; + // attribute boolean autofocus; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + // attribute boolean multiple; + // attribute DOMString name; + // attribute boolean required; + // attribute unsigned long size; - [Pure] - readonly attribute DOMString type; + //readonly attribute DOMString type; - [SetterThrows, Pure] - attribute unsigned long length; - getter Element? item(unsigned long index); - HTMLOptionElement? namedItem(DOMString name); - [Throws] - void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null); - void remove(long index); - [Throws] - setter creator void (unsigned long index, HTMLOptionElement? option); + //readonly attribute HTMLOptionsCollection options; + // attribute unsigned long length; + //getter Element? item(unsigned long index); + //HTMLOptionElement? namedItem(DOMString name); + //void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null); + //void remove(); // ChildNode overload + //void remove(long index); + //setter creator void (unsigned long index, HTMLOptionElement? option); - [SetterThrows, Pure] - attribute long selectedIndex; - [Pure] - attribute DOMString value; + //readonly attribute HTMLCollection selectedOptions; + // attribute long selectedIndex; + // attribute DOMString value; - readonly attribute boolean willValidate; + //readonly attribute boolean willValidate; readonly attribute ValidityState validity; - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); - // https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720 - void remove(); + //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLSourceElement.webidl b/src/components/script/dom/webidls/HTMLSourceElement.webidl index ae15e36646a..6739f1cd0c1 100644 --- a/src/components/script/dom/webidls/HTMLSourceElement.webidl +++ b/src/components/script/dom/webidls/HTMLSourceElement.webidl @@ -1,21 +1,10 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-source-element - * - * ⓒ Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlsourceelement interface HTMLSourceElement : HTMLElement { - [SetterThrows] - attribute DOMString src; - [SetterThrows] - attribute DOMString type; - [SetterThrows] - attribute DOMString media; + // attribute DOMString src; + // attribute DOMString type; }; diff --git a/src/components/script/dom/webidls/HTMLSpanElement.webidl b/src/components/script/dom/webidls/HTMLSpanElement.webidl index 43a2d97f200..ab7ac3edc85 100644 --- a/src/components/script/dom/webidls/HTMLSpanElement.webidl +++ b/src/components/script/dom/webidls/HTMLSpanElement.webidl @@ -1,15 +1,7 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-span-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-span-element +// http://www.whatwg.org/html/#htmlspanelement interface HTMLSpanElement : HTMLElement {}; diff --git a/src/components/script/dom/webidls/HTMLStyleElement.webidl b/src/components/script/dom/webidls/HTMLStyleElement.webidl index 7da0a413e00..0dd71a58769 100644 --- a/src/components/script/dom/webidls/HTMLStyleElement.webidl +++ b/src/components/script/dom/webidls/HTMLStyleElement.webidl @@ -1,23 +1,12 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-style-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlstyleelement interface HTMLStyleElement : HTMLElement { - [Pure] - attribute boolean disabled; - [SetterThrows, Pure] - attribute DOMString media; - [SetterThrows, Pure] - attribute DOMString type; - [SetterThrows, Pure] - attribute boolean scoped; + // attribute DOMString media; + // attribute DOMString type; + // attribute boolean scoped; }; -// TODO: -// HTMLStyleElement implements LinkStyle; - +//HTMLStyleElement implements LinkStyle; diff --git a/src/components/script/dom/webidls/HTMLTableCaptionElement.webidl b/src/components/script/dom/webidls/HTMLTableCaptionElement.webidl index 256713372e3..7ab036c8eb1 100644 --- a/src/components/script/dom/webidls/HTMLTableCaptionElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableCaptionElement.webidl @@ -1,19 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * ⓒ Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -interface HTMLTableCaptionElement : HTMLElement {}; +// http://www.whatwg.org/html/#htmltablecaptionelement +interface HTMLTableCaptionElement : HTMLElement { + // also has obsolete members +}; +// http://www.whatwg.org/html/#HTMLTableCaptionElement-partial partial interface HTMLTableCaptionElement { - [SetterThrows] - attribute DOMString align; + // attribute DOMString align; }; diff --git a/src/components/script/dom/webidls/HTMLTableCellElement.webidl b/src/components/script/dom/webidls/HTMLTableCellElement.webidl index e67bbf2923e..131bf02b5bc 100644 --- a/src/components/script/dom/webidls/HTMLTableCellElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableCellElement.webidl @@ -1,50 +1,29 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltablecellelement interface HTMLTableCellElement : HTMLElement { - [SetterThrows] - attribute unsigned long colSpan; - [SetterThrows] - attribute unsigned long rowSpan; - [SetterThrows] - attribute DOMString headers; - readonly attribute long cellIndex; + // attribute unsigned long colSpan; + // attribute unsigned long rowSpan; + //[PutForwards=value] readonly attribute DOMSettableTokenList headers; + //readonly attribute long cellIndex; - // Mozilla-specific extensions - [SetterThrows] - attribute DOMString abbr; - [SetterThrows] - attribute DOMString scope; + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLTableCellElement-partial partial interface HTMLTableCellElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString axis; - [SetterThrows] - attribute DOMString height; - [SetterThrows] - attribute DOMString width; + // attribute DOMString align; + // attribute DOMString axis; + // attribute DOMString height; + // attribute DOMString width; - [SetterThrows] - attribute DOMString ch; - [SetterThrows] - attribute DOMString chOff; - [SetterThrows] - attribute boolean noWrap; - [SetterThrows] - attribute DOMString vAlign; + // attribute DOMString ch; + // attribute DOMString chOff; + // attribute boolean noWrap; + // attribute DOMString vAlign; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; + //[TreatNullAs=EmptyString] attribute DOMString bgColor; }; diff --git a/src/components/script/dom/webidls/HTMLTableColElement.webidl b/src/components/script/dom/webidls/HTMLTableColElement.webidl index c927541a3dc..5a7cfc4b5c4 100644 --- a/src/components/script/dom/webidls/HTMLTableColElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableColElement.webidl @@ -1,30 +1,20 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltablecolelement interface HTMLTableColElement : HTMLElement { - [SetterThrows] - attribute unsigned long span; + // attribute unsigned long span; + + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLTableColElement-partial partial interface HTMLTableColElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString ch; - [SetterThrows] - attribute DOMString chOff; - [SetterThrows] - attribute DOMString vAlign; - [SetterThrows] - attribute DOMString width; + // attribute DOMString align; + // attribute DOMString ch; + // attribute DOMString chOff; + // attribute DOMString vAlign; + // attribute DOMString width; }; diff --git a/src/components/script/dom/webidls/HTMLTableDataCellElement.webidl b/src/components/script/dom/webidls/HTMLTableDataCellElement.webidl index 44e877b21d7..62669ae026a 100644 --- a/src/components/script/dom/webidls/HTMLTableDataCellElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableDataCellElement.webidl @@ -1,17 +1,14 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * (2013-10-14) - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltabledatacellelement interface HTMLTableDataCellElement : HTMLTableCellElement { // also has obsolete members }; + +// http://www.whatwg.org/html/#HTMLTableDataCellElement-partial +partial interface HTMLTableDataCellElement { + // attribute DOMString abbr; +}; diff --git a/src/components/script/dom/webidls/HTMLTableElement.webidl b/src/components/script/dom/webidls/HTMLTableElement.webidl index 3d4887b83fb..ec0568fd969 100644 --- a/src/components/script/dom/webidls/HTMLTableElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableElement.webidl @@ -1,41 +1,40 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltableelement interface HTMLTableElement : HTMLElement { - void deleteCaption(); - void deleteTHead(); - void deleteTFoot(); - [Throws] - void deleteRow(long index); - attribute boolean sortable; - void stopSorting(); + // attribute HTMLTableCaptionElement? caption; + //HTMLElement createCaption(); + //void deleteCaption(); + // attribute HTMLTableSectionElement? tHead; + //HTMLElement createTHead(); + //void deleteTHead(); + // attribute HTMLTableSectionElement? tFoot; + //HTMLElement createTFoot(); + //void deleteTFoot(); + //readonly attribute HTMLCollection tBodies; + //HTMLElement createTBody(); + //readonly attribute HTMLCollection rows; + //HTMLElement insertRow(optional long index = -1); + //void deleteRow(long index); + // attribute boolean sortable; + //void stopSorting(); + + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLTableElement-partial partial interface HTMLTableElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString border; - [SetterThrows] - attribute DOMString frame; - [SetterThrows] - attribute DOMString rules; - [SetterThrows] - attribute DOMString summary; - [SetterThrows] - attribute DOMString width; + // attribute DOMString align; + // attribute DOMString border; + // attribute DOMString frame; + // attribute DOMString rules; + // attribute DOMString summary; + // attribute DOMString width; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellPadding; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString cellSpacing; + //[TreatNullAs=EmptyString] attribute DOMString bgColor; + //[TreatNullAs=EmptyString] attribute DOMString cellPadding; + //[TreatNullAs=EmptyString] attribute DOMString cellSpacing; }; diff --git a/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl b/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl index 00c2daacdc1..9bbf4d6f436 100644 --- a/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl @@ -1,16 +1,12 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * (2013-10-14) - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltableheadercellelement interface HTMLTableHeaderCellElement : HTMLTableCellElement { + // attribute DOMString scope; + // attribute DOMString abbr; + // attribute DOMString sorted; + //void sort(); }; diff --git a/src/components/script/dom/webidls/HTMLTableRowElement.webidl b/src/components/script/dom/webidls/HTMLTableRowElement.webidl index 9a0866373fc..7cacb013936 100644 --- a/src/components/script/dom/webidls/HTMLTableRowElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableRowElement.webidl @@ -1,32 +1,25 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltablerowelement interface HTMLTableRowElement : HTMLElement { - readonly attribute long rowIndex; - readonly attribute long sectionRowIndex; - [Throws] - void deleteCell(long index); + //readonly attribute long rowIndex; + //readonly attribute long sectionRowIndex; + //readonly attribute HTMLCollection cells; + //HTMLElement insertCell(optional long index = -1); + //void deleteCell(long index); + + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLTableRowElement-partial partial interface HTMLTableRowElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString ch; - [SetterThrows] - attribute DOMString chOff; - [SetterThrows] - attribute DOMString vAlign; + // attribute DOMString align; + // attribute DOMString ch; + // attribute DOMString chOff; + // attribute DOMString vAlign; - [TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor; + //[TreatNullAs=EmptyString] attribute DOMString bgColor; }; diff --git a/src/components/script/dom/webidls/HTMLTableSectionElement.webidl b/src/components/script/dom/webidls/HTMLTableSectionElement.webidl index e95512c4c0a..c3909f3f3e0 100644 --- a/src/components/script/dom/webidls/HTMLTableSectionElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableSectionElement.webidl @@ -1,28 +1,21 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/ - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltablesectionelement interface HTMLTableSectionElement : HTMLElement { - [Throws] - void deleteRow(long index); + //readonly attribute HTMLCollection rows; + //HTMLElement insertRow(optional long index = -1); + //void deleteRow(long index); + + // also has obsolete members }; +// http://www.whatwg.org/html/#HTMLTableSectionElement-partial partial interface HTMLTableSectionElement { - [SetterThrows] - attribute DOMString align; - [SetterThrows] - attribute DOMString ch; - [SetterThrows] - attribute DOMString chOff; - [SetterThrows] - attribute DOMString vAlign; + // attribute DOMString align; + // attribute DOMString ch; + // attribute DOMString chOff; + // attribute DOMString vAlign; }; diff --git a/src/components/script/dom/webidls/HTMLTemplateElement.webidl b/src/components/script/dom/webidls/HTMLTemplateElement.webidl index 18dd6387189..e148dfe2236 100644 --- a/src/components/script/dom/webidls/HTMLTemplateElement.webidl +++ b/src/components/script/dom/webidls/HTMLTemplateElement.webidl @@ -1,14 +1,9 @@ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html - * - * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C - * liability, trademark and document use rules apply. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltemplateelement interface HTMLTemplateElement : HTMLElement { + //readonly attribute DocumentFragment content; }; - diff --git a/src/components/script/dom/webidls/HTMLTextAreaElement.webidl b/src/components/script/dom/webidls/HTMLTextAreaElement.webidl index 0a1b2255d6c..5425bb321fb 100644 --- a/src/components/script/dom/webidls/HTMLTextAreaElement.webidl +++ b/src/components/script/dom/webidls/HTMLTextAreaElement.webidl @@ -1,55 +1,45 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltextareaelement interface HTMLTextAreaElement : HTMLElement { - [SetterThrows, Pure] - attribute boolean autofocus; - [SetterThrows, Pure] - attribute unsigned long cols; - [SetterThrows, Pure] - attribute boolean disabled; - [SetterThrows, Pure] - attribute long maxLength; - [SetterThrows, Pure] - attribute DOMString name; - [SetterThrows, Pure] - attribute DOMString placeholder; - [SetterThrows, Pure] - attribute boolean readOnly; - [SetterThrows, Pure] - attribute boolean required; - [SetterThrows, Pure] - attribute unsigned long rows; - [SetterThrows, Pure] - attribute DOMString wrap; + // attribute DOMString autocomplete; + // attribute boolean autofocus; + // attribute unsigned long cols; + // attribute DOMString dirName; + // attribute boolean disabled; + //readonly attribute HTMLFormElement? form; + // attribute DOMString inputMode; + // attribute long maxLength; + // attribute long minLength; + // attribute DOMString name; + // attribute DOMString placeholder; + // attribute boolean readOnly; + // attribute boolean required; + // attribute unsigned long rows; + // attribute DOMString wrap; - [Constant] - readonly attribute DOMString type; - [SetterThrows, Pure] - attribute DOMString defaultValue; - [TreatNullAs=EmptyString] attribute DOMString value; - readonly attribute unsigned long textLength; + //readonly attribute DOMString type; + // attribute DOMString defaultValue; + //[TreatNullAs=EmptyString] attribute DOMString value; + //readonly attribute unsigned long textLength; - readonly attribute boolean willValidate; - readonly attribute DOMString validationMessage; - boolean checkValidity(); - void setCustomValidity(DOMString error); - void select(); - [Throws] - attribute unsigned long selectionStart; - [Throws] - attribute unsigned long selectionEnd; - [Throws] - attribute DOMString selectionDirection; - void setRangeText(DOMString replacement); + //readonly attribute boolean willValidate; + //readonly attribute ValidityState validity; + //readonly attribute DOMString validationMessage; + //boolean checkValidity(); + //boolean reportValidity(); + //void setCustomValidity(DOMString error); + + //readonly attribute NodeList labels; + + //void select(); + // attribute unsigned long selectionStart; + // attribute unsigned long selectionEnd; + // attribute DOMString selectionDirection; + //void setRangeText(DOMString replacement); + //void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve"); + //void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction); }; diff --git a/src/components/script/dom/webidls/HTMLTimeElement.webidl b/src/components/script/dom/webidls/HTMLTimeElement.webidl index 517ca9981ee..20ab9b04556 100644 --- a/src/components/script/dom/webidls/HTMLTimeElement.webidl +++ b/src/components/script/dom/webidls/HTMLTimeElement.webidl @@ -1,13 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltimeelement interface HTMLTimeElement : HTMLElement { - [SetterThrows] - attribute DOMString dateTime; + // attribute DOMString dateTime; }; diff --git a/src/components/script/dom/webidls/HTMLTitleElement.webidl b/src/components/script/dom/webidls/HTMLTitleElement.webidl index e695d8421a5..aec275db56e 100644 --- a/src/components/script/dom/webidls/HTMLTitleElement.webidl +++ b/src/components/script/dom/webidls/HTMLTitleElement.webidl @@ -1,13 +1,9 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-title-element - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltitleelement interface HTMLTitleElement : HTMLElement { - [SetterThrows] - attribute DOMString text; + // attribute DOMString text; }; diff --git a/src/components/script/dom/webidls/HTMLTrackElement.webidl b/src/components/script/dom/webidls/HTMLTrackElement.webidl index 87e1911be7d..bab698709ab 100644 --- a/src/components/script/dom/webidls/HTMLTrackElement.webidl +++ b/src/components/script/dom/webidls/HTMLTrackElement.webidl @@ -1,31 +1,21 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmltrackelement interface HTMLTrackElement : HTMLElement { - [SetterThrows, Pure] - attribute DOMString kind; - [SetterThrows, Pure] - attribute DOMString src; - [SetterThrows, Pure] - attribute DOMString srclang; - [SetterThrows, Pure] - attribute DOMString label; - [SetterThrows, Pure] - attribute boolean default; + // attribute DOMString kind; + // attribute DOMString src; + // attribute DOMString srclang; + // attribute DOMString label; + // attribute boolean default; - const unsigned short NONE = 0; - const unsigned short LOADING = 1; - const unsigned short LOADED = 2; - const unsigned short ERROR = 3; - readonly attribute unsigned short readyState; -/* - TODO: - readonly attribute TextTrack track; -*/ + //const unsigned short NONE = 0; + //const unsigned short LOADING = 1; + //const unsigned short LOADED = 2; + //const unsigned short ERROR = 3; + //readonly attribute unsigned short readyState; + + //readonly attribute TextTrack track; }; diff --git a/src/components/script/dom/webidls/HTMLUListElement.webidl b/src/components/script/dom/webidls/HTMLUListElement.webidl index ce831490838..10c6451d4c7 100644 --- a/src/components/script/dom/webidls/HTMLUListElement.webidl +++ b/src/components/script/dom/webidls/HTMLUListElement.webidl @@ -1,25 +1,15 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-ul-element - * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis - * - * ⓒ Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://www.whatwg.org/specs/web-apps/current-work/#the-ul-element +// http://www.whatwg.org/html/#htmlulistelement interface HTMLUListElement : HTMLElement { + // also has obsolete members }; -// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis +// http://www.whatwg.org/html/#HTMLUListElement-partial partial interface HTMLUListElement { - [SetterThrows] - attribute boolean compact; - [SetterThrows] - attribute DOMString type; + // attribute boolean compact; + // attribute DOMString type; }; diff --git a/src/components/script/dom/webidls/HTMLVideoElement.webidl b/src/components/script/dom/webidls/HTMLVideoElement.webidl index 5555732a380..9d5d02cc530 100644 --- a/src/components/script/dom/webidls/HTMLVideoElement.webidl +++ b/src/components/script/dom/webidls/HTMLVideoElement.webidl @@ -1,23 +1,13 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - * - * The origin of this IDL file is - * http://www.whatwg.org/specs/web-apps/current-work/#the-video-element - * - * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and - * Opera Software ASA. You are granted a license to use, reproduce - * and create derivative works of this document. - */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +// http://www.whatwg.org/html/#htmlvideoelement interface HTMLVideoElement : HTMLMediaElement { - [SetterThrows] - attribute unsigned long width; - [SetterThrows] - attribute unsigned long height; - readonly attribute unsigned long videoWidth; - readonly attribute unsigned long videoHeight; - [SetterThrows] - attribute DOMString poster; + // attribute unsigned long width; + // attribute unsigned long height; + //readonly attribute unsigned long videoWidth; + //readonly attribute unsigned long videoHeight; + // attribute DOMString poster; }; diff --git a/src/components/script/dom/webidls/Text.webidl b/src/components/script/dom/webidls/Text.webidl index e32ef71b7ea..972797c73c8 100644 --- a/src/components/script/dom/webidls/Text.webidl +++ b/src/components/script/dom/webidls/Text.webidl @@ -1,19 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is - * http://www.w3.org/TR/2012/WD-dom-20120105/ + * http://dom.spec.whatwg.org/ * - * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C - * liability, trademark and document use rules apply. + * To the extent possible under law, the editors have waived all copyright + * and related or neighboring rights to this work. */ +// http://dom.spec.whatwg.org/#text [Constructor(optional DOMString data = "")] interface Text : CharacterData { - [Throws] - Text splitText(unsigned long offset); - [Throws] - readonly attribute DOMString wholeText; + //[NewObject] Text splitText(unsigned long offset); + //readonly attribute DOMString wholeText; }; |