pub trait HTMLInputElementMethods {
Show 84 methods
// Required methods
fn Accept(&self) -> DOMString;
fn SetAccept(&self, value: DOMString);
fn Alt(&self) -> DOMString;
fn SetAlt(&self, value: DOMString);
fn DefaultChecked(&self) -> bool;
fn SetDefaultChecked(&self, value: bool);
fn Checked(&self) -> bool;
fn SetChecked(&self, value: bool);
fn DirName(&self) -> DOMString;
fn SetDirName(&self, value: DOMString);
fn Disabled(&self) -> bool;
fn SetDisabled(&self, value: bool);
fn GetForm(&self) -> Option<Root<Dom<HTMLFormElement>>>;
fn GetFiles(&self) -> Option<Root<Dom<FileList>>>;
fn SetFiles(&self, value: Option<&FileList>);
fn FormAction(&self) -> DOMString;
fn SetFormAction(&self, value: DOMString);
fn FormEnctype(&self) -> DOMString;
fn SetFormEnctype(&self, value: DOMString);
fn FormMethod(&self) -> DOMString;
fn SetFormMethod(&self, value: DOMString);
fn FormNoValidate(&self) -> bool;
fn SetFormNoValidate(&self, value: bool);
fn FormTarget(&self) -> DOMString;
fn SetFormTarget(&self, value: DOMString);
fn Indeterminate(&self) -> bool;
fn SetIndeterminate(&self, value: bool);
fn GetList(&self) -> Option<Root<Dom<HTMLDataListElement>>>;
fn Max(&self) -> DOMString;
fn SetMax(&self, value: DOMString);
fn MaxLength(&self) -> i32;
fn SetMaxLength(&self, value: i32) -> Result<(), Error>;
fn Min(&self) -> DOMString;
fn SetMin(&self, value: DOMString);
fn MinLength(&self) -> i32;
fn SetMinLength(&self, value: i32) -> Result<(), Error>;
fn Multiple(&self) -> bool;
fn SetMultiple(&self, value: bool);
fn Name(&self) -> DOMString;
fn SetName(&self, value: DOMString);
fn Pattern(&self) -> DOMString;
fn SetPattern(&self, value: DOMString);
fn Placeholder(&self) -> DOMString;
fn SetPlaceholder(&self, value: DOMString);
fn ReadOnly(&self) -> bool;
fn SetReadOnly(&self, value: bool);
fn Required(&self) -> bool;
fn SetRequired(&self, value: bool);
fn Size(&self) -> u32;
fn SetSize(&self, value: u32) -> Result<(), Error>;
fn Src(&self) -> USVString;
fn SetSrc(&self, value: USVString);
fn Step(&self) -> DOMString;
fn SetStep(&self, value: DOMString);
fn Type(&self) -> DOMString;
fn SetType(&self, value: DOMString);
fn DefaultValue(&self) -> DOMString;
fn SetDefaultValue(&self, value: DOMString);
fn Value(&self) -> DOMString;
fn SetValue(&self, value: DOMString, _can_gc: CanGc) -> Result<(), Error>;
fn GetValueAsDate(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>;
fn SetValueAsDate(
&self,
cx: SafeJSContext,
value: *mut JSObject,
_can_gc: CanGc,
) -> Result<(), Error>;
fn ValueAsNumber(&self) -> f64;
fn SetValueAsNumber(&self, value: f64, _can_gc: CanGc) -> Result<(), Error>;
fn StepUp(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>;
fn StepDown(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>;
fn WillValidate(&self) -> bool;
fn Validity(&self) -> Root<Dom<ValidityState>>;
fn ValidationMessage(&self) -> DOMString;
fn CheckValidity(&self, _can_gc: CanGc) -> bool;
fn ReportValidity(&self, _can_gc: CanGc) -> bool;
fn SetCustomValidity(&self, error: DOMString);
fn GetLabels(&self) -> Option<Root<Dom<NodeList>>>;
fn Select(&self);
fn GetSelectionStart(&self) -> Option<u32>;
fn SetSelectionStart(&self, value: Option<u32>) -> Result<(), Error>;
fn GetSelectionEnd(&self) -> Option<u32>;
fn SetSelectionEnd(&self, value: Option<u32>) -> Result<(), Error>;
fn GetSelectionDirection(&self) -> Option<DOMString>;
fn SetSelectionDirection(
&self,
value: Option<DOMString>,
) -> Result<(), Error>;
fn SetRangeText(&self, replacement: DOMString) -> Result<(), Error>;
fn SetRangeText_(
&self,
replacement: DOMString,
start: u32,
end: u32,
selectionMode: SelectionMode,
) -> Result<(), Error>;
fn SetSelectionRange(
&self,
start: u32,
end: u32,
direction: Option<DOMString>,
) -> Result<(), Error>;
fn SelectFiles(&self, path: Vec<DOMString>, _can_gc: CanGc);
}