pub trait HTMLElementMethods<D: DomTypes> {
Show 176 methods
// Required methods
fn Title(&self) -> DOMString;
fn SetTitle(&self, value: DOMString);
fn Lang(&self) -> DOMString;
fn SetLang(&self, value: DOMString);
fn Translate(&self) -> bool;
fn SetTranslate(&self, value: bool, _can_gc: CanGc);
fn Dir(&self) -> DOMString;
fn SetDir(&self, value: DOMString);
fn Dataset(&self) -> Root<Dom<DOMStringMap>>;
fn PropertyNames(&self) -> Option<Vec<DOMString>>;
fn Itemtypes(&self) -> Option<Vec<DOMString>>;
fn Hidden(&self) -> bool;
fn SetHidden(&self, value: bool);
fn Click(&self, _can_gc: CanGc);
fn Focus(&self, _can_gc: CanGc);
fn Blur(&self, _can_gc: CanGc);
fn InnerText(&self, _can_gc: CanGc) -> DOMString;
fn SetInnerText(&self, value: DOMString, _can_gc: CanGc);
fn GetOuterText(&self, _can_gc: CanGc) -> Result<DOMString, Error>;
fn SetOuterText(
&self,
value: DOMString,
_can_gc: CanGc,
) -> Result<(), Error>;
fn AttachInternals(&self) -> Result<Root<Dom<ElementInternals>>, Error>;
fn GetOffsetParent(&self, _can_gc: CanGc) -> Option<Root<Dom<Element>>>;
fn OffsetTop(&self, _can_gc: CanGc) -> i32;
fn OffsetLeft(&self, _can_gc: CanGc) -> i32;
fn OffsetWidth(&self, _can_gc: CanGc) -> i32;
fn OffsetHeight(&self, _can_gc: CanGc) -> i32;
fn GetOncopy(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncopy(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncut(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncut(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnpaste(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnpaste(&self, value: Option<Rc<EventHandlerNonNull>>);
fn Style(&self) -> Root<Dom<CSSStyleDeclaration>>;
fn ContentEditable(&self) -> DOMString;
fn SetContentEditable(&self, value: DOMString);
fn IsContentEditable(&self) -> bool;
fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnblur(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnblur(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncancel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncancel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncanplay(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncanplay(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncanplaythrough(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncanplaythrough(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclick(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclick(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclose(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclose(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncontextmenu(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncontextmenu(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncuechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncuechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndblclick(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndblclick(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndrag(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndrag(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragenter(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragenter(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragexit(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragexit(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragleave(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragleave(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragover(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragover(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndrop(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndrop(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndurationchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndurationchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnemptied(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnemptied(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnended(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnended(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnerror(
&self,
_can_gc: CanGc,
) -> Option<Rc<OnErrorEventHandlerNonNull>>;
fn SetOnerror(&self, value: Option<Rc<OnErrorEventHandlerNonNull>>);
fn GetOnfocus(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnfocus(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnformdata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnformdata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOninput(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOninput(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOninvalid(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOninvalid(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeydown(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeydown(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeypress(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeypress(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeyup(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeyup(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnload(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnload(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadeddata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadeddata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadedmetadata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadedmetadata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmousedown(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmousedown(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseenter(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseenter(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseleave(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseleave(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmousemove(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmousemove(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseout(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseout(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseover(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseover(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseup(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseup(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnwheel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnwheel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnpause(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnpause(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnplay(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnplay(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnplaying(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnplaying(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnprogress(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnprogress(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnratechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnratechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnreset(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnreset(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnresize(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnresize(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnscroll(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnscroll(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsecuritypolicyviolation(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsecuritypolicyviolation(
&self,
value: Option<Rc<EventHandlerNonNull>>,
);
fn GetOnseeked(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnseeked(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnseeking(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnseeking(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselect(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselect(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnshow(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnshow(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnstalled(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnstalled(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsubmit(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsubmit(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsuspend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsuspend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntimeupdate(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntimeupdate(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntoggle(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntoggle(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnvolumechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnvolumechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnwaiting(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnwaiting(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnanimationend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnanimationend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnanimationiteration(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnanimationiteration(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitionrun(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitionrun(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitionend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitionend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitioncancel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitioncancel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselectstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselectstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselectionchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselectionchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn Autofocus(&self) -> bool;
fn SetAutofocus(&self, value: bool, _can_gc: CanGc);
}