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::{ElementCast, HTMLElementCast, NodeCast};
use dom::bindings::js::{JSRef, Temporary, OptionalRootable};
use dom::bindings::error::ErrorResult;
use dom::document::{Document, DocumentHelpers};
use dom::attr::AttrMethods;
use dom::element::{Element, AttributeHandlers, HTMLAnchorElementTypeId};
@ -43,138 +42,6 @@ impl HTMLAnchorElement {
}
pub trait HTMLAnchorElementMethods {
fn Href(&self) -> DOMString;
fn SetHref(&self, _href: DOMString) -> ErrorResult;
fn Target(&self) -> DOMString;
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
fn Download(&self) -> DOMString;
fn SetDownload(&self, _download: DOMString) -> ErrorResult;
fn Ping(&self) -> DOMString;
fn SetPing(&self, _ping: DOMString) -> ErrorResult;
fn Rel(&self) -> DOMString;
fn SetRel(&self, _rel: DOMString) -> ErrorResult;
fn Hreflang(&self) -> DOMString;
fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Text(&self) -> DOMString;
fn SetText(&self, _text: DOMString) -> ErrorResult;
fn Coords(&self) -> DOMString;
fn SetCoords(&self, _coords: DOMString) -> ErrorResult;
fn Charset(&self) -> DOMString;
fn SetCharset(&self, _charset: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Rev(&self) -> DOMString;
fn SetRev(&self, _rev: DOMString) -> ErrorResult;
fn Shape(&self) -> DOMString;
fn SetShape(&self, _shape: DOMString) -> ErrorResult;
}
impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
fn Href(&self) -> DOMString {
"".to_owned()
}
fn SetHref(&self, _href: DOMString) -> ErrorResult {
Ok(())
}
fn Target(&self) -> DOMString {
"".to_owned()
}
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
Ok(())
}
fn Download(&self) -> DOMString {
"".to_owned()
}
fn SetDownload(&self, _download: DOMString) -> ErrorResult {
Ok(())
}
fn Ping(&self) -> DOMString {
"".to_owned()
}
fn SetPing(&self, _ping: DOMString) -> ErrorResult {
Ok(())
}
fn Rel(&self) -> DOMString {
"".to_owned()
}
fn SetRel(&self, _rel: DOMString) -> ErrorResult {
Ok(())
}
fn Hreflang(&self) -> DOMString {
"".to_owned()
}
fn SetHreflang(&self, _href_lang: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Text(&self) -> DOMString {
"".to_owned()
}
fn SetText(&self, _text: DOMString) -> ErrorResult {
Ok(())
}
fn Coords(&self) -> DOMString {
"".to_owned()
}
fn SetCoords(&self, _coords: DOMString) -> ErrorResult {
Ok(())
}
fn Charset(&self) -> DOMString {
"".to_owned()
}
fn SetCharset(&self, _charset: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Rev(&self) -> DOMString {
"".to_owned()
}
fn SetRev(&self, _rev: DOMString) -> ErrorResult {
Ok(())
}
fn Shape(&self) -> DOMString {
"".to_owned()
}
fn SetShape(&self, _shape: DOMString) -> ErrorResult {
Ok(())
}
}
trait PrivateHTMLAnchorElementHelpers {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLAppletElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAppletElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLAppletElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,116 +37,4 @@ impl HTMLAppletElement {
}
pub trait HTMLAppletElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Alt(&self) -> DOMString;
fn SetAlt(&self, _alt: DOMString) -> ErrorResult;
fn Archive(&self) -> DOMString;
fn SetArchive(&self, _archive: DOMString) -> ErrorResult;
fn Code(&self) -> DOMString;
fn SetCode(&self, _code: DOMString) -> ErrorResult;
fn CodeBase(&self) -> DOMString;
fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult;
fn Height(&self) -> DOMString;
fn SetHeight(&self, _height: DOMString) -> ErrorResult;
fn Hspace(&self) -> u32;
fn SetHspace(&self, _hspace: u32) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Object(&self) -> DOMString;
fn SetObject(&self, _object: DOMString) -> ErrorResult;
fn Vspace(&self) -> u32;
fn SetVspace(&self, _vspace: u32) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
}
impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Alt(&self) -> DOMString {
"".to_owned()
}
fn SetAlt(&self, _alt: DOMString) -> ErrorResult {
Ok(())
}
fn Archive(&self) -> DOMString {
"".to_owned()
}
fn SetArchive(&self, _archive: DOMString) -> ErrorResult {
Ok(())
}
fn Code(&self) -> DOMString {
"".to_owned()
}
fn SetCode(&self, _code: DOMString) -> ErrorResult {
Ok(())
}
fn CodeBase(&self) -> DOMString {
"".to_owned()
}
fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> DOMString {
"".to_owned()
}
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn Hspace(&self) -> u32 {
0
}
fn SetHspace(&self, _hspace: u32) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Object(&self) -> DOMString {
"".to_owned()
}
fn SetObject(&self, _object: DOMString) -> ErrorResult {
Ok(())
}
fn Vspace(&self) -> u32 {
0
}
fn SetVspace(&self, _vspace: u32) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLAreaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAreaElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLAreaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,86 +37,4 @@ impl HTMLAreaElement {
}
pub trait HTMLAreaElementMethods {
fn Alt(&self) -> DOMString;
fn SetAlt(&self, _alt: DOMString) -> ErrorResult;
fn Coords(&self) -> DOMString;
fn SetCoords(&self, _coords: DOMString) -> ErrorResult;
fn Shape(&self) -> DOMString;
fn SetShape(&self, _shape: DOMString) -> ErrorResult;
fn Href(&self) -> DOMString;
fn SetHref(&self, _href: DOMString) -> ErrorResult;
fn Target(&self) -> DOMString;
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
fn Download(&self) -> DOMString;
fn SetDownload(&self, _download: DOMString) -> ErrorResult;
fn Ping(&self) -> DOMString;
fn SetPing(&self, _ping: DOMString) -> ErrorResult;
fn NoHref(&self) -> bool;
fn SetNoHref(&self, _no_href: bool) -> ErrorResult;
}
impl<'a> HTMLAreaElementMethods for JSRef<'a, HTMLAreaElement> {
fn Alt(&self) -> DOMString {
"".to_owned()
}
fn SetAlt(&self, _alt: DOMString) -> ErrorResult {
Ok(())
}
fn Coords(&self) -> DOMString {
"".to_owned()
}
fn SetCoords(&self, _coords: DOMString) -> ErrorResult {
Ok(())
}
fn Shape(&self) -> DOMString {
"".to_owned()
}
fn SetShape(&self, _shape: DOMString) -> ErrorResult {
Ok(())
}
fn Href(&self) -> DOMString {
"".to_owned()
}
fn SetHref(&self, _href: DOMString) -> ErrorResult {
Ok(())
}
fn Target(&self) -> DOMString {
"".to_owned()
}
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
Ok(())
}
fn Download(&self) -> DOMString {
"".to_owned()
}
fn SetDownload(&self, _download: DOMString) -> ErrorResult {
Ok(())
}
fn Ping(&self) -> DOMString {
"".to_owned()
}
fn SetPing(&self, _ping: DOMString) -> ErrorResult {
Ok(())
}
fn NoHref(&self) -> bool {
false
}
fn SetNoHref(&self, _no_href: bool) -> ErrorResult {
Ok(())
}
}

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLBaseElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLBaseElementDerived;
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
use dom::element::HTMLBaseElementTypeId;
@ -38,26 +37,4 @@ impl HTMLBaseElement {
}
pub trait HTMLBaseElementMethods {
fn Href(&self) -> DOMString;
fn SetHref(&self, _href: DOMString) -> ErrorResult;
fn Target(&self) -> DOMString;
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
}
impl<'a> HTMLBaseElementMethods for JSRef<'a, HTMLBaseElement> {
fn Href(&self) -> DOMString {
"".to_owned()
}
fn SetHref(&self, _href: DOMString) -> ErrorResult {
Ok(())
}
fn Target(&self) -> DOMString {
"".to_owned()
}
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::EventHandlerBinding::EventHandl
use dom::bindings::codegen::BindingDeclarations::HTMLBodyElementBinding;
use dom::bindings::codegen::InheritTypes::EventTargetCast;
use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementCast};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::Reflectable;
use dom::document::Document;
@ -43,71 +42,11 @@ impl HTMLBodyElement {
}
pub trait HTMLBodyElementMethods {
fn Text(&self) -> DOMString;
fn SetText(&mut self, _text: DOMString) -> ErrorResult;
fn Link(&self) -> DOMString;
fn SetLink(&self, _link: DOMString) -> ErrorResult;
fn VLink(&self) -> DOMString;
fn SetVLink(&self, _v_link: DOMString) -> ErrorResult;
fn ALink(&self) -> DOMString;
fn SetALink(&self, _a_link: DOMString) -> ErrorResult;
fn BgColor(&self) -> DOMString;
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult;
fn Background(&self) -> DOMString;
fn SetBackground(&self, _background: DOMString) -> ErrorResult;
fn GetOnunload(&self) -> Option<EventHandlerNonNull>;
fn SetOnunload(&mut self, listener: Option<EventHandlerNonNull>);
}
impl<'a> HTMLBodyElementMethods for JSRef<'a, HTMLBodyElement> {
fn Text(&self) -> DOMString {
"".to_owned()
}
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
Ok(())
}
fn Link(&self) -> DOMString {
"".to_owned()
}
fn SetLink(&self, _link: DOMString) -> ErrorResult {
Ok(())
}
fn VLink(&self) -> DOMString {
"".to_owned()
}
fn SetVLink(&self, _v_link: DOMString) -> ErrorResult {
Ok(())
}
fn ALink(&self) -> DOMString {
"".to_owned()
}
fn SetALink(&self, _a_link: DOMString) -> ErrorResult {
Ok(())
}
fn BgColor(&self) -> DOMString {
"".to_owned()
}
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
Ok(())
}
fn Background(&self) -> DOMString {
"".to_owned()
}
fn SetBackground(&self, _background: DOMString) -> ErrorResult {
Ok(())
}
fn GetOnunload(&self) -> Option<EventHandlerNonNull> {
let win = window_from_node(self).root();
win.deref().GetOnunload()

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLBRElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLBRElementDerived;
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
use dom::element::HTMLBRElementTypeId;
@ -38,16 +37,4 @@ impl HTMLBRElement {
}
pub trait HTMLBRElementMethods {
fn Clear(&self) -> DOMString;
fn SetClear(&self, _text: DOMString) -> ErrorResult;
}
impl<'a> HTMLBRElementMethods for JSRef<'a, HTMLBRElement> {
fn Clear(&self) -> DOMString {
"".to_owned()
}
fn SetClear(&self, _text: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLButtonElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLButtonElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLButtonElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState;
use servo_util::str::DOMString;
@ -40,145 +38,12 @@ impl HTMLButtonElement {
}
pub trait HTMLButtonElementMethods {
fn Autofocus(&self) -> bool;
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult;
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
fn FormAction(&self) -> DOMString;
fn SetFormAction(&self, _formaction: DOMString) -> ErrorResult;
fn FormEnctype(&self) -> DOMString;
fn SetFormEnctype(&self, _formenctype: DOMString) -> ErrorResult;
fn FormMethod(&self) -> DOMString;
fn SetFormMethod(&self, _formmethod: DOMString) -> ErrorResult;
fn FormNoValidate(&self) -> bool;
fn SetFormNoValidate(&self, _novalidate: bool) -> ErrorResult;
fn FormTarget(&self) -> DOMString;
fn SetFormTarget(&self, _formtarget: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
fn WillValidate(&self) -> bool;
fn SetWillValidate(&self, _will_validate: bool);
fn Validity(&self) -> Temporary<ValidityState>;
fn ValidationMessage(&self) -> DOMString;
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
}
impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
fn Autofocus(&self) -> bool {
false
}
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult {
Ok(())
}
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
None
}
fn FormAction(&self) -> DOMString {
"".to_owned()
}
fn SetFormAction(&self, _formaction: DOMString) -> ErrorResult {
Ok(())
}
fn FormEnctype(&self) -> DOMString {
"".to_owned()
}
fn SetFormEnctype(&self, _formenctype: DOMString) -> ErrorResult {
Ok(())
}
fn FormMethod(&self) -> DOMString {
"".to_owned()
}
fn SetFormMethod(&self, _formmethod: DOMString) -> ErrorResult {
Ok(())
}
fn FormNoValidate(&self) -> bool {
false
}
fn SetFormNoValidate(&self, _novalidate: bool) -> ErrorResult {
Ok(())
}
fn FormTarget(&self) -> DOMString {
"".to_owned()
}
fn SetFormTarget(&self, _formtarget: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn WillValidate(&self) -> bool {
false
}
fn SetWillValidate(&self, _will_validate: bool) {
}
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult {
Ok(())
}
fn CheckValidity(&self) -> bool {
true
}
fn SetCustomValidity(&self, _error: DOMString) {
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLCanvasElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLCanvasElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult};
use dom::document::Document;
use dom::element::HTMLCanvasElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLCanvasElement {
}
pub trait HTMLCanvasElementMethods {
fn Width(&self) -> u32;
fn SetWidth(&self, _width: u32) -> ErrorResult;
fn Height(&self) -> u32;
fn SetHeight(&self, _height: u32) -> ErrorResult;
}
impl<'a> HTMLCanvasElementMethods for JSRef<'a, HTMLCanvasElement> {
fn Width(&self) -> u32 {
0
}
fn SetWidth(&self, _width: u32) -> ErrorResult {
Ok(())
}
fn Height(&self) -> u32 {
0
}
fn SetHeight(&self, _height: u32) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDataElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDataElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLDataElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDataElement {
}
pub trait HTMLDataElementMethods {
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
}
impl<'a> HTMLDataElementMethods for JSRef<'a, HTMLDataElement> {
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDirectoryElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDirectoryElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLDirectoryElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDirectoryElement {
}
pub trait HTMLDirectoryElementMethods {
fn Compact(&self) -> bool;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
}
impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
fn Compact(&self) -> bool {
false
}
fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDivElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDivElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLDivElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLDivElement {
}
pub trait HTMLDivElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
}
impl<'a> HTMLDivElementMethods for JSRef<'a, HTMLDivElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLDListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLDListElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLDListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,27 +37,4 @@ impl HTMLDListElement {
}
pub trait HTMLDListElementMethods {
fn Compact(&self) -> bool;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
}
impl<'a> HTMLDListElementMethods for JSRef<'a, HTMLDListElement> {
fn Compact(&self) -> bool {
false
}
fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -7,7 +7,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFrameSetElementDerived};
use dom::bindings::codegen::InheritTypes::EventTargetCast;
use dom::bindings::codegen::InheritTypes::{HTMLElementDerived, HTMLBodyElementDerived};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::bindings::js::{JSRef, Temporary};
use dom::document::Document;
use dom::element::{Element, ElementTypeId, HTMLElementTypeId};
@ -18,9 +17,6 @@ use dom::window::WindowMethods;
use servo_util::namespace;
use servo_util::str::DOMString;
use js::jsapi::JSContext;
use js::jsval::{JSVal, NullValue};
#[deriving(Encodable)]
pub struct HTMLElement {
pub element: Element
@ -61,158 +57,11 @@ impl<'a> PrivateHTMLElementHelpers for JSRef<'a, HTMLElement> {
}
pub trait HTMLElementMethods {
fn Title(&self) -> DOMString;
fn SetTitle(&mut self, _title: DOMString);
fn Lang(&self) -> DOMString;
fn SetLang(&mut self, _lang: DOMString);
fn Dir(&self) -> DOMString;
fn SetDir(&mut self, _dir: DOMString) -> ErrorResult;
fn GetItemValue(&self, _cx: *mut JSContext) -> Fallible<JSVal>;
fn SetItemValue(&mut self, _cx: *mut JSContext, _val: JSVal) -> ErrorResult;
fn Hidden(&self) -> bool;
fn SetHidden(&mut self, _hidden: bool) -> ErrorResult;
fn Click(&self);
fn TabIndex(&self) -> i32;
fn SetTabIndex(&mut self, _index: i32) -> ErrorResult;
fn Focus(&self) -> ErrorResult;
fn Blur(&self) -> ErrorResult;
fn AccessKey(&self) -> DOMString;
fn SetAccessKey(&self, _key: DOMString) -> ErrorResult;
fn AccessKeyLabel(&self) -> DOMString;
fn Draggable(&self) -> bool;
fn SetDraggable(&mut self, _draggable: bool) -> ErrorResult;
fn ContentEditable(&self) -> DOMString;
fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult;
fn IsContentEditable(&self) -> bool;
fn Spellcheck(&self) -> bool;
fn SetSpellcheck(&self, _val: bool) -> ErrorResult;
fn GetOffsetParent(&self) -> Option<Temporary<Element>>;
fn OffsetTop(&self) -> i32;
fn OffsetLeft(&self) -> i32;
fn OffsetWidth(&self) -> i32;
fn OffsetHeight(&self) -> i32;
fn GetOnload(&self) -> Option<EventHandlerNonNull>;
fn SetOnload(&mut self, listener: Option<EventHandlerNonNull>);
}
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
fn Title(&self) -> DOMString {
"".to_owned()
}
fn SetTitle(&mut self, _title: DOMString) {
}
fn Lang(&self) -> DOMString {
"".to_owned()
}
fn SetLang(&mut self, _lang: DOMString) {
}
fn Dir(&self) -> DOMString {
"".to_owned()
}
fn SetDir(&mut self, _dir: DOMString) -> ErrorResult {
Ok(())
}
fn GetItemValue(&self, _cx: *mut JSContext) -> Fallible<JSVal> {
Ok(NullValue())
}
fn SetItemValue(&mut self, _cx: *mut JSContext, _val: JSVal) -> ErrorResult {
Ok(())
}
fn Hidden(&self) -> bool {
false
}
fn SetHidden(&mut self, _hidden: bool) -> ErrorResult {
Ok(())
}
fn Click(&self) {
}
fn TabIndex(&self) -> i32 {
0
}
fn SetTabIndex(&mut self, _index: i32) -> ErrorResult {
Ok(())
}
fn Focus(&self) -> ErrorResult {
Ok(())
}
fn Blur(&self) -> ErrorResult {
Ok(())
}
fn AccessKey(&self) -> DOMString {
"".to_owned()
}
fn SetAccessKey(&self, _key: DOMString) -> ErrorResult {
Ok(())
}
fn AccessKeyLabel(&self) -> DOMString {
"".to_owned()
}
fn Draggable(&self) -> bool {
false
}
fn SetDraggable(&mut self, _draggable: bool) -> ErrorResult {
Ok(())
}
fn ContentEditable(&self) -> DOMString {
"".to_owned()
}
fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult {
Ok(())
}
fn IsContentEditable(&self) -> bool {
false
}
fn Spellcheck(&self) -> bool {
false
}
fn SetSpellcheck(&self, _val: bool) -> ErrorResult {
Ok(())
}
fn GetOffsetParent(&self) -> Option<Temporary<Element>> {
None
}
fn OffsetTop(&self) -> i32 {
0
}
fn OffsetLeft(&self) -> i32 {
0
}
fn OffsetWidth(&self) -> i32 {
0
}
fn OffsetHeight(&self) -> i32 {
0
}
fn GetOnload(&self) -> Option<EventHandlerNonNull> {
if self.is_body_or_frameset() {
let win = window_from_node(self).root();

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLEmbedElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLEmbedElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLEmbedElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,71 +37,4 @@ impl HTMLEmbedElement {
}
pub trait HTMLEmbedElementMethods {
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
fn Height(&self) -> DOMString;
fn SetHeight(&self, _height: DOMString) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _type: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _type: DOMString) -> ErrorResult;
fn GetSVGDocument(&self) -> Option<Temporary<Document>>;
}
impl<'a> HTMLEmbedElementMethods for JSRef<'a, HTMLEmbedElement> {
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> DOMString {
"".to_owned()
}
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn GetSVGDocument(&self) -> Option<Temporary<Document>> {
None
}
}

View file

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

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFontElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFontElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLFontElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLFontElement {
}
pub trait HTMLFontElementMethods {
fn Color(&self) -> DOMString;
fn SetColor(&self, _color: DOMString) -> ErrorResult;
fn Face(&self) -> DOMString;
fn SetFace(&self, _face: DOMString) -> ErrorResult;
fn Size(&self) -> DOMString;
fn SetSize(&self, _size: DOMString) -> ErrorResult;
}
impl<'a> HTMLFontElementMethods for JSRef<'a, HTMLFontElement> {
fn Color(&self) -> DOMString {
"".to_owned()
}
fn SetColor(&self, _color: DOMString) -> ErrorResult {
Ok(())
}
fn Face(&self) -> DOMString {
"".to_owned()
}
fn SetFace(&self, _face: DOMString) -> ErrorResult {
Ok(())
}
fn Size(&self) -> DOMString {
"".to_owned()
}
fn SetSize(&self, _size: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFormElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFormElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{Element, HTMLFormElementTypeId};
use dom::element::HTMLFormElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlcollection::{HTMLCollection, Static};
use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString;
#[deriving(Encodable)]
@ -39,127 +37,4 @@ impl HTMLFormElement {
}
pub trait HTMLFormElementMethods {
fn AcceptCharset(&self) -> DOMString;
fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult;
fn Action(&self) -> DOMString;
fn SetAction(&self, _action: DOMString) -> ErrorResult;
fn Autocomplete(&self) -> DOMString;
fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult;
fn Enctype(&self) -> DOMString;
fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult;
fn Encoding(&self) -> DOMString;
fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult;
fn Method(&self) -> DOMString;
fn SetMethod(&self, _method: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn NoValidate(&self) -> bool;
fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult;
fn Target(&self) -> DOMString;
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
fn Elements(&self) -> Temporary<HTMLCollection>;
fn Length(&self) -> i32;
fn Submit(&self) -> ErrorResult;
fn Reset(&self);
fn CheckValidity(&self) -> bool;
fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Temporary<Element>;
}
impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> {
fn AcceptCharset(&self) -> DOMString {
"".to_owned()
}
fn SetAcceptCharset(&self, _accept_charset: DOMString) -> ErrorResult {
Ok(())
}
fn Action(&self) -> DOMString {
"".to_owned()
}
fn SetAction(&self, _action: DOMString) -> ErrorResult {
Ok(())
}
fn Autocomplete(&self) -> DOMString {
"".to_owned()
}
fn SetAutocomplete(&self, _autocomplete: DOMString) -> ErrorResult {
Ok(())
}
fn Enctype(&self) -> DOMString {
"".to_owned()
}
fn SetEnctype(&self, _enctype: DOMString) -> ErrorResult {
Ok(())
}
fn Encoding(&self) -> DOMString {
"".to_owned()
}
fn SetEncoding(&self, _encoding: DOMString) -> ErrorResult {
Ok(())
}
fn Method(&self) -> DOMString {
"".to_owned()
}
fn SetMethod(&self, _method: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn NoValidate(&self) -> bool {
false
}
fn SetNoValidate(&self, _no_validate: bool) -> ErrorResult {
Ok(())
}
fn Target(&self) -> DOMString {
"".to_owned()
}
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
Ok(())
}
fn Elements(&self) -> Temporary<HTMLCollection> {
// FIXME: https://github.com/mozilla/servo/issues/1844
let window = window_from_node(self).root();
HTMLCollection::new(&*window, Static(vec!()))
}
fn Length(&self) -> i32 {
0
}
fn Submit(&self) -> ErrorResult {
Ok(())
}
fn Reset(&self) {
}
fn CheckValidity(&self) -> bool {
false
}
fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Temporary<Element> {
fail!("Not implemented.")
}
}

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFrameElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFrameElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLFrameElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId};
use dom::window::Window;
use servo_util::str::DOMString;
#[deriving(Encodable)]
@ -39,96 +37,4 @@ impl HTMLFrameElement {
}
pub trait HTMLFrameElementMethods {
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Scrolling(&self) -> DOMString;
fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult;
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn FrameBorder(&self) -> DOMString;
fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult;
fn LongDesc(&self) -> DOMString;
fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult;
fn NoResize(&self) -> bool;
fn SetNoResize(&self, _no_resize: bool) -> ErrorResult;
fn GetContentDocument(&self) -> Option<Temporary<Document>>;
fn GetContentWindow(&self) -> Option<Temporary<Window>>;
fn MarginHeight(&self) -> DOMString;
fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult;
fn MarginWidth(&self) -> DOMString;
fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult;
}
impl<'a> HTMLFrameElementMethods for JSRef<'a, HTMLFrameElement> {
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Scrolling(&self) -> DOMString {
"".to_owned()
}
fn SetScrolling(&self, _scrolling: DOMString) -> ErrorResult {
Ok(())
}
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn FrameBorder(&self) -> DOMString {
"".to_owned()
}
fn SetFrameBorder(&self, _frameborder: DOMString) -> ErrorResult {
Ok(())
}
fn LongDesc(&self) -> DOMString {
"".to_owned()
}
fn SetLongDesc(&self, _longdesc: DOMString) -> ErrorResult {
Ok(())
}
fn NoResize(&self) -> bool {
false
}
fn SetNoResize(&self, _no_resize: bool) -> ErrorResult {
Ok(())
}
fn GetContentDocument(&self) -> Option<Temporary<Document>> {
None
}
fn GetContentWindow(&self) -> Option<Temporary<Window>> {
None
}
fn MarginHeight(&self) -> DOMString {
"".to_owned()
}
fn SetMarginHeight(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn MarginWidth(&self) -> DOMString {
"".to_owned()
}
fn SetMarginWidth(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLFrameSetElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLFrameSetElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLFrameSetElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLFrameSetElement {
}
pub trait HTMLFrameSetElementMethods {
fn Cols(&self) -> DOMString;
fn SetCols(&self, _cols: DOMString) -> ErrorResult;
fn Rows(&self) -> DOMString;
fn SetRows(&self, _rows: DOMString) -> ErrorResult;
}
impl<'a> HTMLFrameSetElementMethods for JSRef<'a, HTMLFrameSetElement> {
fn Cols(&self) -> DOMString {
"".to_owned()
}
fn SetCols(&self, _cols: DOMString) -> ErrorResult {
Ok(())
}
fn Rows(&self) -> DOMString {
"".to_owned()
}
fn SetRows(&self, _rows: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -49,15 +49,4 @@ impl HTMLHeadingElement {
}
pub trait HTMLHeadingElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString);
}
impl<'a> HTMLHeadingElementMethods for JSRef<'a, HTMLHeadingElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) {
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLHRElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLHRElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLHRElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,56 +37,4 @@ impl HTMLHRElement {
}
pub trait HTMLHRElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Color(&self) -> DOMString;
fn SetColor(&self, _color: DOMString) -> ErrorResult;
fn NoShade(&self) -> bool;
fn SetNoShade(&self, _no_shade: bool) -> ErrorResult;
fn Size(&self) -> DOMString;
fn SetSize(&self, _size: DOMString) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
}
impl<'a> HTMLHRElementMethods for JSRef<'a, HTMLHRElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Color(&self) -> DOMString {
"".to_owned()
}
fn SetColor(&self, _color: DOMString) -> ErrorResult {
Ok(())
}
fn NoShade(&self) -> bool {
false
}
fn SetNoShade(&self, _no_shade: bool) -> ErrorResult {
Ok(())
}
fn Size(&self) -> DOMString {
"".to_owned()
}
fn SetSize(&self, _size: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLHtmlElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLHtmlElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLHtmlElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLHtmlElement {
}
pub trait HTMLHtmlElementMethods {
fn Version(&self) -> DOMString;
fn SetVersion(&self, _version: DOMString) -> ErrorResult;
}
impl<'a> HTMLHtmlElementMethods for JSRef<'a, HTMLHtmlElement> {
fn Version(&self) -> DOMString {
"".to_owned()
}
fn SetVersion(&self, _version: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLIFrameElementBinding;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLIFrameElementDerived, HTMLElementCast};
use dom::bindings::error::ErrorResult;
use dom::bindings::js::{JSRef, Temporary, OptionalRootable};
use dom::document::Document;
use dom::element::{HTMLIFrameElementTypeId, Element};
@ -90,62 +89,12 @@ impl HTMLIFrameElement {
}
pub trait HTMLIFrameElementMethods {
fn Src(&self) -> DOMString;
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult;
fn Srcdoc(&self) -> DOMString;
fn SetSrcdoc(&mut self, _srcdoc: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&mut self, _name: DOMString) -> ErrorResult;
fn Sandbox(&self) -> DOMString;
fn SetSandbox(&mut self, sandbox: DOMString);
fn AllowFullscreen(&self) -> bool;
fn SetAllowFullscreen(&mut self, _allow: bool) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult;
fn Height(&self) -> DOMString;
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult;
fn GetContentDocument(&self) -> Option<Temporary<Document>>;
fn GetContentWindow(&self) -> Option<Temporary<Window>>;
fn Align(&self) -> DOMString;
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult;
fn Scrolling(&self) -> DOMString;
fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult;
fn FrameBorder(&self) -> DOMString;
fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult;
fn LongDesc(&self) -> DOMString;
fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult;
fn MarginHeight(&self) -> DOMString;
fn SetMarginHeight(&mut self, _marginheight: DOMString) -> ErrorResult;
fn MarginWidth(&self) -> DOMString;
fn SetMarginWidth(&mut self, _marginwidth: DOMString) -> ErrorResult;
fn GetSVGDocument(&self) -> Option<Temporary<Document>>;
}
impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Srcdoc(&self) -> DOMString {
"".to_owned()
}
fn SetSrcdoc(&mut self, _srcdoc: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Sandbox(&self) -> DOMString {
let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_string_attribute("sandbox")
@ -156,34 +105,6 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
element.set_string_attribute("sandbox", sandbox);
}
fn AllowFullscreen(&self) -> bool {
false
}
fn SetAllowFullscreen(&mut self, _allow: bool) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&mut self, _width: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> DOMString {
"".to_owned()
}
fn SetHeight(&mut self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn GetContentDocument(&self) -> Option<Temporary<Document>> {
None
}
fn GetContentWindow(&self) -> Option<Temporary<Window>> {
self.size.and_then(|size| {
let window = window_from_node(self).root();
@ -198,58 +119,6 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
})
})
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&mut self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Scrolling(&self) -> DOMString {
"".to_owned()
}
fn SetScrolling(&mut self, _scrolling: DOMString) -> ErrorResult {
Ok(())
}
fn FrameBorder(&self) -> DOMString {
"".to_owned()
}
fn SetFrameBorder(&mut self, _frameborder: DOMString) -> ErrorResult {
Ok(())
}
fn LongDesc(&self) -> DOMString {
"".to_owned()
}
fn SetLongDesc(&mut self, _longdesc: DOMString) -> ErrorResult {
Ok(())
}
fn MarginHeight(&self) -> DOMString {
"".to_owned()
}
fn SetMarginHeight(&mut self, _marginheight: DOMString) -> ErrorResult {
Ok(())
}
fn MarginWidth(&self) -> DOMString {
"".to_owned()
}
fn SetMarginWidth(&mut self, _marginwidth: DOMString) -> ErrorResult {
Ok(())
}
fn GetSVGDocument(&self) -> Option<Temporary<Document>> {
None
}
}
impl<'a> VirtualMethods for JSRef<'a, HTMLIFrameElement> {

View file

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

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLInputElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLInputElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document;
use dom::element::HTMLInputElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,390 +37,4 @@ impl HTMLInputElement {
}
pub trait HTMLInputElementMethods {
fn Accept(&self) -> DOMString;
fn SetAccept(&self, _accept: DOMString) -> ErrorResult;
fn Alt(&self) -> DOMString;
fn SetAlt(&self, _alt: DOMString) -> ErrorResult;
fn Autocomplete(&self) -> DOMString;
fn SetAutocomplete(&self, _autocomple: DOMString) -> ErrorResult;
fn Autofocus(&self) -> bool;
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult;
fn DefaultChecked(&self) -> bool;
fn SetDefaultChecked(&self, _default_checked: bool) -> ErrorResult;
fn Checked(&self) -> bool;
fn SetChecked(&self, _checked: bool);
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn FormAction(&self) -> DOMString;
fn SetFormAction(&self, _form_action: DOMString) -> ErrorResult;
fn FormEnctype(&self) -> DOMString;
fn SetFormEnctype(&self, _form_enctype: DOMString) -> ErrorResult;
fn FormMethod(&self) -> DOMString;
fn SetFormMethod(&self, _form_method: DOMString) -> ErrorResult;
fn FormNoValidate(&self) -> bool;
fn SetFormNoValidate(&self, _form_no_validate: bool) -> ErrorResult;
fn FormTarget(&self) -> DOMString;
fn SetFormTarget(&self, _form_target: DOMString) -> ErrorResult;
fn Height(&self) -> u32;
fn SetHeight(&self, _height: u32) -> ErrorResult;
fn Indeterminate(&self) -> bool;
fn SetIndeterminate(&self, _indeterminate: bool);
fn InputMode(&self) -> DOMString;
fn SetInputMode(&self, _input_mode: DOMString) -> ErrorResult;
fn Max(&self) -> DOMString;
fn SetMax(&self, _max: DOMString) -> ErrorResult;
fn MaxLength(&self) -> i32;
fn SetMaxLength(&self, _max_length: i32) -> ErrorResult;
fn Min(&self) -> DOMString;
fn SetMin(&self, _min: DOMString) -> ErrorResult;
fn Multiple(&self) -> bool;
fn SetMultiple(&self, _multiple: bool) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Pattern(&self) -> DOMString;
fn SetPattern(&self, _pattern: DOMString) -> ErrorResult;
fn Placeholder(&self) -> DOMString;
fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult;
fn ReadOnly(&self) -> bool;
fn SetReadOnly(&self, _read_only: bool) -> ErrorResult;
fn Required(&self) -> bool;
fn SetRequired(&self, _required: bool) -> ErrorResult;
fn Size(&self) -> u32;
fn SetSize(&self, _size: u32) -> ErrorResult;
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn Step(&self) -> DOMString;
fn SetStep(&self, _step: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn DefaultValue(&self) -> DOMString;
fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
fn Width(&self) -> u32;
fn SetWidth(&self, _width: u32);
fn WillValidate(&self) -> bool;
fn SetWillValidate(&self, _will_validate: bool);
fn GetValidationMessage(&self) -> Fallible<DOMString>;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
fn Select(&self);
fn GetSelectionStart(&self) -> Fallible<i32>;
fn SetSelectionStart(&self, _selection_start: i32) -> ErrorResult;
fn GetSelectionEnd(&self) -> Fallible<i32>;
fn SetSelectionEnd(&self, _selection_end: i32) -> ErrorResult;
fn GetSelectionDirection(&self) -> Fallible<DOMString>;
fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn UseMap(&self) -> DOMString;
fn SetUseMap(&self, _align: DOMString) -> ErrorResult;
}
impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
fn Accept(&self) -> DOMString {
"".to_owned()
}
fn SetAccept(&self, _accept: DOMString) -> ErrorResult {
Ok(())
}
fn Alt(&self) -> DOMString {
"".to_owned()
}
fn SetAlt(&self, _alt: DOMString) -> ErrorResult {
Ok(())
}
fn Autocomplete(&self) -> DOMString {
"".to_owned()
}
fn SetAutocomplete(&self, _autocomple: DOMString) -> ErrorResult {
Ok(())
}
fn Autofocus(&self) -> bool {
false
}
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult {
Ok(())
}
fn DefaultChecked(&self) -> bool {
false
}
fn SetDefaultChecked(&self, _default_checked: bool) -> ErrorResult {
Ok(())
}
fn Checked(&self) -> bool {
false
}
fn SetChecked(&self, _checked: bool) {
}
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn FormAction(&self) -> DOMString {
"".to_owned()
}
fn SetFormAction(&self, _form_action: DOMString) -> ErrorResult {
Ok(())
}
fn FormEnctype(&self) -> DOMString {
"".to_owned()
}
fn SetFormEnctype(&self, _form_enctype: DOMString) -> ErrorResult {
Ok(())
}
fn FormMethod(&self) -> DOMString {
"".to_owned()
}
fn SetFormMethod(&self, _form_method: DOMString) -> ErrorResult {
Ok(())
}
fn FormNoValidate(&self) -> bool {
false
}
fn SetFormNoValidate(&self, _form_no_validate: bool) -> ErrorResult {
Ok(())
}
fn FormTarget(&self) -> DOMString {
"".to_owned()
}
fn SetFormTarget(&self, _form_target: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> u32 {
0
}
fn SetHeight(&self, _height: u32) -> ErrorResult {
Ok(())
}
fn Indeterminate(&self) -> bool {
false
}
fn SetIndeterminate(&self, _indeterminate: bool) {
}
fn InputMode(&self) -> DOMString {
"".to_owned()
}
fn SetInputMode(&self, _input_mode: DOMString) -> ErrorResult {
Ok(())
}
fn Max(&self) -> DOMString {
"".to_owned()
}
fn SetMax(&self, _max: DOMString) -> ErrorResult {
Ok(())
}
fn MaxLength(&self) -> i32 {
0
}
fn SetMaxLength(&self, _max_length: i32) -> ErrorResult {
Ok(())
}
fn Min(&self) -> DOMString {
"".to_owned()
}
fn SetMin(&self, _min: DOMString) -> ErrorResult {
Ok(())
}
fn Multiple(&self) -> bool {
false
}
fn SetMultiple(&self, _multiple: bool) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Pattern(&self) -> DOMString {
"".to_owned()
}
fn SetPattern(&self, _pattern: DOMString) -> ErrorResult {
Ok(())
}
fn Placeholder(&self) -> DOMString {
"".to_owned()
}
fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult {
Ok(())
}
fn ReadOnly(&self) -> bool {
false
}
fn SetReadOnly(&self, _read_only: bool) -> ErrorResult {
Ok(())
}
fn Required(&self) -> bool {
false
}
fn SetRequired(&self, _required: bool) -> ErrorResult {
Ok(())
}
fn Size(&self) -> u32 {
0
}
fn SetSize(&self, _size: u32) -> ErrorResult {
Ok(())
}
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Step(&self) -> DOMString {
"".to_owned()
}
fn SetStep(&self, _step: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn DefaultValue(&self) -> DOMString {
"".to_owned()
}
fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> u32 {
0
}
fn SetWidth(&self, _width: u32) {
}
fn WillValidate(&self) -> bool {
false
}
fn SetWillValidate(&self, _will_validate: bool) {
}
fn GetValidationMessage(&self) -> Fallible<DOMString> {
Ok("".to_owned())
}
fn CheckValidity(&self) -> bool {
false
}
fn SetCustomValidity(&self, _error: DOMString) {
}
fn Select(&self) {
}
fn GetSelectionStart(&self) -> Fallible<i32> {
Ok(0)
}
fn SetSelectionStart(&self, _selection_start: i32) -> ErrorResult {
Ok(())
}
fn GetSelectionEnd(&self) -> Fallible<i32> {
Ok(0)
}
fn SetSelectionEnd(&self, _selection_end: i32) -> ErrorResult {
Ok(())
}
fn GetSelectionDirection(&self) -> Fallible<DOMString> {
Ok("".to_owned())
}
fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn UseMap(&self) -> DOMString {
"".to_owned()
}
fn SetUseMap(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -37,15 +37,4 @@ impl HTMLLabelElement {
}
pub trait HTMLLabelElementMethods {
fn HtmlFor(&self) -> DOMString;
fn SetHtmlFor(&self, _html_for: DOMString);
}
impl<'a> HTMLLabelElementMethods for JSRef<'a, HTMLLabelElement> {
fn HtmlFor(&self) -> DOMString {
"".to_owned()
}
fn SetHtmlFor(&self, _html_for: DOMString) {
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLegendElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLegendElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLLegendElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLLegendElement {
}
pub trait HTMLLegendElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
}
impl<'a> HTMLLegendElementMethods for JSRef<'a, HTMLLegendElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLIElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLIElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLLIElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLLIElement {
}
pub trait HTMLLIElementMethods {
fn Value(&self) -> i32;
fn SetValue(&self, _value: i32) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
}
impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
fn Value(&self) -> i32 {
0
}
fn SetValue(&self, _value: i32) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLLinkElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLLinkElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLLinkElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,105 +37,4 @@ impl HTMLLinkElement {
}
pub trait HTMLLinkElementMethods {
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disable: bool);
fn Href(&self) -> DOMString;
fn SetHref(&self, _href: DOMString) -> ErrorResult;
fn CrossOrigin(&self) -> DOMString;
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult;
fn Rel(&self) -> DOMString;
fn SetRel(&self, _rel: DOMString) -> ErrorResult;
fn Media(&self) -> DOMString;
fn SetMedia(&self, _media: DOMString) -> ErrorResult;
fn Hreflang(&self) -> DOMString;
fn SetHreflang(&self, _href: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Charset(&self) -> DOMString;
fn SetCharset(&self, _charset: DOMString) -> ErrorResult;
fn Rev(&self) -> DOMString;
fn SetRev(&self, _rev: DOMString) -> ErrorResult;
fn Target(&self) -> DOMString;
fn SetTarget(&self, _target: DOMString) -> ErrorResult;
}
impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disable: bool) {
}
fn Href(&self) -> DOMString {
"".to_owned()
}
fn SetHref(&self, _href: DOMString) -> ErrorResult {
Ok(())
}
fn CrossOrigin(&self) -> DOMString {
"".to_owned()
}
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult {
Ok(())
}
fn Rel(&self) -> DOMString {
"".to_owned()
}
fn SetRel(&self, _rel: DOMString) -> ErrorResult {
Ok(())
}
fn Media(&self) -> DOMString {
"".to_owned()
}
fn SetMedia(&self, _media: DOMString) -> ErrorResult {
Ok(())
}
fn Hreflang(&self) -> DOMString {
"".to_owned()
}
fn SetHreflang(&self, _href: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Charset(&self) -> DOMString {
"".to_owned()
}
fn SetCharset(&self, _charset: DOMString) -> ErrorResult {
Ok(())
}
fn Rev(&self) -> DOMString {
"".to_owned()
}
fn SetRev(&self, _rev: DOMString) -> ErrorResult {
Ok(())
}
fn Target(&self) -> DOMString {
"".to_owned()
}
fn SetTarget(&self, _target: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMapElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMapElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLMapElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlcollection::{HTMLCollection, Static};
use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString;
#[deriving(Encodable)]
@ -39,24 +37,4 @@ impl HTMLMapElement {
}
pub trait HTMLMapElementMethods {
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Areas(&self) -> Temporary<HTMLCollection>;
}
impl<'a> HTMLMapElementMethods for JSRef<'a, HTMLMapElement> {
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Areas(&self) -> Temporary<HTMLCollection> {
// FIXME: https://github.com/mozilla/servo/issues/1845
let window = window_from_node(self).root();
HTMLCollection::new(&*window, Static(vec!()))
}
}

View file

@ -4,7 +4,6 @@
use dom::bindings::js::{JSRef};
use dom::bindings::codegen::InheritTypes::HTMLMediaElementDerived;
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{ElementTypeId, HTMLAudioElementTypeId, HTMLVideoElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -36,174 +35,4 @@ impl HTMLMediaElement {
}
pub trait HTMLMediaElementMethods {
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn CurrentSrc(&self) -> DOMString;
fn CrossOrigin(&self) -> DOMString;
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult;
fn Preload(&self) -> DOMString;
fn SetPreload(&self, _preload: DOMString) -> ErrorResult;
fn Load(&self);
fn CanPlayType(&self, _type: DOMString) -> DOMString;
fn ReadyState(&self) -> u16;
fn Seeking(&self) -> bool;
fn CurrentTime(&self) -> f64;
fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult;
fn GetDuration(&self) -> f64;
fn Paused(&self) -> bool;
fn DefaultPlaybackRate(&self) -> f64;
fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult;
fn PlaybackRate(&self) -> f64;
fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult;
fn Ended(&self) -> bool;
fn Autoplay(&self) -> bool;
fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult;
fn Loop(&self) -> bool;
fn SetLoop(&self, _loop: bool) -> ErrorResult;
fn Play(&self) -> ErrorResult;
fn Pause(&self) -> ErrorResult;
fn Controls(&self) -> bool;
fn SetControls(&self, _controls: bool) -> ErrorResult;
fn Volume(&self) -> f64;
fn SetVolume(&self, _volume: f64) -> ErrorResult;
fn Muted(&self) -> bool;
fn SetMuted(&self, _muted: bool);
fn DefaultMuted(&self) -> bool;
fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult;
}
impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn CurrentSrc(&self) -> DOMString {
"".to_owned()
}
fn CrossOrigin(&self) -> DOMString {
"".to_owned()
}
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult {
Ok(())
}
fn Preload(&self) -> DOMString {
"".to_owned()
}
fn SetPreload(&self, _preload: DOMString) -> ErrorResult {
Ok(())
}
fn Load(&self) {
}
fn CanPlayType(&self, _type: DOMString) -> DOMString {
"".to_owned()
}
fn ReadyState(&self) -> u16 {
0
}
fn Seeking(&self) -> bool {
false
}
fn CurrentTime(&self) -> f64 {
0f64
}
fn SetCurrentTime(&self, _current_time: f64) -> ErrorResult {
Ok(())
}
fn GetDuration(&self) -> f64 {
0f64
}
fn Paused(&self) -> bool {
false
}
fn DefaultPlaybackRate(&self) -> f64 {
0f64
}
fn SetDefaultPlaybackRate(&self, _default_playback_rate: f64) -> ErrorResult {
Ok(())
}
fn PlaybackRate(&self) -> f64 {
0f64
}
fn SetPlaybackRate(&self, _playback_rate: f64) -> ErrorResult {
Ok(())
}
fn Ended(&self) -> bool {
false
}
fn Autoplay(&self) -> bool {
false
}
fn SetAutoplay(&self, _autoplay: bool) -> ErrorResult {
Ok(())
}
fn Loop(&self) -> bool {
false
}
fn SetLoop(&self, _loop: bool) -> ErrorResult {
Ok(())
}
fn Play(&self) -> ErrorResult {
Ok(())
}
fn Pause(&self) -> ErrorResult {
Ok(())
}
fn Controls(&self) -> bool {
false
}
fn SetControls(&self, _controls: bool) -> ErrorResult {
Ok(())
}
fn Volume(&self) -> f64 {
0f64
}
fn SetVolume(&self, _volume: f64) -> ErrorResult {
Ok(())
}
fn Muted(&self) -> bool {
false
}
fn SetMuted(&self, _muted: bool) {
}
fn DefaultMuted(&self) -> bool {
false
}
fn SetDefaultMuted(&self, _default_muted: bool) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMetaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMetaElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLMetaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLMetaElement {
}
pub trait HTMLMetaElementMethods {
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn HttpEquiv(&self) -> DOMString;
fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult;
fn Content(&self) -> DOMString;
fn SetContent(&self, _content: DOMString) -> ErrorResult;
fn Scheme(&self) -> DOMString;
fn SetScheme(&self, _scheme: DOMString) -> ErrorResult;
}
impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn HttpEquiv(&self) -> DOMString {
"".to_owned()
}
fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult {
Ok(())
}
fn Content(&self) -> DOMString {
"".to_owned()
}
fn SetContent(&self, _content: DOMString) -> ErrorResult {
Ok(())
}
fn Scheme(&self) -> DOMString {
"".to_owned()
}
fn SetScheme(&self, _scheme: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLMeterElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLMeterElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLMeterElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,67 +37,4 @@ impl HTMLMeterElement {
}
pub trait HTMLMeterElementMethods {
fn Value(&self) -> f64;
fn SetValue(&self, _value: f64) -> ErrorResult;
fn Min(&self) -> f64;
fn SetMin(&self, _min: f64) -> ErrorResult;
fn Max(&self) -> f64;
fn SetMax(&self, _max: f64) -> ErrorResult;
fn Low(&self) -> f64;
fn SetLow(&self, _low: f64) -> ErrorResult;
fn High(&self) -> f64;
fn SetHigh(&self, _high: f64) -> ErrorResult;
fn Optimum(&self) -> f64;
fn SetOptimum(&self, _optimum: f64) -> ErrorResult;
}
impl<'a> HTMLMeterElementMethods for JSRef<'a, HTMLMeterElement> {
fn Value(&self) -> f64 {
0.0
}
fn SetValue(&self, _value: f64) -> ErrorResult {
Ok(())
}
fn Min(&self) -> f64 {
0.0
}
fn SetMin(&self, _min: f64) -> ErrorResult {
Ok(())
}
fn Max(&self) -> f64 {
0.0
}
fn SetMax(&self, _max: f64) -> ErrorResult {
Ok(())
}
fn Low(&self) -> f64 {
0.0
}
fn SetLow(&self, _low: f64) -> ErrorResult {
Ok(())
}
fn High(&self) -> f64 {
0.0
}
fn SetHigh(&self, _high: f64) -> ErrorResult {
Ok(())
}
fn Optimum(&self) -> f64 {
0.0
}
fn SetOptimum(&self, _optimum: f64) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLModElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLModElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLModElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLModElement {
}
pub trait HTMLModElementMethods {
fn Cite(&self) -> DOMString;
fn SetCite(&self, _cite: DOMString) -> ErrorResult;
fn DateTime(&self) -> DOMString;
fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult;
}
impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
fn Cite(&self) -> DOMString {
"".to_owned()
}
fn SetCite(&self, _cite: DOMString) -> ErrorResult {
Ok(())
}
fn DateTime(&self) -> DOMString {
"".to_owned()
}
fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -7,17 +7,14 @@ use dom::bindings::codegen::BindingDeclarations::HTMLObjectElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived;
use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLElementCast};
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{Element, HTMLObjectElementTypeId};
use dom::element::AttributeHandlers;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, NodeHelpers, window_from_node};
use dom::validitystate::ValidityState;
use dom::virtualmethods::VirtualMethods;
use dom::window::Window;
use servo_util::str::DOMString;
use servo_net::image_cache_task;
@ -77,213 +74,14 @@ impl<'a> ProcessDataURL for JSRef<'a, HTMLObjectElement> {
}
pub trait HTMLObjectElementMethods {
fn Data(&self) -> DOMString;
fn SetData(&self, _data: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn UseMap(&self) -> DOMString;
fn SetUseMap(&self, _use_map: DOMString) -> ErrorResult;
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
fn Height(&self) -> DOMString;
fn SetHeight(&self, _height: DOMString) -> ErrorResult;
fn GetContentDocument(&self) -> Option<Temporary<Document>>;
fn GetContentWindow(&self) -> Option<Temporary<Window>>;
fn WillValidate(&self) -> bool;
fn Validity(&self) -> Temporary<ValidityState>;
fn ValidationMessage(&self) -> DOMString;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Archive(&self) -> DOMString;
fn SetArchive(&self, _archive: DOMString) -> ErrorResult;
fn Code(&self) -> DOMString;
fn SetCode(&self, _code: DOMString) -> ErrorResult;
fn Declare(&self) -> bool;
fn SetDeclare(&self, _declare: bool) -> ErrorResult;
fn Hspace(&self) -> u32;
fn SetHspace(&self, _hspace: u32) -> ErrorResult;
fn Standby(&self) -> DOMString;
fn SetStandby(&self, _standby: DOMString) -> ErrorResult;
fn Vspace(&self) -> u32;
fn SetVspace(&self, _vspace: u32) -> ErrorResult;
fn CodeBase(&self) -> DOMString;
fn SetCodeBase(&self, _codebase: DOMString) -> ErrorResult;
fn CodeType(&self) -> DOMString;
fn SetCodeType(&self, _codetype: DOMString) -> ErrorResult;
fn Border(&self) -> DOMString;
fn SetBorder(&self, _border: DOMString) -> ErrorResult;
fn GetSVGDocument(&self) -> Option<Temporary<Document>>;
}
impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
fn Data(&self) -> DOMString {
"".to_owned()
}
fn SetData(&self, _data: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn UseMap(&self) -> DOMString {
"".to_owned()
}
fn SetUseMap(&self, _use_map: DOMString) -> ErrorResult {
Ok(())
}
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
None
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> DOMString {
"".to_owned()
}
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn GetContentDocument(&self) -> Option<Temporary<Document>> {
None
}
fn GetContentWindow(&self) -> Option<Temporary<Window>> {
None
}
fn WillValidate(&self) -> bool {
false
}
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn CheckValidity(&self) -> bool {
false
}
fn SetCustomValidity(&self, _error: DOMString) {
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Archive(&self) -> DOMString {
"".to_owned()
}
fn SetArchive(&self, _archive: DOMString) -> ErrorResult {
Ok(())
}
fn Code(&self) -> DOMString {
"".to_owned()
}
fn SetCode(&self, _code: DOMString) -> ErrorResult {
Ok(())
}
fn Declare(&self) -> bool {
false
}
fn SetDeclare(&self, _declare: bool) -> ErrorResult {
Ok(())
}
fn Hspace(&self) -> u32 {
0
}
fn SetHspace(&self, _hspace: u32) -> ErrorResult {
Ok(())
}
fn Standby(&self) -> DOMString {
"".to_owned()
}
fn SetStandby(&self, _standby: DOMString) -> ErrorResult {
Ok(())
}
fn Vspace(&self) -> u32 {
0
}
fn SetVspace(&self, _vspace: u32) -> ErrorResult {
Ok(())
}
fn CodeBase(&self) -> DOMString {
"".to_owned()
}
fn SetCodeBase(&self, _codebase: DOMString) -> ErrorResult {
Ok(())
}
fn CodeType(&self) -> DOMString {
"".to_owned()
}
fn SetCodeType(&self, _codetype: DOMString) -> ErrorResult {
Ok(())
}
fn Border(&self) -> DOMString {
"".to_owned()
}
fn SetBorder(&self, _border: DOMString) -> ErrorResult {
Ok(())
}
fn GetSVGDocument(&self) -> Option<Temporary<Document>> {
None
}
}
impl<'a> VirtualMethods for JSRef<'a, HTMLObjectElement> {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOListElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLOListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLOListElement {
}
pub trait HTMLOListElementMethods {
fn Reversed(&self) -> bool;
fn SetReversed(&self, _reversed: bool) -> ErrorResult;
fn Start(&self) -> i32;
fn SetStart(&self, _start: i32) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Compact(&self) -> bool;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
}
impl<'a> HTMLOListElementMethods for JSRef<'a, HTMLOListElement> {
fn Reversed(&self) -> bool {
false
}
fn SetReversed(&self, _reversed: bool) -> ErrorResult {
Ok(())
}
fn Start(&self) -> i32 {
0
}
fn SetStart(&self, _start: i32) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Compact(&self) -> bool {
false
}
fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOptGroupElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOptGroupElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLOptGroupElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLOptGroupElement {
}
pub trait HTMLOptGroupElementMethods {
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn Label(&self) -> DOMString;
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
}
impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn Label(&self) -> DOMString {
"".to_owned()
}
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOptionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOptionElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLOptionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString;
@ -39,76 +37,4 @@ impl HTMLOptionElement {
}
pub trait HTMLOptionElementMethods {
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
fn Label(&self) -> DOMString;
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
fn DefaultSelected(&self) -> bool;
fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult;
fn Selected(&self) -> bool;
fn SetSelected(&self, _selected: bool) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
fn Text(&self) -> DOMString;
fn SetText(&self, _text: DOMString) -> ErrorResult;
fn Index(&self) -> i32;
}
impl<'a> HTMLOptionElementMethods for JSRef<'a, HTMLOptionElement> {
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
None
}
fn Label(&self) -> DOMString {
"".to_owned()
}
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
Ok(())
}
fn DefaultSelected(&self) -> bool {
false
}
fn SetDefaultSelected(&self, _default_selected: bool) -> ErrorResult {
Ok(())
}
fn Selected(&self) -> bool {
false
}
fn SetSelected(&self, _selected: bool) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn Text(&self) -> DOMString {
"".to_owned()
}
fn SetText(&self, _text: DOMString) -> ErrorResult {
Ok(())
}
fn Index(&self) -> i32 {
0
}
}

View file

@ -5,12 +5,10 @@
use dom::bindings::codegen::BindingDeclarations::HTMLOutputElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLOutputElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLOutputElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState;
use servo_util::str::DOMString;
@ -40,80 +38,12 @@ impl HTMLOutputElement {
}
pub trait HTMLOutputElementMethods {
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn DefaultValue(&self) -> DOMString;
fn SetDefaultValue(&self, _value: DOMString) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
fn WillValidate(&self) -> bool;
fn SetWillValidate(&self, _will_validate: bool);
fn Validity(&self) -> Temporary<ValidityState>;
fn ValidationMessage(&self) -> DOMString;
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
}
impl<'a> HTMLOutputElementMethods for JSRef<'a, HTMLOutputElement> {
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
None
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn DefaultValue(&self) -> DOMString {
"".to_owned()
}
fn SetDefaultValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn WillValidate(&self) -> bool {
false
}
fn SetWillValidate(&self, _will_validate: bool) {
}
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult {
Ok(())
}
fn CheckValidity(&self) -> bool {
true
}
fn SetCustomValidity(&self, _error: DOMString) {
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLParagraphElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLParagraphElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLParagraphElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLParagraphElement {
}
pub trait HTMLParagraphElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
}
impl<'a> HTMLParagraphElementMethods for JSRef<'a, HTMLParagraphElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLParamElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLParamElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLParamElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLParamElement {
}
pub trait HTMLParamElementMethods {
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn ValueType(&self) -> DOMString;
fn SetValueType(&self, _value_type: DOMString) -> ErrorResult;
}
impl<'a> HTMLParamElementMethods for JSRef<'a, HTMLParamElement> {
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn ValueType(&self) -> DOMString {
"".to_owned()
}
fn SetValueType(&self, _value_type: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLPreElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLPreElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLPreElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLPreElement {
}
pub trait HTMLPreElementMethods {
fn Width(&self) -> i32;
fn SetWidth(&self, _width: i32) -> ErrorResult;
}
impl<'a> HTMLPreElementMethods for JSRef<'a, HTMLPreElement> {
fn Width(&self) -> i32 {
0
}
fn SetWidth(&self, _width: i32) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLProgressElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLProgressElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document;
use dom::element::HTMLProgressElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLProgressElement {
}
pub trait HTMLProgressElementMethods {
fn Value(&self) -> f64;
fn SetValue(&self, _value: f64) -> ErrorResult;
fn Max(&self) -> f64;
fn SetMax(&self, _max: f64) -> ErrorResult;
fn Position(&self) -> f64;
fn GetPositiom(&self) -> Fallible<f64>;
}
impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> {
fn Value(&self) -> f64 {
0f64
}
fn SetValue(&self, _value: f64) -> ErrorResult {
Ok(())
}
fn Max(&self) -> f64 {
0f64
}
fn SetMax(&self, _max: f64) -> ErrorResult {
Ok(())
}
fn Position(&self) -> f64 {
0f64
}
fn GetPositiom(&self) -> Fallible<f64> {
Ok(0f64)
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLQuoteElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLQuoteElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLQuoteElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLQuoteElement {
}
pub trait HTMLQuoteElementMethods {
fn Cite(&self) -> DOMString;
fn SetCite(&self, _cite: DOMString) -> ErrorResult;
}
impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> {
fn Cite(&self) -> DOMString {
"".to_owned()
}
fn SetCite(&self, _cite: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -6,7 +6,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLScriptElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLScriptElementDerived;
use dom::bindings::codegen::InheritTypes::ElementCast;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{HTMLScriptElementTypeId, Element, AttributeHandlers};
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -40,23 +39,6 @@ impl HTMLScriptElement {
pub trait HTMLScriptElementMethods {
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Charset(&self) -> DOMString;
fn SetCharset(&self, _charset: DOMString) -> ErrorResult;
fn Async(&self) -> bool;
fn SetAsync(&self, _async: bool) -> ErrorResult;
fn Defer(&self) -> bool;
fn SetDefer(&self, _defer: bool) -> ErrorResult;
fn CrossOrigin(&self) -> DOMString;
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult;
fn Text(&self) -> DOMString;
fn SetText(&self, _text: DOMString) -> ErrorResult;
fn Event(&self) -> DOMString;
fn SetEvent(&self, _event: DOMString) -> ErrorResult;
fn HtmlFor(&self) -> DOMString;
fn SetHtmlFor(&self, _html_for: DOMString) -> ErrorResult;
}
impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
@ -64,72 +46,4 @@ impl<'a> HTMLScriptElementMethods for JSRef<'a, HTMLScriptElement> {
let element: &JSRef<Element> = ElementCast::from_ref(self);
element.get_url_attribute("src")
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Charset(&self) -> DOMString {
"".to_owned()
}
fn SetCharset(&self, _charset: DOMString) -> ErrorResult {
Ok(())
}
fn Async(&self) -> bool {
false
}
fn SetAsync(&self, _async: bool) -> ErrorResult {
Ok(())
}
fn Defer(&self) -> bool {
false
}
fn SetDefer(&self, _defer: bool) -> ErrorResult {
Ok(())
}
fn CrossOrigin(&self) -> DOMString {
"".to_owned()
}
fn SetCrossOrigin(&self, _cross_origin: DOMString) -> ErrorResult {
Ok(())
}
fn Text(&self) -> DOMString {
"".to_owned()
}
fn SetText(&self, _text: DOMString) -> ErrorResult {
Ok(())
}
fn Event(&self) -> DOMString {
"".to_owned()
}
fn SetEvent(&self, _event: DOMString) -> ErrorResult {
Ok(())
}
fn HtmlFor(&self) -> DOMString {
"".to_owned()
}
fn SetHtmlFor(&self, _html_for: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -4,16 +4,12 @@
use dom::bindings::codegen::BindingDeclarations::HTMLSelectElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLSelectElementDerived;
use dom::bindings::codegen::UnionTypes::{HTMLElementOrLong, HTMLOptionElementOrHTMLOptGroupElement};
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{Element, HTMLSelectElementTypeId};
use dom::element::HTMLSelectElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::htmlelement::HTMLElement;
use dom::htmlformelement::HTMLFormElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::htmloptionelement::HTMLOptionElement;
use dom::validitystate::ValidityState;
use servo_util::str::DOMString;
@ -42,172 +38,12 @@ impl HTMLSelectElement {
}
pub trait HTMLSelectElementMethods {
fn Autofocus(&self) -> bool;
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult;
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>>;
fn Multiple(&self) -> bool;
fn SetMultiple(&self, _multiple: bool) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Required(&self) -> bool;
fn SetRequired(&self, _multiple: bool) -> ErrorResult;
fn Size(&self) -> u32;
fn SetSize(&self, _size: u32) -> ErrorResult;
fn Type(&self) -> DOMString;
fn Length(&self) -> u32;
fn SetLength(&self, _length: u32) -> ErrorResult;
fn Item(&self, _index: u32) -> Option<Temporary<Element>>;
fn NamedItem(&self, _name: DOMString) -> Option<Temporary<HTMLOptionElement>>;
fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Option<Temporary<Element>>;
fn IndexedSetter(&self, _index: u32, _option: Option<JSRef<HTMLOptionElement>>) -> ErrorResult;
fn Remove_(&self);
fn Remove(&self, _index: i32);
fn SelectedIndex(&self) -> i32;
fn SetSelectedIndex(&self, _index: i32) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString);
fn WillValidate(&self) -> bool;
fn SetWillValidate(&self, _will_validate: bool);
fn Validity(&self) -> Temporary<ValidityState>;
fn ValidationMessage(&self) -> DOMString;
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) -> ErrorResult;
}
impl<'a> HTMLSelectElementMethods for JSRef<'a, HTMLSelectElement> {
fn Autofocus(&self) -> bool {
false
}
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult {
Ok(())
}
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn GetForm(&self) -> Option<Temporary<HTMLFormElement>> {
None
}
fn Multiple(&self) -> bool {
false
}
fn SetMultiple(&self, _multiple: bool) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Required(&self) -> bool {
false
}
fn SetRequired(&self, _multiple: bool) -> ErrorResult {
Ok(())
}
fn Size(&self) -> u32 {
0
}
fn SetSize(&self, _size: u32) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn Length(&self) -> u32 {
0
}
fn SetLength(&self, _length: u32) -> ErrorResult {
Ok(())
}
fn Item(&self, _index: u32) -> Option<Temporary<Element>> {
None
}
fn NamedItem(&self, _name: DOMString) -> Option<Temporary<HTMLOptionElement>> {
None
}
fn IndexedGetter(&self, _index: u32, _found: &mut bool) -> Option<Temporary<Element>> {
None
}
fn IndexedSetter(&self, _index: u32, _option: Option<JSRef<HTMLOptionElement>>) -> ErrorResult {
Ok(())
}
fn Remove_(&self) {
}
fn Remove(&self, _index: i32) {
}
fn SelectedIndex(&self) -> i32 {
0
}
fn SetSelectedIndex(&self, _index: i32) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) {
}
fn WillValidate(&self) -> bool {
false
}
fn SetWillValidate(&self, _will_validate: bool) {
}
fn Validity(&self) -> Temporary<ValidityState> {
let window = window_from_node(self).root();
ValidityState::new(&*window)
}
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn SetValidationMessage(&self, _message: DOMString) -> ErrorResult {
Ok(())
}
fn CheckValidity(&self) -> bool {
true
}
fn SetCustomValidity(&self, _error: DOMString) {
}
fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLSourceElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLSourceElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLSourceElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,36 +37,4 @@ impl HTMLSourceElement {
}
pub trait HTMLSourceElementMethods {
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Media(&self) -> DOMString;
fn SetMedia(&self, _media: DOMString) -> ErrorResult;
}
impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Media(&self) -> DOMString {
"".to_owned()
}
fn SetMedia(&self, _media: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLStyleElementBinding;
use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLStyleElementDerived, NodeCast};
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLStyleElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -41,47 +40,6 @@ impl HTMLStyleElement {
}
pub trait HTMLStyleElementMethods {
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool);
fn Media(&self) -> DOMString;
fn SetMedia(&self, _media: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
fn Scoped(&self) -> bool;
fn SetScoped(&self, _scoped: bool) -> ErrorResult;
}
impl<'a> HTMLStyleElementMethods for JSRef<'a, HTMLStyleElement> {
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) {
}
fn Media(&self) -> DOMString {
"".to_owned()
}
fn SetMedia(&self, _media: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
fn Scoped(&self) -> bool {
false
}
fn SetScoped(&self, _scoped: bool) -> ErrorResult {
Ok(())
}
}
pub trait StyleElementHelpers {

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableCaptionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableCaptionElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTableCaptionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTableCaptionElement {
}
pub trait HTMLTableCaptionElementMethods {
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableCaptionElementMethods for JSRef<'a, HTMLTableCaptionElement> {
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -4,7 +4,6 @@
use dom::bindings::codegen::InheritTypes::HTMLTableCellElementDerived;
use dom::bindings::js::JSRef;
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::{ElementTypeId, HTMLTableDataCellElementTypeId, HTMLTableHeaderCellElementTypeId};
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -36,156 +35,4 @@ impl HTMLTableCellElement {
}
pub trait HTMLTableCellElementMethods {
fn ColSpan(&self) -> u32;
fn SetColSpan(&self, _col_span: u32) -> ErrorResult;
fn RowSpan(&self) -> u32;
fn SetRowSpan(&self, _col_span: u32) -> ErrorResult;
fn Headers(&self) -> DOMString;
fn SetHeaders(&self, _headers: DOMString) -> ErrorResult;
fn CellIndex(&self) -> i32;
fn GetCellIndex(&self, _cell_index: i32) -> ErrorResult;
fn Abbr(&self) -> DOMString;
fn SetAbbr(&self, _abbr: DOMString) -> ErrorResult;
fn Scope(&self) -> DOMString;
fn SetScope(&self, _abbr: DOMString) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Axis(&self) -> DOMString;
fn SetAxis(&self, _axis: DOMString) -> ErrorResult;
fn Height(&self) -> DOMString;
fn SetHeight(&self, _height: DOMString) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString;
fn SetCh(&self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString;
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult;
fn NoWrap(&self) -> bool;
fn SetNoWrap(&self, _no_wrap: bool) -> ErrorResult;
fn VAlign(&self) -> DOMString;
fn SetVAlign(&self, _valign: DOMString) -> ErrorResult;
fn BgColor(&self) -> DOMString;
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableCellElementMethods for JSRef<'a, HTMLTableCellElement> {
fn ColSpan(&self) -> u32 {
0
}
fn SetColSpan(&self, _col_span: u32) -> ErrorResult {
Ok(())
}
fn RowSpan(&self) -> u32 {
0
}
fn SetRowSpan(&self, _col_span: u32) -> ErrorResult {
Ok(())
}
fn Headers(&self) -> DOMString {
"".to_owned()
}
fn SetHeaders(&self, _headers: DOMString) -> ErrorResult {
Ok(())
}
fn CellIndex(&self) -> i32 {
0
}
fn GetCellIndex(&self, _cell_index: i32) -> ErrorResult {
Ok(())
}
fn Abbr(&self) -> DOMString {
"".to_owned()
}
fn SetAbbr(&self, _abbr: DOMString) -> ErrorResult {
Ok(())
}
fn Scope(&self) -> DOMString {
"".to_owned()
}
fn SetScope(&self, _abbr: DOMString) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Axis(&self) -> DOMString {
"".to_owned()
}
fn SetAxis(&self, _axis: DOMString) -> ErrorResult {
Ok(())
}
fn Height(&self) -> DOMString {
"".to_owned()
}
fn SetHeight(&self, _height: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
fn Ch(&self) -> DOMString {
"".to_owned()
}
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
Ok(())
}
fn ChOff(&self) -> DOMString {
"".to_owned()
}
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
Ok(())
}
fn NoWrap(&self) -> bool {
false
}
fn SetNoWrap(&self, _no_wrap: bool) -> ErrorResult {
Ok(())
}
fn VAlign(&self) -> DOMString {
"".to_owned()
}
fn SetVAlign(&self, _valign: DOMString) -> ErrorResult {
Ok(())
}
fn BgColor(&self) -> DOMString {
"".to_owned()
}
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableColElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableColElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTableColElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,66 +37,4 @@ impl HTMLTableColElement {
}
pub trait HTMLTableColElementMethods {
fn Span(&self) -> u32;
fn SetSpan(&self, _span: u32) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString;
fn SetCh(&self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString;
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult;
fn VAlign(&self) -> DOMString;
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableColElementMethods for JSRef<'a, HTMLTableColElement> {
fn Span(&self) -> u32 {
0
}
fn SetSpan(&self, _span: u32) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Ch(&self) -> DOMString {
"".to_owned()
}
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
Ok(())
}
fn ChOff(&self) -> DOMString {
"".to_owned()
}
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
Ok(())
}
fn VAlign(&self) -> DOMString {
"".to_owned()
}
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTableElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,126 +37,4 @@ impl HTMLTableElement {
}
pub trait HTMLTableElementMethods {
fn DeleteCaption(&self);
fn DeleteTHead(&self);
fn DeleteTFoot(&self);
fn DeleteRow(&self, _index: i32) -> ErrorResult;
fn Sortable(&self) -> bool;
fn SetSortable(&self, _sortable: bool);
fn StopSorting(&self);
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Border(&self) -> DOMString;
fn SetBorder(&self, _border: DOMString) -> ErrorResult;
fn Frame(&self) -> DOMString;
fn SetFrame(&self, _frame: DOMString) -> ErrorResult;
fn Rules(&self) -> DOMString;
fn SetRules(&self, _rules: DOMString) -> ErrorResult;
fn Summary(&self) -> DOMString;
fn SetSummary(&self, _summary: DOMString) -> ErrorResult;
fn Width(&self) -> DOMString;
fn SetWidth(&self, _width: DOMString) -> ErrorResult;
fn BgColor(&self) -> DOMString;
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult;
fn CellPadding(&self) -> DOMString;
fn SetCellPadding(&self, _cell_padding: DOMString) -> ErrorResult;
fn CellSpacing(&self) -> DOMString;
fn SetCellSpacing(&self, _cell_spacing: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
fn DeleteCaption(&self) {
}
fn DeleteTHead(&self) {
}
fn DeleteTFoot(&self) {
}
fn DeleteRow(&self, _index: i32) -> ErrorResult {
Ok(())
}
fn Sortable(&self) -> bool {
false
}
fn SetSortable(&self, _sortable: bool) {
}
fn StopSorting(&self) {
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Border(&self) -> DOMString {
"".to_owned()
}
fn SetBorder(&self, _border: DOMString) -> ErrorResult {
Ok(())
}
fn Frame(&self) -> DOMString {
"".to_owned()
}
fn SetFrame(&self, _frame: DOMString) -> ErrorResult {
Ok(())
}
fn Rules(&self) -> DOMString {
"".to_owned()
}
fn SetRules(&self, _rules: DOMString) -> ErrorResult {
Ok(())
}
fn Summary(&self) -> DOMString {
"".to_owned()
}
fn SetSummary(&self, _summary: DOMString) -> ErrorResult {
Ok(())
}
fn Width(&self) -> DOMString {
"".to_owned()
}
fn SetWidth(&self, _width: DOMString) -> ErrorResult {
Ok(())
}
fn BgColor(&self) -> DOMString {
"".to_owned()
}
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
Ok(())
}
fn CellPadding(&self) -> DOMString {
"".to_owned()
}
fn SetCellPadding(&self, _cell_padding: DOMString) -> ErrorResult {
Ok(())
}
fn CellSpacing(&self) -> DOMString {
"".to_owned()
}
fn SetCellSpacing(&self, _cell_spacing: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableRowElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableRowElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTableRowElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,81 +37,4 @@ impl HTMLTableRowElement {
}
pub trait HTMLTableRowElementMethods {
fn RowIndex(&self) -> i32;
fn GetRowIndex(&self) -> i32;
fn SectionRowIndex(&self) -> i32;
fn GetSectionRowIndex(&self) -> i32;
fn DeleteCell(&self, _index: i32) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString;
fn SetCh(&self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString;
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult;
fn VAlign(&self) -> DOMString;
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult;
fn BgColor(&self) -> DOMString;
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableRowElementMethods for JSRef<'a, HTMLTableRowElement> {
fn RowIndex(&self) -> i32 {
0
}
fn GetRowIndex(&self) -> i32 {
0
}
fn SectionRowIndex(&self) -> i32 {
0
}
fn GetSectionRowIndex(&self) -> i32 {
0
}
fn DeleteCell(&self, _index: i32) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Ch(&self) -> DOMString {
"".to_owned()
}
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
Ok(())
}
fn ChOff(&self) -> DOMString {
"".to_owned()
}
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
Ok(())
}
fn VAlign(&self) -> DOMString {
"".to_owned()
}
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult {
Ok(())
}
fn BgColor(&self) -> DOMString {
"".to_owned()
}
fn SetBgColor(&self, _bg_color: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTableSectionElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTableSectionElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTableSectionElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,51 +37,4 @@ impl HTMLTableSectionElement {
}
pub trait HTMLTableSectionElementMethods {
fn DeleteRow(&self, _index: i32) -> ErrorResult;
fn Align(&self) -> DOMString;
fn SetAlign(&self, _align: DOMString) -> ErrorResult;
fn Ch(&self) -> DOMString;
fn SetCh(&self, _ch: DOMString) -> ErrorResult;
fn ChOff(&self) -> DOMString;
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult;
fn VAlign(&self) -> DOMString;
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult;
}
impl<'a> HTMLTableSectionElementMethods for JSRef<'a, HTMLTableSectionElement> {
fn DeleteRow(&self, _index: i32) -> ErrorResult {
Ok(())
}
fn Align(&self) -> DOMString {
"".to_owned()
}
fn SetAlign(&self, _align: DOMString) -> ErrorResult {
Ok(())
}
fn Ch(&self) -> DOMString {
"".to_owned()
}
fn SetCh(&self, _ch: DOMString) -> ErrorResult {
Ok(())
}
fn ChOff(&self) -> DOMString {
"".to_owned()
}
fn SetChOff(&self, _ch_off: DOMString) -> ErrorResult {
Ok(())
}
fn VAlign(&self) -> DOMString {
"".to_owned()
}
fn SetVAlign(&self, _v_align: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTextAreaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTextAreaElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document;
use dom::element::HTMLTextAreaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,206 +37,4 @@ impl HTMLTextAreaElement {
}
pub trait HTMLTextAreaElementMethods {
fn Autofocus(&self) -> bool;
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult;
fn Cols(&self) -> u32;
fn SetCols(&self, _cols: u32) -> ErrorResult;
fn Disabled(&self) -> bool;
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
fn MaxLength(&self) -> i32;
fn SetMaxLength(&self, _max_length: i32) -> ErrorResult;
fn Name(&self) -> DOMString;
fn SetName(&self, _name: DOMString) -> ErrorResult;
fn Placeholder(&self) -> DOMString;
fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult;
fn ReadOnly(&self) -> bool;
fn SetReadOnly(&self, _read_only: bool) -> ErrorResult;
fn Required(&self) -> bool;
fn SetRequired(&self, _required: bool) -> ErrorResult;
fn Rows(&self) -> u32;
fn SetRows(&self, _rows: u32) -> ErrorResult;
fn Wrap(&self) -> DOMString;
fn SetWrap(&self, _wrap: DOMString) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString);
fn DefaultValue(&self) -> DOMString;
fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult;
fn Value(&self) -> DOMString;
fn SetValue(&self, _value: DOMString);
fn TextLength(&self) -> u32;
fn SetTextLength(&self, _text_length: u32) -> ErrorResult;
fn WillValidate(&self) -> bool;
fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult;
fn ValidationMessage(&self) -> DOMString;
fn CheckValidity(&self) -> bool;
fn SetCustomValidity(&self, _error: DOMString);
fn Select(&self);
fn GetSelectionStart(&self) -> Fallible<u32>;
fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult;
fn GetSelectionEnd(&self) -> Fallible<u32>;
fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult;
fn GetSelectionDirection(&self) -> Fallible<DOMString>;
fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult;
fn SetRangeText(&self, _replacement: DOMString);
}
impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
fn Autofocus(&self) -> bool {
false
}
fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult {
Ok(())
}
fn Cols(&self) -> u32 {
0
}
fn SetCols(&self, _cols: u32) -> ErrorResult {
Ok(())
}
fn Disabled(&self) -> bool {
false
}
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
Ok(())
}
fn MaxLength(&self) -> i32 {
0
}
fn SetMaxLength(&self, _max_length: i32) -> ErrorResult {
Ok(())
}
fn Name(&self) -> DOMString {
"".to_owned()
}
fn SetName(&self, _name: DOMString) -> ErrorResult {
Ok(())
}
fn Placeholder(&self) -> DOMString {
"".to_owned()
}
fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult {
Ok(())
}
fn ReadOnly(&self) -> bool {
false
}
fn SetReadOnly(&self, _read_only: bool) -> ErrorResult {
Ok(())
}
fn Required(&self) -> bool {
false
}
fn SetRequired(&self, _required: bool) -> ErrorResult {
Ok(())
}
fn Rows(&self) -> u32 {
0
}
fn SetRows(&self, _rows: u32) -> ErrorResult {
Ok(())
}
fn Wrap(&self) -> DOMString {
"".to_owned()
}
fn SetWrap(&self, _wrap: DOMString) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) {
}
fn DefaultValue(&self) -> DOMString {
"".to_owned()
}
fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult {
Ok(())
}
fn Value(&self) -> DOMString {
"".to_owned()
}
fn SetValue(&self, _value: DOMString) {
}
fn TextLength(&self) -> u32 {
0
}
fn SetTextLength(&self, _text_length: u32) -> ErrorResult {
Ok(())
}
fn WillValidate(&self) -> bool {
false
}
fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult {
Ok(())
}
fn ValidationMessage(&self) -> DOMString {
"".to_owned()
}
fn CheckValidity(&self) -> bool {
false
}
fn SetCustomValidity(&self, _error: DOMString) {
}
fn Select(&self) {
}
fn GetSelectionStart(&self) -> Fallible<u32> {
Ok(0)
}
fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult {
Ok(())
}
fn GetSelectionEnd(&self) -> Fallible<u32> {
Ok(0)
}
fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult {
Ok(())
}
fn GetSelectionDirection(&self) -> Fallible<DOMString> {
Ok("".to_owned())
}
fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult {
Ok(())
}
fn SetRangeText(&self, _replacement: DOMString) {
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTimeElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTimeElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTimeElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTimeElement {
}
pub trait HTMLTimeElementMethods {
fn DateTime(&self) -> DOMString;
fn SetDateTime(&self, _dateTime: DOMString) -> ErrorResult;
}
impl<'a> HTMLTimeElementMethods for JSRef<'a, HTMLTimeElement> {
fn DateTime(&self) -> DOMString {
"".to_owned()
}
fn SetDateTime(&self, _dateTime: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTitleElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTitleElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTitleElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,16 +37,4 @@ impl HTMLTitleElement {
}
pub trait HTMLTitleElementMethods {
fn Text(&self) -> DOMString;
fn SetText(&self, _text: DOMString) -> ErrorResult;
}
impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
fn Text(&self) -> DOMString {
"".to_owned()
}
fn SetText(&self, _text: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTrackElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTrackElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLTrackElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,61 +37,4 @@ impl HTMLTrackElement {
}
pub trait HTMLTrackElementMethods {
fn Kind(&self) -> DOMString;
fn SetKind(&self, _kind: DOMString) -> ErrorResult;
fn Src(&self) -> DOMString;
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
fn Srclang(&self) -> DOMString;
fn SetSrclang(&self, _srclang: DOMString) -> ErrorResult;
fn Label(&self) -> DOMString;
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
fn Default(&self) -> bool;
fn SetDefault(&self, _default: bool) -> ErrorResult;
fn ReadyState(&self) -> u16;
}
impl<'a> HTMLTrackElementMethods for JSRef<'a, HTMLTrackElement> {
fn Kind(&self) -> DOMString {
"".to_owned()
}
fn SetKind(&self, _kind: DOMString) -> ErrorResult {
Ok(())
}
fn Src(&self) -> DOMString {
"".to_owned()
}
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
Ok(())
}
fn Srclang(&self) -> DOMString {
"".to_owned()
}
fn SetSrclang(&self, _srclang: DOMString) -> ErrorResult {
Ok(())
}
fn Label(&self) -> DOMString {
"".to_owned()
}
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
Ok(())
}
fn Default(&self) -> bool {
false
}
fn SetDefault(&self, _default: bool) -> ErrorResult {
Ok(())
}
fn ReadyState(&self) -> u16 {
0
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLUListElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLUListElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLUListElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,26 +37,4 @@ impl HTMLUListElement {
}
pub trait HTMLUListElementMethods {
fn Compact(&self) -> bool;
fn SetCompact(&self, _compact: bool) -> ErrorResult;
fn Type(&self) -> DOMString;
fn SetType(&self, _type: DOMString) -> ErrorResult;
}
impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> {
fn Compact(&self) -> bool {
false
}
fn SetCompact(&self, _compact: bool) -> ErrorResult {
Ok(())
}
fn Type(&self) -> DOMString {
"".to_owned()
}
fn SetType(&self, _type: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLVideoElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLVideoElementDerived;
use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::error::ErrorResult;
use dom::document::Document;
use dom::element::HTMLVideoElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@ -38,46 +37,4 @@ impl HTMLVideoElement {
}
pub trait HTMLVideoElementMethods {
fn Width(&self) -> u32;
fn SetWidth(&self, _width: u32) -> ErrorResult;
fn Height(&self) -> u32;
fn SetHeight(&self, _height: u32) -> ErrorResult;
fn VideoWidth(&self) -> u32;
fn VideoHeight(&self) -> u32;
fn Poster(&self) -> DOMString;
fn SetPoster(&self, _poster: DOMString) -> ErrorResult;
}
impl<'a> HTMLVideoElementMethods for JSRef<'a, HTMLVideoElement> {
fn Width(&self) -> u32 {
0
}
fn SetWidth(&self, _width: u32) -> ErrorResult {
Ok(())
}
fn Height(&self) -> u32 {
0
}
fn SetHeight(&self, _height: u32) -> ErrorResult {
Ok(())
}
fn VideoWidth(&self) -> u32 {
0
}
fn VideoHeight(&self) -> u32 {
0
}
fn Poster(&self) -> DOMString {
"".to_owned()
}
fn SetPoster(&self, _poster: DOMString) -> ErrorResult {
Ok(())
}
}

View file

@ -44,16 +44,4 @@ impl Text {
}
pub trait TextMethods {
fn SplitText(&self, _offset: u32) -> Fallible<Temporary<Text>>;
fn GetWholeText(&self) -> Fallible<DOMString>;
}
impl<'a> TextMethods for JSRef<'a, Text> {
fn SplitText(&self, _offset: u32) -> Fallible<Temporary<Text>> {
fail!("unimplemented")
}
fn GetWholeText(&self) -> Fallible<DOMString> {
Ok("".to_owned())
}
}

View file

@ -11,44 +11,27 @@
* and create derivative works of this document.
*/
// http://www.whatwg.org/specs/web-apps/current-work/#the-a-element
// http://www.whatwg.org/html/#htmlanchorelement
interface HTMLAnchorElement : HTMLElement {
// No support for stringifier attributes yet
//[SetterThrows]
//stringifier attribute DOMString href;
//stringifier;
[SetterThrows]
attribute DOMString href;
[SetterThrows]
attribute DOMString target;
[SetterThrows]
attribute DOMString download;
[SetterThrows]
attribute DOMString ping;
[SetterThrows]
attribute DOMString rel;
// relList not supported yet
// attribute DOMString target;
// attribute DOMString download;
//[PutForwards=value] attribute DOMSettableTokenList ping;
// attribute DOMString rel;
//readonly attribute DOMTokenList relList;
[SetterThrows]
attribute DOMString hreflang;
[SetterThrows]
attribute DOMString type;
// attribute DOMString hreflang;
// attribute DOMString type;
[SetterThrows]
attribute DOMString text;
// attribute DOMString text;
// also has obsolete members
};
//HTMLAnchorElement implements URLUtils;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLAnchorElement-partial
partial interface HTMLAnchorElement {
[SetterThrows]
attribute DOMString coords;
[SetterThrows]
attribute DOMString charset;
[SetterThrows]
attribute DOMString name;
[SetterThrows]
attribute DOMString rev;
[SetterThrows]
attribute DOMString shape;
// attribute DOMString coords;
// attribute DOMString charset;
// attribute DOMString name;
// attribute DOMString rev;
// attribute DOMString shape;
};

View file

@ -1,39 +1,19 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-applet-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-applet-element
[NeedNewResolve]
// http://www.whatwg.org/html/#htmlappletelement
interface HTMLAppletElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
attribute DOMString alt;
[Pure, SetterThrows]
attribute DOMString archive;
[Pure, SetterThrows]
attribute DOMString code;
[Pure, SetterThrows]
attribute DOMString codeBase;
[Pure, SetterThrows]
attribute DOMString height;
[Pure, SetterThrows]
attribute unsigned long hspace;
[Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
attribute DOMString _object;
[Pure, SetterThrows]
attribute unsigned long vspace;
[Pure, SetterThrows]
attribute DOMString width;
// attribute DOMString align;
// attribute DOMString alt;
// attribute DOMString archive;
// attribute DOMString code;
// attribute DOMString codeBase;
// attribute DOMString height;
// attribute unsigned long hspace;
// attribute DOMString name;
// attribute DOMString _object; // the underscore is not part of the identifier
// attribute unsigned long vspace;
// attribute DOMString width;
};

View file

@ -1,52 +1,26 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-area-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-area-element
// http://www.whatwg.org/html/#htmlareaelement
interface HTMLAreaElement : HTMLElement {
[SetterThrows]
attribute DOMString alt;
[SetterThrows]
attribute DOMString coords;
[SetterThrows]
attribute DOMString shape;
// No support for stringifier attributes yet
//[SetterThrows]
//stringifier attribute DOMString href;
// stringifier;
[SetterThrows]
attribute DOMString href;
[SetterThrows]
attribute DOMString target;
[SetterThrows]
attribute DOMString download;
[SetterThrows]
attribute DOMString ping;
// attribute DOMString alt;
// attribute DOMString coords;
// attribute DOMString shape;
// attribute DOMString target;
// attribute DOMString download;
//[PutForwards=value] attribute DOMSettableTokenList ping;
// attribute DOMString rel;
//readonly attribute DOMTokenList relList;
// attribute DOMString hreflang;
// attribute DOMString type;
// not implemented.
// [SetterThrows]
// attribute DOMString rel;
//readonly attribute DOMTokenList relList;
//
// [SetterThrows]
// attribute DOMString hreflang;
// [SetterThrows]
// attribute DOMString type;
// also has obsolete members
};
//HTMLAreaElement implements URLUtils;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLAreaElement-partial
partial interface HTMLAreaElement {
[SetterThrows]
attribute boolean noHref;
// attribute boolean noHref;
};

View file

@ -1,15 +1,8 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-audio-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[NamedConstructor=Audio(optional DOMString src)]
// http://www.whatwg.org/html/#htmlaudioelement
//[NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};

View file

@ -1,22 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-br-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-br-element
interface HTMLBRElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLBRElement {
[SetterThrows]
attribute DOMString clear;
// http://www.whatwg.org/html/#htmlbrelement
interface HTMLBRElement : HTMLElement {
// also has obsolete members
};
// http://www.whatwg.org/html/#HTMLBRElement-partial
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 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-base-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-base-element
// http://www.whatwg.org/html/#htmlbaseelement
interface HTMLBaseElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString href;
[SetterThrows, Pure]
attribute DOMString target;
// attribute DOMString href;
// attribute DOMString target;
};

View file

@ -1,26 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlbodyelement
interface HTMLBodyElement : HTMLElement {
};
partial interface HTMLBodyElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString text;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString link;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString vLink;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString aLink;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString bgColor;
[SetterThrows] attribute DOMString background;
// also has obsolete members
};
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 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
// http://www.whatwg.org/html/#htmlbuttonelement
interface HTMLButtonElement : HTMLElement {
[SetterThrows, Pure]
attribute boolean autofocus;
[SetterThrows, Pure]
attribute boolean disabled;
[Pure]
readonly attribute HTMLFormElement? form;
[SetterThrows, Pure]
attribute DOMString formAction;
[SetterThrows, Pure]
attribute DOMString formEnctype;
[SetterThrows, Pure]
attribute DOMString formMethod;
[SetterThrows, Pure]
attribute boolean formNoValidate;
[SetterThrows, Pure]
attribute DOMString formTarget;
[SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
attribute DOMString type;
[SetterThrows, Pure]
attribute DOMString value;
// attribute boolean autofocus;
// attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
// attribute DOMString formAction;
// attribute DOMString formEnctype;
// attribute DOMString formMethod;
// attribute boolean formNoValidate;
// attribute DOMString formTarget;
// attribute DOMString name;
// attribute DOMString type;
// attribute DOMString value;
// attribute HTMLMenuElement? menu;
readonly attribute boolean willValidate;
//readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
void setCustomValidity(DOMString error);
//readonly attribute DOMString validationMessage;
//boolean checkValidity();
//boolean reportValidity();
//void setCustomValidity(DOMString error);
//readonly attribute NodeList labels;
};

View file

@ -1,18 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-canvas-element
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlcanvaselement
//typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
interface HTMLCanvasElement : HTMLElement {
[Pure, SetterThrows]
attribute unsigned long width;
[Pure, SetterThrows]
attribute unsigned long height;
// attribute unsigned long width;
// attribute unsigned long height;
//RenderingContext? getContext(DOMString contextId, any... arguments);
//boolean probablySupportsContext(DOMString contextId, any... arguments);
//void setContext(RenderingContext context);
//CanvasProxy transferControlToProxy();
//DOMString toDataURL(optional DOMString type, any... arguments);
//void toBlob(FileCallback? _callback, optional DOMString type, any... arguments);
};

View file

@ -1,11 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is:
* http://dom.spec.whatwg.org/#interface-htmlcollection
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
interface HTMLCollection {
readonly attribute unsigned long length;

View file

@ -1,23 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-dl-element
// http://www.whatwg.org/html/#htmldlistelement
interface HTMLDListElement : HTMLElement {
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLDListElement-partial
partial interface HTMLDListElement {
[SetterThrows]
attribute boolean compact;
// attribute boolean compact;
};

View file

@ -1,13 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-data-element
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmldataelement
interface HTMLDataElement : HTMLElement {
[SetterThrows]
attribute DOMString value;
// attribute DOMString value;
};

View file

@ -1,16 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmldatalistelement
interface HTMLDataListElement : HTMLElement {
readonly attribute HTMLCollection options;
};

View file

@ -1,19 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#htmldirectoryelement
interface HTMLDirectoryElement : HTMLElement {
[SetterThrows, Pure]
attribute boolean compact;
// attribute boolean compact;
};

View file

@ -1,19 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
interface HTMLDivElement : HTMLElement {};
partial interface HTMLDivElement {
[SetterThrows]
attribute DOMString align;
// http://www.whatwg.org/html/#htmldivelement
interface HTMLDivElement : HTMLElement {
// also has obsolete members
};
// 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 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/ and
* http://dev.w3.org/csswg/cssom-view/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlelement
interface HTMLElement : Element {
// metadata attributes
attribute DOMString title;
attribute DOMString lang;
[SetterThrows, Pure]
attribute DOMString dir;
[Throws]
attribute any itemValue;
// attribute DOMString title;
// attribute DOMString lang;
// attribute boolean translate;
// attribute DOMString dir;
//readonly attribute DOMStringMap dataset;
// microdata
// attribute boolean itemScope;
//[PutForwards=value] readonly attribute DOMSettableTokenList itemType;
// attribute DOMString itemId;
//[PutForwards=value] readonly attribute DOMSettableTokenList itemRef;
//[PutForwards=value] readonly attribute DOMSettableTokenList itemProp;
//readonly attribute HTMLPropertiesCollection properties;
// attribute any itemValue; // acts as DOMString on setting
// user interaction
[SetterThrows, Pure]
attribute boolean hidden;
void click();
[SetterThrows, Pure]
attribute long tabIndex;
[Throws]
void focus();
[Throws]
void blur();
[SetterThrows, Pure]
attribute DOMString accessKey;
[Pure]
readonly attribute DOMString accessKeyLabel;
[SetterThrows, Pure]
attribute boolean draggable;
[SetterThrows, Pure]
attribute DOMString contentEditable;
[Pure]
readonly attribute boolean isContentEditable;
[SetterThrows, Pure]
attribute boolean spellcheck;
};
// attribute boolean hidden;
//void click();
// attribute long tabIndex;
//void focus();
//void blur();
// attribute DOMString accessKey;
//readonly attribute DOMString accessKeyLabel;
// attribute boolean draggable;
//[PutForwards=value] readonly attribute DOMSettableTokenList dropzone;
// attribute DOMString contentEditable;
//readonly attribute boolean isContentEditable;
// attribute HTMLMenuElement? contextMenu;
// attribute boolean spellcheck;
//void forceSpellCheck();
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
partial interface HTMLElement {
// CSSOM things are not [Pure] because they can flush
readonly attribute Element? offsetParent;
readonly attribute long offsetTop;
readonly attribute long offsetLeft;
readonly attribute long offsetWidth;
readonly attribute long offsetHeight;
// command API
//readonly attribute DOMString? commandType;
//readonly attribute DOMString? commandLabel;
//readonly attribute DOMString? commandIcon;
//readonly attribute boolean? commandHidden;
//readonly attribute boolean? commandDisabled;
//readonly attribute boolean? commandChecked;
};
HTMLElement implements GlobalEventHandlers;
//HTMLElement implements OnErrorEventHandlerForNodes;

View file

@ -1,38 +1,21 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
* http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
// http://www.whatwg.org/html/#htmlembedelement
interface HTMLEmbedElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString src;
[Pure, SetterThrows]
attribute DOMString type;
[Pure, SetterThrows]
attribute DOMString width;
[Pure, SetterThrows]
attribute DOMString height;
// attribute DOMString src;
// attribute DOMString type;
// attribute DOMString width;
// attribute DOMString height;
//legacycaller any (any... arguments);
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial
// http://www.whatwg.org/html/#HTMLEmbedElement-partial
partial interface HTMLEmbedElement {
[Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
attribute DOMString name;
};
partial interface HTMLEmbedElement {
// GetSVGDocument
Document? getSVGDocument();
// attribute DOMString align;
// attribute DOMString name;
};

View file

@ -1,32 +1,23 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-fieldset-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlfieldsetelement
interface HTMLFieldSetElement : HTMLElement {
[SetterThrows]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[SetterThrows]
attribute DOMString name;
// attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
// attribute DOMString name;
readonly attribute DOMString type;
//readonly attribute DOMString type;
//readonly attribute HTMLFormControlsCollection elements;
readonly attribute HTMLCollection elements;
readonly attribute boolean willValidate;
//readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
void setCustomValidity(DOMString error);
//readonly attribute DOMString validationMessage;
//boolean checkValidity();
//boolean reportValidity();
//void setCustomValidity(DOMString error);
};

View file

@ -1,18 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlfontelement
interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString color;
[SetterThrows] attribute DOMString face;
[SetterThrows] attribute DOMString size;
//[TreatNullAs=EmptyString] attribute DOMString color;
// attribute DOMString face;
// attribute DOMString size;
};

View file

@ -1,46 +1,30 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#htmlformelement
*
* ⓒ Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[OverrideBuiltins]
// http://www.whatwg.org/html/#htmlformelement
//[OverrideBuiltins]
interface HTMLFormElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString acceptCharset;
[Pure, SetterThrows]
attribute DOMString action;
[Pure, SetterThrows]
attribute DOMString autocomplete;
[Pure, SetterThrows]
attribute DOMString enctype;
[Pure, SetterThrows]
attribute DOMString encoding;
[Pure, SetterThrows]
attribute DOMString method;
[Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
attribute boolean noValidate;
[Pure, SetterThrows]
attribute DOMString target;
// attribute DOMString acceptCharset;
// attribute DOMString action;
// attribute DOMString autocomplete;
// attribute DOMString enctype;
// attribute DOMString encoding;
// attribute DOMString method;
// attribute DOMString name;
// attribute boolean noValidate;
// attribute DOMString target;
[Constant]
readonly attribute HTMLCollection elements;
[Pure]
readonly attribute long length;
//readonly attribute HTMLFormControlsCollection elements;
//readonly attribute long length;
//getter Element (unsigned long index);
//getter (RadioNodeList or Element) (DOMString name);
getter Element (unsigned long index);
//void submit();
//void reset();
//boolean checkValidity();
//boolean reportValidity();
[Throws]
void submit();
void reset();
boolean checkValidity();
//void requestAutocomplete();
};

View file

@ -1,32 +1,19 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#htmlframeelement
// http://www.whatwg.org/html/#htmlframeelement
interface HTMLFrameElement : HTMLElement {
[SetterThrows]
attribute DOMString name;
[SetterThrows]
attribute DOMString scrolling;
[SetterThrows]
attribute DOMString src;
[SetterThrows]
attribute DOMString frameBorder;
[SetterThrows]
attribute DOMString longDesc;
[SetterThrows]
attribute boolean noResize;
readonly attribute Document? contentDocument;
readonly attribute Window? contentWindow;
// attribute DOMString name;
// attribute DOMString scrolling;
// attribute DOMString src;
// attribute DOMString frameBorder;
// attribute DOMString longDesc;
// attribute boolean noResize;
//readonly attribute Document? contentDocument;
//readonly attribute WindowProxy? contentWindow;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight;
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth;
//[TreatNullAs=EmptyString] attribute DOMString marginHeight;
//[TreatNullAs=EmptyString] attribute DOMString marginWidth;
};

View file

@ -1,21 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlframesetelement
interface HTMLFrameSetElement : HTMLElement {
[SetterThrows]
attribute DOMString cols;
[SetterThrows]
attribute DOMString rows;
// attribute DOMString cols;
// attribute DOMString rows;
};
//HTMLFrameSetElement implements WindowEventHandlers;

View file

@ -1,30 +1,18 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element
// http://www.whatwg.org/html/#htmlhrelement
interface HTMLHRElement : HTMLElement {
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLHRElement-partial
partial interface HTMLHRElement {
[SetterThrows]
attribute DOMString align;
[SetterThrows]
attribute DOMString color;
[SetterThrows]
attribute boolean noShade;
[SetterThrows]
attribute DOMString size;
[SetterThrows]
attribute DOMString width;
// attribute DOMString align;
// attribute DOMString color;
// attribute boolean noShade;
// attribute DOMString size;
// attribute DOMString width;
};

View file

@ -1,15 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-head-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-head-element
// http://www.whatwg.org/html/#htmlheadelement
interface HTMLHeadElement : HTMLElement {};

View file

@ -1,21 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
// http://www.whatwg.org/html/#htmlheadingelement
interface HTMLHeadingElement : HTMLElement {
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLHeadingElement-partial
partial interface HTMLHeadingElement {
attribute DOMString align;
// attribute DOMString align;
};

View file

@ -1,22 +1,14 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-html-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-html-element
interface HTMLHtmlElement : HTMLElement {};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLHtmlElement {
[SetterThrows, Pure]
attribute DOMString version;
// http://www.whatwg.org/html/#htmlhtmlelement
interface HTMLHtmlElement : HTMLElement {
// also has obsolete members
};
// http://www.whatwg.org/html/#HTMLHtmlElement-partial
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 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-iframe-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmliframeelement
interface HTMLIFrameElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString src;
[SetterThrows, Pure]
attribute DOMString srcdoc;
[SetterThrows, Pure]
attribute DOMString name;
// We're implementing sandbox as a string for now, see bug 845057.
attribute DOMString sandbox;
[SetterThrows, Pure]
attribute boolean allowFullscreen;
[SetterThrows, Pure]
attribute DOMString width;
[SetterThrows, Pure]
attribute DOMString height;
readonly attribute Document? contentDocument;
// attribute DOMString src;
// attribute DOMString srcdoc;
// attribute DOMString name;
//[PutForwards=value] readonly attribute DOMSettableTokenList sandbox;
attribute DOMString sandbox;
// attribute boolean seamless;
// attribute boolean allowFullscreen;
// attribute DOMString width;
// attribute DOMString height;
//readonly attribute Document? contentDocument;
//readonly attribute WindowProxy? contentWindow;
readonly attribute Window? contentWindow;
// 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 {
[SetterThrows, Pure]
attribute DOMString align;
[SetterThrows, Pure]
attribute DOMString scrolling;
[SetterThrows, Pure]
attribute DOMString frameBorder;
[SetterThrows, Pure]
attribute DOMString longDesc;
// attribute DOMString align;
// attribute DOMString scrolling;
// attribute DOMString frameBorder;
// attribute DOMString longDesc;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginHeight;
[TreatNullAs=EmptyString,SetterThrows,Pure] attribute DOMString marginWidth;
};
partial interface HTMLIFrameElement {
// GetSVGDocument
Document? getSVGDocument();
//[TreatNullAs=EmptyString] attribute DOMString marginHeight;
//[TreatNullAs=EmptyString] attribute DOMString marginWidth;
};

View file

@ -1,34 +1,30 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#htmlimageelement
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
// http://www.whatwg.org/html/#htmlimageelement
//[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
attribute DOMString alt;
attribute DOMString src;
[SetterThrows]
attribute DOMString crossOrigin;
// attribute DOMString srcset;
// attribute DOMString crossOrigin;
attribute DOMString useMap;
attribute boolean isMap;
attribute unsigned long width;
attribute unsigned long height;
readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight;
readonly attribute boolean complete;
//readonly attribute unsigned long naturalWidth;
//readonly attribute unsigned long naturalHeight;
//readonly attribute boolean complete;
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLImageElement-partial
partial interface HTMLImageElement {
attribute DOMString name;
// attribute DOMString lowsrc;
attribute DOMString align;
attribute unsigned long hspace;
attribute unsigned long vspace;

View file

@ -1,102 +1,76 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-input-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlinputelement
interface HTMLInputElement : HTMLElement {
[Pure, SetterThrows]
attribute DOMString accept;
[Pure, SetterThrows]
attribute DOMString alt;
[Pure, SetterThrows]
attribute DOMString autocomplete;
[Pure, SetterThrows]
attribute boolean autofocus;
[Pure, SetterThrows]
attribute boolean defaultChecked;
[Pure]
attribute boolean checked;
[Pure, SetterThrows]
attribute boolean disabled;
[Pure, SetterThrows]
attribute DOMString formAction;
[Pure, SetterThrows]
attribute DOMString formEnctype;
[Pure, SetterThrows]
attribute DOMString formMethod;
[Pure, SetterThrows]
attribute boolean formNoValidate;
[Pure, SetterThrows]
attribute DOMString formTarget;
[Pure, SetterThrows]
attribute unsigned long height;
[Pure]
attribute boolean indeterminate;
[Pure, SetterThrows]
attribute DOMString inputMode;
[Pure, SetterThrows]
attribute DOMString max;
[Pure, SetterThrows]
attribute long maxLength;
[Pure, SetterThrows]
attribute DOMString min;
[Pure, SetterThrows]
attribute boolean multiple;
[Pure, SetterThrows]
attribute DOMString name;
[Pure, SetterThrows]
attribute DOMString pattern;
[Pure, SetterThrows]
attribute DOMString placeholder;
[Pure, SetterThrows]
attribute boolean readOnly;
[Pure, SetterThrows]
attribute boolean required;
[Pure, SetterThrows]
attribute unsigned long size;
[Pure, SetterThrows]
attribute DOMString src;
[Pure, SetterThrows]
attribute DOMString step;
[Pure, SetterThrows]
attribute DOMString type;
[Pure, SetterThrows]
attribute DOMString defaultValue;
[Pure, TreatNullAs=EmptyString, SetterThrows]
attribute DOMString value;
attribute unsigned long width;
// attribute DOMString accept;
// attribute DOMString alt;
// attribute DOMString autocomplete;
// attribute boolean autofocus;
// attribute boolean defaultChecked;
// attribute boolean checked;
// attribute DOMString dirName;
// attribute boolean disabled;
//readonly attribute HTMLFormElement? form;
//readonly attribute FileList? files;
// attribute DOMString formAction;
// attribute DOMString formEnctype;
// attribute DOMString formMethod;
// attribute boolean formNoValidate;
// attribute DOMString formTarget;
// attribute unsigned long height;
// attribute boolean indeterminate;
// attribute DOMString inputMode;
//readonly attribute HTMLElement? list;
// attribute DOMString max;
// attribute long maxLength;
// attribute DOMString min;
// attribute long minLength;
// attribute boolean multiple;
// attribute DOMString name;
// attribute DOMString pattern;
// attribute DOMString placeholder;
// attribute boolean readOnly;
// attribute boolean required;
// attribute unsigned long size;
// attribute DOMString src;
// attribute DOMString step;
// attribute DOMString type;
// attribute DOMString defaultValue;
//[TreatNullAs=EmptyString] attribute DOMString value;
// attribute Date? valueAsDate;
// attribute unrestricted double valueAsNumber;
// attribute double valueLow;
// attribute double valueHigh;
// attribute unsigned long width;
[Pure]
readonly attribute boolean willValidate;
[GetterThrows]
readonly attribute DOMString validationMessage;
boolean checkValidity();
void setCustomValidity(DOMString error);
//void stepUp(optional long n = 1);
//void stepDown(optional long n = 1);
void select();
//readonly attribute boolean willValidate;
//readonly attribute ValidityState validity;
//readonly attribute DOMString validationMessage;
//boolean checkValidity();
//boolean reportValidity();
//void setCustomValidity(DOMString error);
//readonly attribute NodeList labels;
//void select();
// attribute unsigned long selectionStart;
// attribute unsigned long selectionEnd;
// attribute DOMString selectionDirection;
//void setRangeText(DOMString replacement);
//void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
//void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
[Throws]
// TODO: unsigned vs signed
attribute long selectionStart;
[Throws]
attribute long selectionEnd;
[Throws]
attribute DOMString selectionDirection;
// also has obsolete members
};
// http://www.whatwg.org/html/#HTMLInputElement-partial
partial interface HTMLInputElement {
[Pure, SetterThrows]
attribute DOMString align;
[Pure, SetterThrows]
attribute DOMString useMap;
// attribute DOMString align;
// attribute DOMString useMap;
};

View file

@ -1,25 +1,16 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-li-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element
// http://www.whatwg.org/html/#htmllielement
interface HTMLLIElement : HTMLElement {
[SetterThrows, Pure]
attribute long value;
// attribute long value;
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLLIElement-partial
partial interface HTMLLIElement {
[SetterThrows, Pure]
attribute DOMString type;
// attribute DOMString type;
};

View file

@ -1,18 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmllabelelement
interface HTMLLabelElement : HTMLElement {
attribute DOMString htmlFor;
//readonly attribute HTMLFormElement? form;
// attribute DOMString htmlFor;
//readonly attribute HTMLElement? control;
};

View file

@ -1,23 +1,16 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element
// http://www.whatwg.org/html/#htmllegendelement
interface HTMLLegendElement : HTMLElement {
//readonly attribute HTMLFormElement? form;
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLLegendElement-partial
partial interface HTMLLegendElement {
[SetterThrows]
attribute DOMString align;
// attribute DOMString align;
};

View file

@ -1,43 +1,26 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
// http://www.whatwg.org/html/#htmllinkelement
interface HTMLLinkElement : HTMLElement {
[Pure]
attribute boolean disabled;
[SetterThrows, Pure]
attribute DOMString href;
[SetterThrows, Pure]
attribute DOMString crossOrigin;
[SetterThrows, Pure]
attribute DOMString rel;
[SetterThrows, Pure]
attribute DOMString media;
[SetterThrows, Pure]
attribute DOMString hreflang;
[SetterThrows, Pure]
attribute DOMString type;
};
// attribute DOMString href;
// attribute DOMString crossOrigin;
// attribute DOMString rel;
//readonly attribute DOMTokenList relList;
// attribute DOMString media;
// attribute DOMString hreflang;
// attribute DOMString type;
//[PutForwards=value] readonly attribute DOMSettableTokenList sizes;
// TODO
// also has obsolete members
};
//HTMLLinkElement implements LinkStyle;
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLLinkElement-partial
partial interface HTMLLinkElement {
[SetterThrows, Pure]
attribute DOMString charset;
[SetterThrows, Pure]
attribute DOMString rev;
[SetterThrows, Pure]
attribute DOMString target;
// attribute DOMString charset;
// attribute DOMString rev;
// attribute DOMString target;
};

View file

@ -1,14 +1,7 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Proprietary.
interface HTMLMainElement : HTMLElement {};

View file

@ -1,19 +1,11 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-map-element
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-map-element
// http://www.whatwg.org/html/#htmlmapelement
interface HTMLMapElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString name;
[Constant]
readonly attribute HTMLCollection areas;
// attribute DOMString name;
//readonly attribute HTMLCollection areas;
//readonly attribute HTMLCollection images;
};

View file

@ -1,67 +1,67 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#media-elements
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/html/#htmlmediaelement
//enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
interface HTMLMediaElement : HTMLElement {
// network state
[SetterThrows]
attribute DOMString src;
readonly attribute DOMString currentSrc;
[SetterThrows]
attribute DOMString crossOrigin;
const unsigned short NETWORK_EMPTY = 0;
const unsigned short NETWORK_IDLE = 1;
const unsigned short NETWORK_LOADING = 2;
const unsigned short NETWORK_NO_SOURCE = 3;
[SetterThrows]
attribute DOMString preload;
void load();
DOMString canPlayType(DOMString type);
// error state
//readonly attribute MediaError? error;
// network state
// attribute DOMString src;
//readonly attribute DOMString currentSrc;
// attribute DOMString crossOrigin;
//const unsigned short NETWORK_EMPTY = 0;
//const unsigned short NETWORK_IDLE = 1;
//const unsigned short NETWORK_LOADING = 2;
//const unsigned short NETWORK_NO_SOURCE = 3;
//readonly attribute unsigned short networkState;
// attribute DOMString preload;
//readonly attribute TimeRanges buffered;
//void load();
//CanPlayTypeResult canPlayType(DOMString type);
// ready state
const unsigned short HAVE_NOTHING = 0;
const unsigned short HAVE_METADATA = 1;
const unsigned short HAVE_CURRENT_DATA = 2;
const unsigned short HAVE_FUTURE_DATA = 3;
const unsigned short HAVE_ENOUGH_DATA = 4;
readonly attribute unsigned short readyState;
readonly attribute boolean seeking;
//const unsigned short HAVE_NOTHING = 0;
//const unsigned short HAVE_METADATA = 1;
//const unsigned short HAVE_CURRENT_DATA = 2;
//const unsigned short HAVE_FUTURE_DATA = 3;
//const unsigned short HAVE_ENOUGH_DATA = 4;
//readonly attribute unsigned short readyState;
//readonly attribute boolean seeking;
// playback state
[SetterThrows]
attribute double currentTime;
readonly attribute boolean paused;
[SetterThrows]
attribute double defaultPlaybackRate;
[SetterThrows]
attribute double playbackRate;
readonly attribute boolean ended;
[SetterThrows]
attribute boolean autoplay;
[SetterThrows]
attribute boolean loop;
[Throws]
void play();
[Throws]
void pause();
// attribute double currentTime;
//void fastSeek(double time);
//readonly attribute unrestricted double duration;
//Date getStartDate();
//readonly attribute boolean paused;
// attribute double defaultPlaybackRate;
// attribute double playbackRate;
//readonly attribute TimeRanges played;
//readonly attribute TimeRanges seekable;
//readonly attribute boolean ended;
// attribute boolean autoplay;
// attribute boolean loop;
//void play();
//void pause();
// media controller
// attribute DOMString mediaGroup;
// attribute MediaController? controller;
// controls
[SetterThrows]
attribute boolean controls;
[SetterThrows]
attribute double volume;
attribute boolean muted;
[SetterThrows]
attribute boolean defaultMuted;
// attribute boolean controls;
// attribute double volume;
// attribute boolean muted;
// attribute boolean defaultMuted;
// tracks
//readonly attribute AudioTrackList audioTracks;
//readonly attribute VideoTrackList videoTracks;
//readonly attribute TextTrackList textTracks;
//TextTrack addTextTrack(TextTrackKind kind, optional DOMString label = "", optional DOMString language = "");
};

View file

@ -1,28 +1,18 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-meta-element
// http://www.whatwg.org/html/#htmlmetaelement
interface HTMLMetaElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString name;
[SetterThrows, Pure]
attribute DOMString httpEquiv;
[SetterThrows, Pure]
attribute DOMString content;
// attribute DOMString name;
// attribute DOMString httpEquiv;
// attribute DOMString content;
// also has obsolete members
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
// http://www.whatwg.org/html/#HTMLMetaElement-partial
partial interface HTMLMetaElement {
[SetterThrows, Pure]
attribute DOMString scheme;
// attribute DOMString scheme;
};

View file

@ -1,28 +1,15 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#the-meter-element
// http://www.whatwg.org/html/#htmlmeterelement
interface HTMLMeterElement : HTMLElement {
[SetterThrows]
attribute double value;
[SetterThrows]
attribute double min;
[SetterThrows]
attribute double max;
[SetterThrows]
attribute double low;
[SetterThrows]
attribute double high;
[SetterThrows]
attribute double optimum;
// attribute double value;
// attribute double min;
// attribute double max;
// attribute double low;
// attribute double high;
// attribute double optimum;
//readonly attribute NodeList labels;
};

View file

@ -1,19 +1,10 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://www.whatwg.org/specs/web-apps/current-work/#attributes-common-to-ins-and-del-elements
// http://www.whatwg.org/html/#htmlmodelement
interface HTMLModElement : HTMLElement {
[SetterThrows, Pure]
attribute DOMString cite;
[SetterThrows, Pure]
attribute DOMString dateTime;
// attribute DOMString cite;
// attribute DOMString dateTime;
};

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