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.
This commit is contained in:
Ms2ger 2014-06-01 15:41:09 +02:00
parent eaae994d57
commit a0783aebbf
131 changed files with 887 additions and 5544 deletions

View file

@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAnchorElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAnchorElementDerived; use dom::bindings::codegen::InheritTypes::HTMLAnchorElementDerived;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast, NodeCast}; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast, NodeCast};
use dom::bindings::js::{JSRef, Temporary, OptionalRootable}; use dom::bindings::js::{JSRef, Temporary, OptionalRootable};
use dom::bindings::error::ErrorResult;
use dom::document::{Document, DocumentHelpers}; use dom::document::{Document, DocumentHelpers};
use dom::attr::AttrMethods; use dom::attr::AttrMethods;
use dom::element::{Element, AttributeHandlers, HTMLAnchorElementTypeId}; use dom::element::{Element, AttributeHandlers, HTMLAnchorElementTypeId};
@ -43,138 +42,6 @@ impl HTMLAnchorElement {
} }
pub trait HTMLAnchorElementMethods { 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 { trait PrivateHTMLAnchorElementHelpers {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLAppletElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLAppletElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAppletElementDerived; use dom::bindings::codegen::InheritTypes::HTMLAppletElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLAppletElementTypeId; use dom::element::HTMLAppletElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,116 +37,4 @@ impl HTMLAppletElement {
} }
pub trait HTMLAppletElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLAreaElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLAreaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAreaElementDerived; use dom::bindings::codegen::InheritTypes::HTMLAreaElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLAreaElementTypeId; use dom::element::HTMLAreaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,86 +37,4 @@ impl HTMLAreaElement {
} }
pub trait HTMLAreaElementMethods { 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(())
}
} }

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLBaseElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLBaseElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLBaseElementDerived; use dom::bindings::codegen::InheritTypes::HTMLBaseElementDerived;
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLBaseElementTypeId; use dom::element::HTMLBaseElementTypeId;
@ -38,26 +37,4 @@ impl HTMLBaseElement {
} }
pub trait HTMLBaseElementMethods { 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(())
}
} }

View file

@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::EventHandlerBinding::EventHandl
use dom::bindings::codegen::BindingDeclarations::HTMLBodyElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLBodyElementBinding;
use dom::bindings::codegen::InheritTypes::EventTargetCast; use dom::bindings::codegen::InheritTypes::EventTargetCast;
use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementCast}; use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementCast};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::Reflectable; use dom::bindings::utils::Reflectable;
use dom::document::Document; use dom::document::Document;
@ -43,71 +42,11 @@ impl HTMLBodyElement {
} }
pub trait HTMLBodyElementMethods { 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 GetOnunload(&self) -> Option<EventHandlerNonNull>;
fn SetOnunload(&mut self, listener: Option<EventHandlerNonNull>); fn SetOnunload(&mut self, listener: Option<EventHandlerNonNull>);
} }
impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> { 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> { fn GetOnunload(&self) -> Option<EventHandlerNonNull> {
let win = window_from_node(self).root(); let win = window_from_node(self).root();
win.deref().GetOnunload() win.deref().GetOnunload()

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLBRElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLBRElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLBRElementDerived; use dom::bindings::codegen::InheritTypes::HTMLBRElementDerived;
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLBRElementTypeId; use dom::element::HTMLBRElementTypeId;
@ -38,16 +37,4 @@ impl HTMLBRElement {
} }
pub trait HTMLBRElementMethods { 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(())
}
} }

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLButtonElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLButtonElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLButtonElementDerived; use dom::bindings::codegen::InheritTypes::HTMLButtonElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLButtonElementTypeId; use dom::element::HTMLButtonElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState; use dom::validitystate::ValidityState;
use servo_util::str::DOMString; use servo_util::str::DOMString;
@ -40,145 +38,12 @@ impl HTMLButtonElement {
} }
pub trait HTMLButtonElementMethods { 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 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> { 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> { fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root(); let window = window_from_node(self).root();
ValidityState::new(&*window) 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) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLCanvasElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLCanvasElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLCanvasElementDerived; use dom::bindings::codegen::InheritTypes::HTMLCanvasElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLCanvasElementTypeId; use dom::element::HTMLCanvasElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLCanvasElement {
} }
pub trait HTMLCanvasElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDataElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLDataElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDataElementDerived; use dom::bindings::codegen::InheritTypes::HTMLDataElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLDataElementTypeId; use dom::element::HTMLDataElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDataElement {
} }
pub trait HTMLDataElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDirectoryElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLDirectoryElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDirectoryElementDerived; use dom::bindings::codegen::InheritTypes::HTMLDirectoryElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLDirectoryElementTypeId; use dom::element::HTMLDirectoryElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDirectoryElement {
} }
pub trait HTMLDirectoryElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDivElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLDivElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDivElementDerived; use dom::bindings::codegen::InheritTypes::HTMLDivElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLDivElementTypeId; use dom::element::HTMLDivElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDivElement {
} }
pub trait HTMLDivElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDListElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLDListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDListElementDerived; use dom::bindings::codegen::InheritTypes::HTMLDListElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLDListElementTypeId; use dom::element::HTMLDListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,27 +37,4 @@ impl HTMLDListElement {
} }
pub trait HTMLDListElementMethods { 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(())
}
}

View file

@ -7,7 +7,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFrameSetElementDerived}; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFrameSetElementDerived};
use dom::bindings::codegen::InheritTypes::EventTargetCast; use dom::bindings::codegen::InheritTypes::EventTargetCast;
use dom::bindings::codegen::InheritTypes::{HTMLElementDerived, HTMLBodyElementDerived}; use dom::bindings::codegen::InheritTypes::{HTMLElementDerived, HTMLBodyElementDerived};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document; use dom::document::Document;
use dom::element::{Element, ElementTypeId, HTMLElementTypeId}; use dom::element::{Element, ElementTypeId, HTMLElementTypeId};
@ -18,9 +17,6 @@ use dom::window::WindowMethods;
use servo_util::namespace; use servo_util::namespace;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use js::jsapi::JSContext;
use js::jsval::{JSVal, NullValue};
#[deriving(Encodable)] #[deriving(Encodable)]
pub struct HTMLElement { pub struct HTMLElement {
pub element: Element pub element: Element
@ -61,158 +57,11 @@ impl<'a> PrivateHTMLElementHelpers for JSRef<'a, HTMLElement> {
} }
pub trait HTMLElementMethods { 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 GetOnload(&self) -> Option<EventHandlerNonNull>;
fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>); fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>);
} }
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> { 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> { fn GetOnload(&self) -> Option<EventHandlerNonNull> {
if self.is_body_or_frameset() { if self.is_body_or_frameset() {
let win = window_from_node(self).root(); let win = window_from_node(self).root();

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLEmbedElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLEmbedElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLEmbedElementDerived; use dom::bindings::codegen::InheritTypes::HTMLEmbedElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLEmbedElementTypeId; use dom::element::HTMLEmbedElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,71 +37,4 @@ impl HTMLEmbedElement {
} }
pub trait HTMLEmbedElementMethods { 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
}
} }

View file

@ -5,11 +5,9 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFieldSetElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLFieldSetElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFieldSetElementDerived, NodeCast}; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFieldSetElementDerived, NodeCast};
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{Element, HTMLFieldSetElementTypeId}; use dom::element::{Element, HTMLFieldSetElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlformelement::HTMLFormElement;
use dom::htmlcollection::{HTMLCollection, CollectionFilter}; use dom::htmlcollection::{HTMLCollection, CollectionFilter};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId, window_from_node};
@ -41,45 +39,11 @@ impl HTMLFieldSetElement {
} }
pub trait HTMLFieldSetElementMethods { 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 Elements(&self) -> Temporary<HTMLCollection>;
fn WillValidate(&self) -> bool;
fn Validity(&self) -> Temporary<ValidityState>; 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> { 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 // http://www.whatwg.org/html/#dom-fieldset-elements
fn Elements(&self) -> Temporary<HTMLCollection> { fn Elements(&self) -> Temporary<HTMLCollection> {
struct ElementsFilter; struct ElementsFilter;
@ -97,23 +61,8 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
HTMLCollection::create(&*window, node, filter) HTMLCollection::create(&*window, node, filter)
} }
fn WillValidate(&self) -> bool {
false
}
fn Validity(&self) -> Temporary<ValidityState> { fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root(); let window = window_from_node(self).root();
ValidityState::new(&*window) ValidityState::new(&*window)
} }
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn CheckValidity(&self) -> bool {
false
}
fn SetCustomValidity(&self, _error: DOMString) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFontElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLFontElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFontElementDerived; use dom::bindings::codegen::InheritTypes::HTMLFontElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLFontElementTypeId; use dom::element::HTMLFontElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLFontElement {
} }
pub trait HTMLFontElementMethods { 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(())
}
} }

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFormElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLFormElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFormElementDerived; use dom::bindings::codegen::InheritTypes::HTMLFormElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{Element, HTMLFormElementTypeId}; use dom::element::HTMLFormElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlcollection::{HTMLCollection, Static};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[deriving(Encodable)] #[deriving(Encodable)]
@ -39,127 +37,4 @@ impl HTMLFormElement {
} }
pub trait HTMLFormElementMethods { 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.")
}
} }

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFrameElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLFrameElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFrameElementDerived; use dom::bindings::codegen::InheritTypes::HTMLFrameElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLFrameElementTypeId; use dom::element::HTMLFrameElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use dom::window::Window;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[deriving(Encodable)] #[deriving(Encodable)]
@ -39,96 +37,4 @@ impl HTMLFrameElement {
} }
pub trait HTMLFrameElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFrameSetElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLFrameSetElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFrameSetElementDerived; use dom::bindings::codegen::InheritTypes::HTMLFrameSetElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLFrameSetElementTypeId; use dom::element::HTMLFrameSetElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLFrameSetElement {
} }
pub trait HTMLFrameSetElementMethods { 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(())
}
} }

View file

@ -49,15 +49,4 @@ impl HTMLHeadingElement {
} }
pub trait HTMLHeadingElementMethods { 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) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLHRElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLHRElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLHRElementDerived; use dom::bindings::codegen::InheritTypes::HTMLHRElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLHRElementTypeId; use dom::element::HTMLHRElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,56 +37,4 @@ impl HTMLHRElement {
} }
pub trait HTMLHRElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLHtmlElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLHtmlElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLHtmlElementDerived; use dom::bindings::codegen::InheritTypes::HTMLHtmlElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLHtmlElementTypeId; use dom::element::HTMLHtmlElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLHtmlElement {
} }
pub trait HTMLHtmlElementMethods { 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(())
}
} }

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLIFrameElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLIFrameElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLIFrameElementDerived, HTMLElementCast}; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLIFrameElementDerived, HTMLElementCast};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary, OptionalRootable}; use dom::bindings::js::{JSRef, Temporary, OptionalRootable};
use dom::document::Document; use dom::document::Document;
use dom::element::{HTMLIFrameElementTypeId, Element}; use dom::element::{HTMLIFrameElementTypeId, Element};
@ -90,62 +89,12 @@ impl HTMLIFrameElement {
} }
pub trait HTMLIFrameElementMethods { 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 Sandbox(&self) -> DOMString;
fn SetSandbox(&mut self, sandbox: 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 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> { 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 { fn Sandbox(&self) -> DOMString {
let element: &JSRef<Element> = ElementCast::from_ref(self); let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_string_attribute("sandbox") element.get_string_attribute("sandbox")
@ -156,34 +105,6 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
element.set_string_attribute("sandbox", sandbox); 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>> { fn GetContentWindow(&self) -> Option<Temporary<Window>> {
self.size.and_then(|size| { self.size.and_then(|size| {
let window = window_from_node(self).root(); 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> { impl<'a> VirtualMethods for JSRef<'a, HTMLIFrameElement> {

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLImageElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLImageElementBinding;
use dom::bindings::codegen::InheritTypes::{NodeCast, ElementCast, HTMLElementCast, HTMLImageElementDerived}; use dom::bindings::codegen::InheritTypes::{NodeCast, ElementCast, HTMLElementCast, HTMLImageElementDerived};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::trace::Untraceable; use dom::bindings::trace::Untraceable;
use dom::document::Document; use dom::document::Document;
@ -93,8 +92,6 @@ pub trait HTMLImageElementMethods {
fn SetAlt(&mut self, alt: DOMString); fn SetAlt(&mut self, alt: DOMString);
fn Src(&self) -> DOMString; fn Src(&self) -> DOMString;
fn SetSrc(&mut self, src: DOMString); fn SetSrc(&mut self, src: DOMString);
fn CrossOrigin(&self) -> DOMString;
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult;
fn UseMap(&self) -> DOMString; fn UseMap(&self) -> DOMString;
fn SetUseMap(&mut self, use_map: DOMString); fn SetUseMap(&mut self, use_map: DOMString);
fn IsMap(&self) -> bool; fn IsMap(&self) -> bool;
@ -103,9 +100,6 @@ pub trait HTMLImageElementMethods {
fn SetWidth(&mut self, width: u32); fn SetWidth(&mut self, width: u32);
fn Height(&self) -> u32; fn Height(&self) -> u32;
fn SetHeight(&mut self, height: u32); fn SetHeight(&mut self, height: u32);
fn NaturalWidth(&self) -> u32;
fn NaturalHeight(&self) -> u32;
fn Complete(&self) -> bool;
fn Name(&self) -> DOMString; fn Name(&self) -> DOMString;
fn SetName(&mut self, name: DOMString); fn SetName(&mut self, name: DOMString);
fn Align(&self) -> DOMString; fn Align(&self) -> DOMString;
@ -141,14 +135,6 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> {
element.set_url_attribute("src", src) 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 { fn UseMap(&self) -> DOMString {
let element: &JSRef<Element> = ElementCast::from_ref(self); let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_string_attribute("useMap") element.get_string_attribute("useMap")
@ -191,18 +177,6 @@ impl<'a> HTMLImageElementMethods for JSRef<'a, HTMLImageElement> {
elem.set_uint_attribute("height", height) 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 { fn Name(&self) -> DOMString {
let element: &JSRef<Element> = ElementCast::from_ref(self); let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_string_attribute("name") element.get_string_attribute("name")

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLInputElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLInputElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLInputElementDerived; use dom::bindings::codegen::InheritTypes::HTMLInputElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLInputElementTypeId; use dom::element::HTMLInputElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,390 +37,4 @@ impl HTMLInputElement {
} }
pub trait HTMLInputElementMethods { 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(())
}
} }

View file

@ -37,15 +37,4 @@ impl HTMLLabelElement {
} }
pub trait HTMLLabelElementMethods { 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) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLegendElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLLegendElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLegendElementDerived; use dom::bindings::codegen::InheritTypes::HTMLLegendElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLLegendElementTypeId; use dom::element::HTMLLegendElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLLegendElement {
} }
pub trait HTMLLegendElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLIElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLLIElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLIElementDerived; use dom::bindings::codegen::InheritTypes::HTMLLIElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLLIElementTypeId; use dom::element::HTMLLIElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLLIElement {
} }
pub trait HTMLLIElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLinkElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLLinkElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLinkElementDerived; use dom::bindings::codegen::InheritTypes::HTMLLinkElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLLinkElementTypeId; use dom::element::HTMLLinkElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,105 +37,4 @@ impl HTMLLinkElement {
} }
pub trait HTMLLinkElementMethods { 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(())
}
} }

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMapElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLMapElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMapElementDerived; use dom::bindings::codegen::InheritTypes::HTMLMapElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLMapElementTypeId; use dom::element::HTMLMapElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlcollection::{HTMLCollection, Static};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[deriving(Encodable)] #[deriving(Encodable)]
@ -39,24 +37,4 @@ impl HTMLMapElement {
} }
pub trait HTMLMapElementMethods { 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!()))
}
}

View file

@ -4,7 +4,6 @@
use dom::bindings::js::{JSRef}; use dom::bindings::js::{JSRef};
use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived; use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived;
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{ElementTypeId, HTMLAudioElementTypeId, HTMLVideoElementTypeId}; use dom::element::{ElementTypeId, HTMLAudioElementTypeId, HTMLVideoElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -36,174 +35,4 @@ impl HTMLMediaElement {
} }
pub trait HTMLMediaElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMetaElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLMetaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMetaElementDerived; use dom::bindings::codegen::InheritTypes::HTMLMetaElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLMetaElementTypeId; use dom::element::HTMLMetaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLMetaElement {
} }
pub trait HTMLMetaElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMeterElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLMeterElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMeterElementDerived; use dom::bindings::codegen::InheritTypes::HTMLMeterElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLMeterElementTypeId; use dom::element::HTMLMeterElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,67 +37,4 @@ impl HTMLMeterElement {
} }
pub trait HTMLMeterElementMethods { 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(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLModElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLModElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLModElementDerived; use dom::bindings::codegen::InheritTypes::HTMLModElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLModElementTypeId; use dom::element::HTMLModElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLModElement {
} }
pub trait HTMLModElementMethods { 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(())
}
} }

View file

@ -7,17 +7,14 @@ use dom::bindings::codegen::BindingDeclarations::HTMLObjectElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived; use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast}; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast};
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{Element, HTMLObjectElementTypeId}; use dom::element::{Element, HTMLObjectElementTypeId};
use dom::element::AttributeHandlers; use dom::element::AttributeHandlers;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, NodeHelpers, window_from_node}; use dom::node::{Node, ElementNodeTypeId, NodeHelpers, window_from_node};
use dom::validitystate::ValidityState; use dom::validitystate::ValidityState;
use dom::virtualmethods::VirtualMethods; use dom::virtualmethods::VirtualMethods;
use dom::window::Window;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use servo_net::image_cache_task; use servo_net::image_cache_task;
@ -77,213 +74,14 @@ impl<'a> ProcessDataURL for JSRef<'a, HTMLObjectElement> {
} }
pub trait HTMLObjectElementMethods { 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 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> { 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> { fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root(); let window = window_from_node(self).root();
ValidityState::new(&*window) 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> { impl<'a> VirtualMethods for JSRef<'a, HTMLObjectElement> {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOListElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLOListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOListElementDerived; use dom::bindings::codegen::InheritTypes::HTMLOListElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLOListElementTypeId; use dom::element::HTMLOListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLOListElement {
} }
pub trait HTMLOListElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOptGroupElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLOptGroupElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOptGroupElementDerived; use dom::bindings::codegen::InheritTypes::HTMLOptGroupElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLOptGroupElementTypeId; use dom::element::HTMLOptGroupElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLOptGroupElement {
} }
pub trait HTMLOptGroupElementMethods { 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(())
}
} }

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOptionElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLOptionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOptionElementDerived; use dom::bindings::codegen::InheritTypes::HTMLOptionElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLOptionElementTypeId; use dom::element::HTMLOptionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
@ -39,76 +37,4 @@ impl HTMLOptionElement {
} }
pub trait HTMLOptionElementMethods { 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
}
} }

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOutputElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLOutputElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOutputElementDerived; use dom::bindings::codegen::InheritTypes::HTMLOutputElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLOutputElementTypeId; use dom::element::HTMLOutputElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState; use dom::validitystate::ValidityState;
use servo_util::str::DOMString; use servo_util::str::DOMString;
@ -40,80 +38,12 @@ impl HTMLOutputElement {
} }
pub trait HTMLOutputElementMethods { 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 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> { 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> { fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root(); let window = window_from_node(self).root();
ValidityState::new(&*window) 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) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLParagraphElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLParagraphElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLParagraphElementDerived; use dom::bindings::codegen::InheritTypes::HTMLParagraphElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLParagraphElementTypeId; use dom::element::HTMLParagraphElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLParagraphElement {
} }
pub trait HTMLParagraphElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLParamElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLParamElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLParamElementDerived; use dom::bindings::codegen::InheritTypes::HTMLParamElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLParamElementTypeId; use dom::element::HTMLParamElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLParamElement {
} }
pub trait HTMLParamElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLPreElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLPreElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLPreElementDerived; use dom::bindings::codegen::InheritTypes::HTMLPreElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLPreElementTypeId; use dom::element::HTMLPreElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLPreElement {
} }
pub trait HTMLPreElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLProgressElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLProgressElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLProgressElementDerived; use dom::bindings::codegen::InheritTypes::HTMLProgressElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLProgressElementTypeId; use dom::element::HTMLProgressElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLProgressElement {
} }
pub trait HTMLProgressElementMethods { 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)
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLQuoteElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLQuoteElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLQuoteElementDerived; use dom::bindings::codegen::InheritTypes::HTMLQuoteElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLQuoteElementTypeId; use dom::element::HTMLQuoteElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLQuoteElement {
} }
pub trait HTMLQuoteElementMethods { 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(())
}
} }

View file

@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLScriptElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLScriptElementDerived; use dom::bindings::codegen::InheritTypes::HTMLScriptElementDerived;
use dom::bindings::codegen::InheritTypes::ElementCast; use dom::bindings::codegen::InheritTypes::ElementCast;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{HTMLScriptElementTypeId, Element, AttributeHandlers}; use dom::element::{HTMLScriptElementTypeId, Element, AttributeHandlers};
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -40,23 +39,6 @@ impl HTMLScriptElement {
pub trait HTMLScriptElementMethods { pub trait HTMLScriptElementMethods {
fn Src(&self) -> DOMString; 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> { 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); let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_url_attribute("src") 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(())
}
} }

View file

@ -4,16 +4,12 @@
use dom::bindings::codegen::BindingDeclarations::HTMLSelectElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLSelectElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived; use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived;
use dom::bindings::codegen::UnionTypes::{HTMLElementOrLong, HTMLOptionElementOrHTMLOptGroupElement};
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{Element, HTMLSelectElementTypeId}; use dom::element::HTMLSelectElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement; use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::htmloptionelement::HTMLOptionElement;
use dom::validitystate::ValidityState; use dom::validitystate::ValidityState;
use servo_util::str::DOMString; use servo_util::str::DOMString;
@ -42,172 +38,12 @@ impl HTMLSelectElement {
} }
pub trait HTMLSelectElementMethods { 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 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> { 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> { fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root(); let window = window_from_node(self).root();
ValidityState::new(&*window) 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLSourceElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLSourceElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLSourceElementDerived; use dom::bindings::codegen::InheritTypes::HTMLSourceElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLSourceElementTypeId; use dom::element::HTMLSourceElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLSourceElement {
} }
pub trait HTMLSourceElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLStyleElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLStyleElementBinding;
use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLStyleElementDerived, NodeCast}; use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLStyleElementDerived, NodeCast};
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLStyleElementTypeId; use dom::element::HTMLStyleElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -41,47 +40,6 @@ impl HTMLStyleElement {
} }
pub trait HTMLStyleElementMethods { 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 { pub trait StyleElementHelpers {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableCaptionElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTableCaptionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableCaptionElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableCaptionElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTableCaptionElementTypeId; use dom::element::HTMLTableCaptionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTableCaptionElement {
} }
pub trait HTMLTableCaptionElementMethods { 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(())
}
} }

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::InheritTypes::HTMLTableCellElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableCellElementDerived;
use dom::bindings::js::JSRef; use dom::bindings::js::JSRef;
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::{ElementTypeId, HTMLTableDataCellElementTypeId, HTMLTableHeaderCellElementTypeId}; use dom::element::{ElementTypeId, HTMLTableDataCellElementTypeId, HTMLTableHeaderCellElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -36,156 +35,4 @@ impl HTMLTableCellElement {
} }
pub trait HTMLTableCellElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableColElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTableColElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableColElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableColElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTableColElementTypeId; use dom::element::HTMLTableColElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,66 +37,4 @@ impl HTMLTableColElement {
} }
pub trait HTMLTableColElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTableElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTableElementTypeId; use dom::element::HTMLTableElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,126 +37,4 @@ impl HTMLTableElement {
} }
pub trait HTMLTableElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableRowElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTableRowElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableRowElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableRowElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTableRowElementTypeId; use dom::element::HTMLTableRowElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,81 +37,4 @@ impl HTMLTableRowElement {
} }
pub trait HTMLTableRowElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableSectionElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTableSectionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableSectionElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTableSectionElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTableSectionElementTypeId; use dom::element::HTMLTableSectionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,51 +37,4 @@ impl HTMLTableSectionElement {
} }
pub trait HTMLTableSectionElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTextAreaElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTextAreaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTextAreaElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTextAreaElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTextAreaElementTypeId; use dom::element::HTMLTextAreaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,206 +37,4 @@ impl HTMLTextAreaElement {
} }
pub trait HTMLTextAreaElementMethods { 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) {
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTimeElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTimeElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTimeElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTimeElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTimeElementTypeId; use dom::element::HTMLTimeElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTimeElement {
} }
pub trait HTMLTimeElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTitleElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTitleElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTitleElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTitleElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTitleElementTypeId; use dom::element::HTMLTitleElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTitleElement {
} }
pub trait HTMLTitleElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTrackElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLTrackElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTrackElementDerived; use dom::bindings::codegen::InheritTypes::HTMLTrackElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLTrackElementTypeId; use dom::element::HTMLTrackElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,61 +37,4 @@ impl HTMLTrackElement {
} }
pub trait HTMLTrackElementMethods { 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
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLUListElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLUListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLUListElementDerived; use dom::bindings::codegen::InheritTypes::HTMLUListElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLUListElementTypeId; use dom::element::HTMLUListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLUListElement {
} }
pub trait HTMLUListElementMethods { 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(())
}
} }

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLVideoElementBinding; use dom::bindings::codegen::BindingDeclarations::HTMLVideoElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived; use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document; use dom::document::Document;
use dom::element::HTMLVideoElementTypeId; use dom::element::HTMLVideoElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId}; use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLVideoElement {
} }
pub trait HTMLVideoElementMethods { 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(())
}
} }

View file

@ -44,16 +44,4 @@ impl Text {
} }
pub trait TextMethods { 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())
}
} }

View file

@ -11,44 +11,27 @@
* and create derivative works of this document. * 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 { interface HTMLAnchorElement : HTMLElement {
// No support for stringifier attributes yet // attribute DOMString target;
//[SetterThrows] // attribute DOMString download;
//stringifier attribute DOMString href; //[PutForwards=value] attribute DOMSettableTokenList ping;
//stringifier; // attribute DOMString rel;
[SetterThrows]
attribute DOMString href;
[SetterThrows]
attribute DOMString target;
[SetterThrows]
attribute DOMString download;
[SetterThrows]
attribute DOMString ping;
[SetterThrows]
attribute DOMString rel;
// relList not supported yet
//readonly attribute DOMTokenList relList; //readonly attribute DOMTokenList relList;
[SetterThrows] // attribute DOMString hreflang;
attribute DOMString hreflang; // attribute DOMString type;
[SetterThrows]
attribute DOMString type;
[SetterThrows] // attribute DOMString text;
attribute DOMString text;
// also has obsolete members
}; };
//HTMLAnchorElement implements URLUtils; //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 { partial interface HTMLAnchorElement {
[SetterThrows] // attribute DOMString coords;
attribute DOMString coords; // attribute DOMString charset;
[SetterThrows] // attribute DOMString name;
attribute DOMString charset; // attribute DOMString rev;
[SetterThrows] // attribute DOMString shape;
attribute DOMString name;
[SetterThrows]
attribute DOMString rev;
[SetterThrows]
attribute DOMString shape;
}; };

View file

@ -1,39 +1,19 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-applet-element // http://www.whatwg.org/html/#htmlappletelement
[NeedNewResolve]
interface HTMLAppletElement : HTMLElement { interface HTMLAppletElement : HTMLElement {
[Pure, SetterThrows] // attribute DOMString align;
attribute DOMString align; // attribute DOMString alt;
[Pure, SetterThrows] // attribute DOMString archive;
attribute DOMString alt; // attribute DOMString code;
[Pure, SetterThrows] // attribute DOMString codeBase;
attribute DOMString archive; // attribute DOMString height;
[Pure, SetterThrows] // attribute unsigned long hspace;
attribute DOMString code; // attribute DOMString name;
[Pure, SetterThrows] // attribute DOMString _object; // the underscore is not part of the identifier
attribute DOMString codeBase; // attribute unsigned long vspace;
[Pure, SetterThrows] // attribute DOMString width;
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;
}; };

View file

@ -1,52 +1,26 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-area-element // http://www.whatwg.org/html/#htmlareaelement
interface HTMLAreaElement : HTMLElement { interface HTMLAreaElement : HTMLElement {
[SetterThrows] // attribute DOMString alt;
attribute DOMString alt; // attribute DOMString coords;
[SetterThrows] // attribute DOMString shape;
attribute DOMString coords; // attribute DOMString target;
[SetterThrows] // attribute DOMString download;
attribute DOMString shape; //[PutForwards=value] attribute DOMSettableTokenList ping;
// No support for stringifier attributes yet // attribute DOMString rel;
//[SetterThrows] //readonly attribute DOMTokenList relList;
//stringifier attribute DOMString href; // attribute DOMString hreflang;
// stringifier; // attribute DOMString type;
[SetterThrows]
attribute DOMString href;
[SetterThrows]
attribute DOMString target;
[SetterThrows]
attribute DOMString download;
[SetterThrows]
attribute DOMString ping;
// not implemented. // also has obsolete members
// [SetterThrows]
// attribute DOMString rel;
//readonly attribute DOMTokenList relList;
//
// [SetterThrows]
// attribute DOMString hreflang;
// [SetterThrows]
// attribute DOMString type;
}; };
//HTMLAreaElement implements URLUtils; //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 { partial interface HTMLAreaElement {
[SetterThrows] // attribute boolean noHref;
attribute boolean noHref;
}; };

View file

@ -1,15 +1,8 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
[NamedConstructor=Audio(optional DOMString src)] // http://www.whatwg.org/html/#htmlaudioelement
//[NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {}; interface HTMLAudioElement : HTMLMediaElement {};

View file

@ -1,22 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-br-element // http://www.whatwg.org/html/#htmlbrelement
interface HTMLBRElement : HTMLElement {}; interface HTMLBRElement : HTMLElement {
// also has obsolete members
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis };
partial interface HTMLBRElement {
[SetterThrows] // http://www.whatwg.org/html/#HTMLBRElement-partial
attribute DOMString clear; partial interface HTMLBRElement {
// attribute DOMString clear;
}; };

View file

@ -1,20 +1,10 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-base-element // http://www.whatwg.org/html/#htmlbaseelement
interface HTMLBaseElement : HTMLElement { interface HTMLBaseElement : HTMLElement {
[SetterThrows, Pure] // attribute DOMString href;
attribute DOMString href; // attribute DOMString target;
[SetterThrows, Pure]
attribute DOMString target;
}; };

View file

@ -1,26 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlbodyelement
interface HTMLBodyElement : HTMLElement { interface HTMLBodyElement : HTMLElement {
};
partial interface HTMLBodyElement { // also has obsolete members
[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;
}; };
HTMLBodyElement implements WindowEventHandlers; HTMLBodyElement implements WindowEventHandlers;
// http://www.whatwg.org/html/#HTMLBodyElement-partial
partial interface HTMLBodyElement {
//[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;
};

View file

@ -1,43 +1,29 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element // http://www.whatwg.org/html/#htmlbuttonelement
interface HTMLButtonElement : HTMLElement { interface HTMLButtonElement : HTMLElement {
[SetterThrows, Pure] // attribute boolean autofocus;
attribute boolean autofocus; // attribute boolean disabled;
[SetterThrows, Pure] //readonly attribute HTMLFormElement? form;
attribute boolean disabled; // attribute DOMString formAction;
[Pure] // attribute DOMString formEnctype;
readonly attribute HTMLFormElement? form; // attribute DOMString formMethod;
[SetterThrows, Pure] // attribute boolean formNoValidate;
attribute DOMString formAction; // attribute DOMString formTarget;
[SetterThrows, Pure] // attribute DOMString name;
attribute DOMString formEnctype; // attribute DOMString type;
[SetterThrows, Pure] // attribute DOMString value;
attribute DOMString formMethod; // attribute HTMLMenuElement? menu;
[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;
readonly attribute boolean willValidate; //readonly attribute boolean willValidate;
readonly attribute ValidityState validity; readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage; //readonly attribute DOMString validationMessage;
boolean checkValidity(); //boolean checkValidity();
void setCustomValidity(DOMString error); //boolean reportValidity();
//void setCustomValidity(DOMString error);
//readonly attribute NodeList labels;
}; };

View file

@ -1,18 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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 * 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/. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
*
* The origin of this IDL file is // http://www.whatwg.org/html/#htmlcanvaselement
* http://www.whatwg.org/specs/web-apps/current-work/#the-canvas-element //typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
* © 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.
*/
interface HTMLCanvasElement : HTMLElement { interface HTMLCanvasElement : HTMLElement {
[Pure, SetterThrows] // attribute unsigned long width;
attribute unsigned long width; // attribute unsigned long height;
[Pure, SetterThrows]
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);
}; };

View file

@ -1,11 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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
*/
interface HTMLCollection { interface HTMLCollection {
readonly attribute unsigned long length; readonly attribute unsigned long length;

View file

@ -1,23 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element // http://www.whatwg.org/html/#htmldlistelement
interface HTMLDListElement : HTMLElement { 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 { partial interface HTMLDListElement {
[SetterThrows] // attribute boolean compact;
attribute boolean compact;
}; };

View file

@ -1,13 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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
*/
// http://www.whatwg.org/html/#htmldataelement
interface HTMLDataElement : HTMLElement { interface HTMLDataElement : HTMLElement {
[SetterThrows] // attribute DOMString value;
attribute DOMString value;
}; };

View file

@ -1,16 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmldatalistelement
interface HTMLDataListElement : HTMLElement { interface HTMLDataListElement : HTMLElement {
readonly attribute HTMLCollection options; readonly attribute HTMLCollection options;
}; };

View file

@ -1,19 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis // http://www.whatwg.org/html/#htmldirectoryelement
interface HTMLDirectoryElement : HTMLElement { interface HTMLDirectoryElement : HTMLElement {
[SetterThrows, Pure] // attribute boolean compact;
attribute boolean compact;
}; };

View file

@ -1,19 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
interface HTMLDivElement : HTMLElement {}; // http://www.whatwg.org/html/#htmldivelement
interface HTMLDivElement : HTMLElement {
partial interface HTMLDivElement { // also has obsolete members
[SetterThrows] };
attribute DOMString align;
// http://www.whatwg.org/html/#HTMLDivElement-partial
partial interface HTMLDivElement {
// attribute DOMString align;
}; };

View file

@ -1,58 +1,48 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlelement
interface HTMLElement : Element { interface HTMLElement : Element {
// metadata attributes // metadata attributes
attribute DOMString title; // attribute DOMString title;
attribute DOMString lang; // attribute DOMString lang;
[SetterThrows, Pure] // attribute boolean translate;
attribute DOMString dir; // attribute DOMString dir;
[Throws] //readonly attribute DOMStringMap dataset;
attribute any itemValue;
// 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 // user interaction
[SetterThrows, Pure] // attribute boolean hidden;
attribute boolean hidden; //void click();
void click(); // attribute long tabIndex;
[SetterThrows, Pure] //void focus();
attribute long tabIndex; //void blur();
[Throws] // attribute DOMString accessKey;
void focus(); //readonly attribute DOMString accessKeyLabel;
[Throws] // attribute boolean draggable;
void blur(); //[PutForwards=value] readonly attribute DOMSettableTokenList dropzone;
[SetterThrows, Pure] // attribute DOMString contentEditable;
attribute DOMString accessKey; //readonly attribute boolean isContentEditable;
[Pure] // attribute HTMLMenuElement? contextMenu;
readonly attribute DOMString accessKeyLabel; // attribute boolean spellcheck;
[SetterThrows, Pure] //void forceSpellCheck();
attribute boolean draggable;
[SetterThrows, Pure]
attribute DOMString contentEditable;
[Pure]
readonly attribute boolean isContentEditable;
[SetterThrows, Pure]
attribute boolean spellcheck;
};
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface // command API
partial interface HTMLElement { //readonly attribute DOMString? commandType;
// CSSOM things are not [Pure] because they can flush //readonly attribute DOMString? commandLabel;
readonly attribute Element? offsetParent; //readonly attribute DOMString? commandIcon;
readonly attribute long offsetTop; //readonly attribute boolean? commandHidden;
readonly attribute long offsetLeft; //readonly attribute boolean? commandDisabled;
readonly attribute long offsetWidth; //readonly attribute boolean? commandChecked;
readonly attribute long offsetHeight;
}; };
HTMLElement implements GlobalEventHandlers; HTMLElement implements GlobalEventHandlers;
//HTMLElement implements OnErrorEventHandlerForNodes;

View file

@ -1,38 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element // http://www.whatwg.org/html/#htmlembedelement
interface HTMLEmbedElement : HTMLElement { interface HTMLEmbedElement : HTMLElement {
[Pure, SetterThrows] // attribute DOMString src;
attribute DOMString src; // attribute DOMString type;
[Pure, SetterThrows] // attribute DOMString width;
attribute DOMString type; // attribute DOMString height;
[Pure, SetterThrows] //legacycaller any (any... arguments);
attribute DOMString width;
[Pure, SetterThrows] // also has obsolete members
attribute DOMString height;
}; };
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial // http://www.whatwg.org/html/#HTMLEmbedElement-partial
partial interface HTMLEmbedElement { partial interface HTMLEmbedElement {
[Pure, SetterThrows] // attribute DOMString align;
attribute DOMString align; // attribute DOMString name;
[Pure, SetterThrows]
attribute DOMString name;
};
partial interface HTMLEmbedElement {
// GetSVGDocument
Document? getSVGDocument();
}; };

View file

@ -1,32 +1,23 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlfieldsetelement
interface HTMLFieldSetElement : HTMLElement { interface HTMLFieldSetElement : HTMLElement {
[SetterThrows] // attribute boolean disabled;
attribute boolean disabled; //readonly attribute HTMLFormElement? form;
readonly attribute HTMLFormElement? form; // attribute DOMString name;
[SetterThrows]
attribute DOMString name;
readonly attribute DOMString type; //readonly attribute DOMString type;
//readonly attribute HTMLFormControlsCollection elements;
readonly attribute HTMLCollection elements; readonly attribute HTMLCollection elements;
readonly attribute boolean willValidate; //readonly attribute boolean willValidate;
readonly attribute ValidityState validity; readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage; //readonly attribute DOMString validationMessage;
//boolean checkValidity();
boolean checkValidity(); //boolean reportValidity();
//void setCustomValidity(DOMString error);
void setCustomValidity(DOMString error);
}; };

View file

@ -1,18 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlfontelement
interface HTMLFontElement : HTMLElement { interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString color; //[TreatNullAs=EmptyString] attribute DOMString color;
[SetterThrows] attribute DOMString face; // attribute DOMString face;
[SetterThrows] attribute DOMString size; // attribute DOMString size;
}; };

View file

@ -1,46 +1,30 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
[OverrideBuiltins] // http://www.whatwg.org/html/#htmlformelement
//[OverrideBuiltins]
interface HTMLFormElement : HTMLElement { interface HTMLFormElement : HTMLElement {
[Pure, SetterThrows] // attribute DOMString acceptCharset;
attribute DOMString acceptCharset; // attribute DOMString action;
[Pure, SetterThrows] // attribute DOMString autocomplete;
attribute DOMString action; // attribute DOMString enctype;
[Pure, SetterThrows] // attribute DOMString encoding;
attribute DOMString autocomplete; // attribute DOMString method;
[Pure, SetterThrows] // attribute DOMString name;
attribute DOMString enctype; // attribute boolean noValidate;
[Pure, SetterThrows] // attribute DOMString target;
attribute DOMString encoding;
[Pure, SetterThrows]
attribute DOMString method;
[Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
attribute boolean noValidate;
[Pure, SetterThrows]
attribute DOMString target;
[Constant] //readonly attribute HTMLFormControlsCollection elements;
readonly attribute HTMLCollection elements; //readonly attribute long length;
[Pure] //getter Element (unsigned long index);
readonly attribute long length; //getter (RadioNodeList or Element) (DOMString name);
getter Element (unsigned long index); //void submit();
//void reset();
//boolean checkValidity();
//boolean reportValidity();
[Throws] //void requestAutocomplete();
void submit();
void reset();
boolean checkValidity();
}; };

View file

@ -1,32 +1,19 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement // http://www.whatwg.org/html/#htmlframeelement
interface HTMLFrameElement : HTMLElement { interface HTMLFrameElement : HTMLElement {
[SetterThrows] // attribute DOMString name;
attribute DOMString name; // attribute DOMString scrolling;
[SetterThrows] // attribute DOMString src;
attribute DOMString scrolling; // attribute DOMString frameBorder;
[SetterThrows] // attribute DOMString longDesc;
attribute DOMString src; // attribute boolean noResize;
[SetterThrows] //readonly attribute Document? contentDocument;
attribute DOMString frameBorder; //readonly attribute WindowProxy? contentWindow;
[SetterThrows]
attribute DOMString longDesc;
[SetterThrows]
attribute boolean noResize;
readonly attribute Document? contentDocument;
readonly attribute Window? contentWindow;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight; //[TreatNullAs=EmptyString] attribute DOMString marginHeight;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth; //[TreatNullAs=EmptyString] attribute DOMString marginWidth;
}; };

View file

@ -1,21 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlframesetelement
interface HTMLFrameSetElement : HTMLElement { interface HTMLFrameSetElement : HTMLElement {
[SetterThrows] // attribute DOMString cols;
attribute DOMString cols; // attribute DOMString rows;
[SetterThrows]
attribute DOMString rows;
}; };
//HTMLFrameSetElement implements WindowEventHandlers; //HTMLFrameSetElement implements WindowEventHandlers;

View file

@ -1,30 +1,18 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element // http://www.whatwg.org/html/#htmlhrelement
interface HTMLHRElement : HTMLElement { 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 { partial interface HTMLHRElement {
[SetterThrows] // attribute DOMString align;
attribute DOMString align; // attribute DOMString color;
[SetterThrows] // attribute boolean noShade;
attribute DOMString color; // attribute DOMString size;
[SetterThrows] // attribute DOMString width;
attribute boolean noShade;
[SetterThrows]
attribute DOMString size;
[SetterThrows]
attribute DOMString width;
}; };

View file

@ -1,15 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-head-element // http://www.whatwg.org/html/#htmlheadelement
interface HTMLHeadElement : HTMLElement {}; interface HTMLHeadElement : HTMLElement {};

View file

@ -1,21 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// 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 { 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 { partial interface HTMLHeadingElement {
attribute DOMString align; // attribute DOMString align;
}; };

View file

@ -1,22 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-html-element // http://www.whatwg.org/html/#htmlhtmlelement
interface HTMLHtmlElement : HTMLElement {}; interface HTMLHtmlElement : HTMLElement {
// also has obsolete members
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis };
partial interface HTMLHtmlElement {
[SetterThrows, Pure] // http://www.whatwg.org/html/#HTMLHtmlElement-partial
attribute DOMString version; partial interface HTMLHtmlElement {
// attribute DOMString version;
}; };

View file

@ -1,51 +1,33 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmliframeelement
interface HTMLIFrameElement : HTMLElement { interface HTMLIFrameElement : HTMLElement {
[SetterThrows, Pure] // attribute DOMString src;
attribute DOMString src; // attribute DOMString srcdoc;
[SetterThrows, Pure] // attribute DOMString name;
attribute DOMString srcdoc; //[PutForwards=value] readonly attribute DOMSettableTokenList sandbox;
[SetterThrows, Pure] attribute DOMString sandbox;
attribute DOMString name; // attribute boolean seamless;
// We're implementing sandbox as a string for now, see bug 845057. // attribute boolean allowFullscreen;
attribute DOMString sandbox; // attribute DOMString width;
[SetterThrows, Pure] // attribute DOMString height;
attribute boolean allowFullscreen; //readonly attribute Document? contentDocument;
[SetterThrows, Pure] //readonly attribute WindowProxy? contentWindow;
attribute DOMString width;
[SetterThrows, Pure]
attribute DOMString height;
readonly attribute Document? contentDocument;
readonly attribute Window? contentWindow; readonly attribute Window? contentWindow;
// also has obsolete members
}; };
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis // http://www.whatwg.org/html/#HTMLIFrameElement-partial
partial interface HTMLIFrameElement { partial interface HTMLIFrameElement {
[SetterThrows, Pure] // attribute DOMString align;
attribute DOMString align; // attribute DOMString scrolling;
[SetterThrows, Pure] // attribute DOMString frameBorder;
attribute DOMString scrolling; // attribute DOMString longDesc;
[SetterThrows, Pure]
attribute DOMString frameBorder;
[SetterThrows, Pure]
attribute DOMString longDesc;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginHeight; //[TreatNullAs=EmptyString] attribute DOMString marginHeight;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginWidth; //[TreatNullAs=EmptyString] attribute DOMString marginWidth;
};
partial interface HTMLIFrameElement {
// GetSVGDocument
Document? getSVGDocument();
}; };

View file

@ -1,34 +1,30 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
[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 { interface HTMLImageElement : HTMLElement {
attribute DOMString alt; attribute DOMString alt;
attribute DOMString src; attribute DOMString src;
[SetterThrows] // attribute DOMString srcset;
attribute DOMString crossOrigin; // attribute DOMString crossOrigin;
attribute DOMString useMap; attribute DOMString useMap;
attribute boolean isMap; attribute boolean isMap;
attribute unsigned long width; attribute unsigned long width;
attribute unsigned long height; attribute unsigned long height;
readonly attribute unsigned long naturalWidth; //readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight; //readonly attribute unsigned long naturalHeight;
readonly attribute boolean complete; //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 { partial interface HTMLImageElement {
attribute DOMString name; attribute DOMString name;
// attribute DOMString lowsrc;
attribute DOMString align; attribute DOMString align;
attribute unsigned long hspace; attribute unsigned long hspace;
attribute unsigned long vspace; attribute unsigned long vspace;

View file

@ -1,102 +1,76 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlinputelement
interface HTMLInputElement : HTMLElement { interface HTMLInputElement : HTMLElement {
[Pure, SetterThrows] // attribute DOMString accept;
attribute DOMString accept; // attribute DOMString alt;
[Pure, SetterThrows] // attribute DOMString autocomplete;
attribute DOMString alt; // attribute boolean autofocus;
[Pure, SetterThrows] // attribute boolean defaultChecked;
attribute DOMString autocomplete; // attribute boolean checked;
[Pure, SetterThrows] // attribute DOMString dirName;
attribute boolean autofocus; // attribute boolean disabled;
[Pure, SetterThrows] //readonly attribute HTMLFormElement? form;
attribute boolean defaultChecked; //readonly attribute FileList? files;
[Pure] // attribute DOMString formAction;
attribute boolean checked; // attribute DOMString formEnctype;
[Pure, SetterThrows] // attribute DOMString formMethod;
attribute boolean disabled; // attribute boolean formNoValidate;
[Pure, SetterThrows] // attribute DOMString formTarget;
attribute DOMString formAction; // attribute unsigned long height;
[Pure, SetterThrows] // attribute boolean indeterminate;
attribute DOMString formEnctype; // attribute DOMString inputMode;
[Pure, SetterThrows] //readonly attribute HTMLElement? list;
attribute DOMString formMethod; // attribute DOMString max;
[Pure, SetterThrows] // attribute long maxLength;
attribute boolean formNoValidate; // attribute DOMString min;
[Pure, SetterThrows] // attribute long minLength;
attribute DOMString formTarget; // attribute boolean multiple;
[Pure, SetterThrows] // attribute DOMString name;
attribute unsigned long height; // attribute DOMString pattern;
[Pure] // attribute DOMString placeholder;
attribute boolean indeterminate; // attribute boolean readOnly;
[Pure, SetterThrows] // attribute boolean required;
attribute DOMString inputMode; // attribute unsigned long size;
[Pure, SetterThrows] // attribute DOMString src;
attribute DOMString max; // attribute DOMString step;
[Pure, SetterThrows] // attribute DOMString type;
attribute long maxLength; // attribute DOMString defaultValue;
[Pure, SetterThrows] //[TreatNullAs=EmptyString] attribute DOMString value;
attribute DOMString min; // attribute Date? valueAsDate;
[Pure, SetterThrows] // attribute unrestricted double valueAsNumber;
attribute boolean multiple; // attribute double valueLow;
[Pure, SetterThrows] // attribute double valueHigh;
attribute DOMString name; // attribute unsigned long width;
[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;
[Pure] //void stepUp(optional long n = 1);
readonly attribute boolean willValidate; //void stepDown(optional long n = 1);
[GetterThrows]
readonly attribute DOMString validationMessage;
boolean checkValidity();
void setCustomValidity(DOMString error);
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 // also has obsolete members
}; };
// http://www.whatwg.org/html/#HTMLInputElement-partial
partial interface HTMLInputElement { partial interface HTMLInputElement {
[Pure, SetterThrows] // attribute DOMString align;
attribute DOMString align; // attribute DOMString useMap;
[Pure, SetterThrows]
attribute DOMString useMap;
}; };

View file

@ -1,25 +1,16 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element // http://www.whatwg.org/html/#htmllielement
interface HTMLLIElement : HTMLElement { 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 { partial interface HTMLLIElement {
[SetterThrows, Pure] // attribute DOMString type;
attribute DOMString type;
}; };

View file

@ -1,18 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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/
// http://www.whatwg.org/html/#htmllabelelement
interface HTMLLabelElement : HTMLElement { interface HTMLLabelElement : HTMLElement {
attribute DOMString htmlFor; //readonly attribute HTMLFormElement? form;
// attribute DOMString htmlFor;
//readonly attribute HTMLElement? control;
}; };

View file

@ -1,23 +1,16 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element // http://www.whatwg.org/html/#htmllegendelement
interface HTMLLegendElement : HTMLElement { 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 { partial interface HTMLLegendElement {
[SetterThrows] // attribute DOMString align;
attribute DOMString align;
}; };

View file

@ -1,43 +1,26 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-link-element // http://www.whatwg.org/html/#htmllinkelement
interface HTMLLinkElement : HTMLElement { interface HTMLLinkElement : HTMLElement {
[Pure] // attribute DOMString href;
attribute boolean disabled; // attribute DOMString crossOrigin;
[SetterThrows, Pure] // attribute DOMString rel;
attribute DOMString href; //readonly attribute DOMTokenList relList;
[SetterThrows, Pure] // attribute DOMString media;
attribute DOMString crossOrigin; // attribute DOMString hreflang;
[SetterThrows, Pure] // attribute DOMString type;
attribute DOMString rel; //[PutForwards=value] readonly attribute DOMSettableTokenList sizes;
[SetterThrows, Pure]
attribute DOMString media;
[SetterThrows, Pure]
attribute DOMString hreflang;
[SetterThrows, Pure]
attribute DOMString type;
};
// TODO // also has obsolete members
};
//HTMLLinkElement implements LinkStyle; //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 { partial interface HTMLLinkElement {
[SetterThrows, Pure] // attribute DOMString charset;
attribute DOMString charset; // attribute DOMString rev;
[SetterThrows, Pure] // attribute DOMString target;
attribute DOMString rev;
[SetterThrows, Pure]
attribute DOMString target;
}; };

View file

@ -1,14 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
interface HTMLMainElement : HTMLElement {}; // Proprietary.
interface HTMLMainElement : HTMLElement {};

View file

@ -1,19 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-map-element // http://www.whatwg.org/html/#htmlmapelement
interface HTMLMapElement : HTMLElement { interface HTMLMapElement : HTMLElement {
[SetterThrows, Pure] // attribute DOMString name;
attribute DOMString name; //readonly attribute HTMLCollection areas;
[Constant] //readonly attribute HTMLCollection images;
readonly attribute HTMLCollection areas;
}; };

View file

@ -1,67 +1,67 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/html/#htmlmediaelement
//enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
interface HTMLMediaElement : HTMLElement { interface HTMLMediaElement : HTMLElement {
// network state
[SetterThrows]
attribute DOMString src;
readonly attribute DOMString currentSrc;
[SetterThrows] // error state
attribute DOMString crossOrigin; //readonly attribute MediaError? error;
const unsigned short NETWORK_EMPTY = 0;
const unsigned short NETWORK_IDLE = 1; // network state
const unsigned short NETWORK_LOADING = 2; // attribute DOMString src;
const unsigned short NETWORK_NO_SOURCE = 3; //readonly attribute DOMString currentSrc;
[SetterThrows] // attribute DOMString crossOrigin;
attribute DOMString preload; //const unsigned short NETWORK_EMPTY = 0;
void load(); //const unsigned short NETWORK_IDLE = 1;
DOMString canPlayType(DOMString type); //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 // ready state
const unsigned short HAVE_NOTHING = 0; //const unsigned short HAVE_NOTHING = 0;
const unsigned short HAVE_METADATA = 1; //const unsigned short HAVE_METADATA = 1;
const unsigned short HAVE_CURRENT_DATA = 2; //const unsigned short HAVE_CURRENT_DATA = 2;
const unsigned short HAVE_FUTURE_DATA = 3; //const unsigned short HAVE_FUTURE_DATA = 3;
const unsigned short HAVE_ENOUGH_DATA = 4; //const unsigned short HAVE_ENOUGH_DATA = 4;
readonly attribute unsigned short readyState; //readonly attribute unsigned short readyState;
readonly attribute boolean seeking; //readonly attribute boolean seeking;
// playback state // playback state
[SetterThrows] // attribute double currentTime;
attribute double currentTime; //void fastSeek(double time);
readonly attribute boolean paused; //readonly attribute unrestricted double duration;
[SetterThrows] //Date getStartDate();
attribute double defaultPlaybackRate; //readonly attribute boolean paused;
[SetterThrows] // attribute double defaultPlaybackRate;
attribute double playbackRate; // attribute double playbackRate;
readonly attribute boolean ended; //readonly attribute TimeRanges played;
[SetterThrows] //readonly attribute TimeRanges seekable;
attribute boolean autoplay; //readonly attribute boolean ended;
[SetterThrows] // attribute boolean autoplay;
attribute boolean loop; // attribute boolean loop;
[Throws] //void play();
void play(); //void pause();
[Throws]
void pause(); // media controller
// attribute DOMString mediaGroup;
// attribute MediaController? controller;
// controls // controls
[SetterThrows] // attribute boolean controls;
attribute boolean controls; // attribute double volume;
[SetterThrows] // attribute boolean muted;
attribute double volume; // attribute boolean defaultMuted;
attribute boolean muted;
[SetterThrows]
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 = "");
}; };

View file

@ -1,28 +1,18 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element // http://www.whatwg.org/html/#htmlmetaelement
interface HTMLMetaElement : HTMLElement { interface HTMLMetaElement : HTMLElement {
[SetterThrows, Pure] // attribute DOMString name;
attribute DOMString name; // attribute DOMString httpEquiv;
[SetterThrows, Pure] // attribute DOMString content;
attribute DOMString httpEquiv;
[SetterThrows, Pure] // also has obsolete members
attribute DOMString content;
}; };
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis // http://www.whatwg.org/html/#HTMLMetaElement-partial
partial interface HTMLMetaElement { partial interface HTMLMetaElement {
[SetterThrows, Pure] // attribute DOMString scheme;
attribute DOMString scheme;
}; };

View file

@ -1,28 +1,15 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element // http://www.whatwg.org/html/#htmlmeterelement
interface HTMLMeterElement : HTMLElement { interface HTMLMeterElement : HTMLElement {
[SetterThrows] // attribute double value;
attribute double value; // attribute double min;
[SetterThrows] // attribute double max;
attribute double min; // attribute double low;
[SetterThrows] // attribute double high;
attribute double max; // attribute double optimum;
[SetterThrows] //readonly attribute NodeList labels;
attribute double low;
[SetterThrows]
attribute double high;
[SetterThrows]
attribute double optimum;
}; };

View file

@ -1,19 +1,10 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- 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 /* 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, * License, v. 2.0. If a copy of the MPL was not distributed with this
* You can obtain one at http://mozilla.org/MPL/2.0/. * 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.
*/
// 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 { interface HTMLModElement : HTMLElement {
[SetterThrows, Pure] // attribute DOMString cite;
attribute DOMString cite; // attribute DOMString dateTime;
[SetterThrows, Pure]
attribute DOMString dateTime;
}; };

Some files were not shown because too many files have changed in this diff Show more