#[repr(C)]pub(crate) struct HTMLInputElement {Show 16 fields
htmlelement: HTMLElement,
input_type: DomRefCell<InputType>,
is_textual_or_password: Cell<bool>,
checked_changed: Cell<bool>,
placeholder: DomRefCell<DOMString>,
size: Cell<u32>,
maxlength: Cell<i32>,
minlength: Cell<i32>,
textinput: DomRefCell<TextInput<EmbedderClipboardProvider>>,
value_dirty: Cell<bool>,
shared_selection: SharedSelection,
form_owner: MutNullableDom<HTMLFormElement>,
labels_node_list: MutNullableDom<NodeList>,
validity_state: MutNullableDom<ValidityState>,
pending_webdriver_response: RefCell<Option<PendingWebDriverResponse>>,
has_scheduled_selectionchange_event: Cell<bool>,
}Fields§
§htmlelement: HTMLElement§input_type: DomRefCell<InputType>§is_textual_or_password: Cell<bool>Whether or not the InputType for this HTMLInputElement renders as
textual input. This is cached so that it can be read during layout.
checked_changed: Cell<bool>§placeholder: DomRefCell<DOMString>§size: Cell<u32>§maxlength: Cell<i32>§minlength: Cell<i32>§textinput: DomRefCell<TextInput<EmbedderClipboardProvider>>§value_dirty: Cell<bool>A SharedSelection that is shared with layout. This can be updated dyanmnically
and layout should reflect the new value after a display list update.
form_owner: MutNullableDom<HTMLFormElement>§labels_node_list: MutNullableDom<NodeList>§validity_state: MutNullableDom<ValidityState>§pending_webdriver_response: RefCell<Option<PendingWebDriverResponse>>§has_scheduled_selectionchange_event: Cell<bool>Implementations§
Source§impl HTMLInputElement
impl HTMLInputElement
fn __assert_parent_type(&self)
Source§impl HTMLInputElement
impl HTMLInputElement
fn new_inherited( local_name: LocalName, prefix: Option<Prefix>, document: &Document, ) -> HTMLInputElement
pub(crate) fn new( cx: &mut JSContext, local_name: LocalName, prefix: Option<Prefix>, document: &Document, proto: Option<HandleObject<'_>>, ) -> DomRoot<HTMLInputElement>
pub(crate) fn auto_directionality(&self) -> Option<String>
pub(crate) fn directionality_from_value(value: &str) -> String
fn is_first_strong_character_rtl(value: &str) -> bool
pub(crate) fn input_type(&self) -> Ref<'_, InputType>
Sourcepub(crate) fn is_nontypeable(&self) -> bool
pub(crate) fn is_nontypeable(&self) -> bool
fn does_minmaxlength_apply(&self) -> bool
fn does_pattern_apply(&self) -> bool
fn does_multiple_apply(&self) -> bool
fn does_value_as_number_apply(&self) -> bool
fn does_value_as_date_apply(&self) -> bool
Sourcefn allowed_value_step(&self) -> Option<f64>
fn allowed_value_step(&self) -> Option<f64>
Sourcefn stepped_minimum(&self) -> Option<f64>
fn stepped_minimum(&self) -> Option<f64>
when allowed_value_step and minimum both exist, this is the smallest value >= minimum that lies on an integer step
Sourcefn stepped_maximum(&self) -> Option<f64>
fn stepped_maximum(&self) -> Option<f64>
when allowed_value_step and maximum both exist, this is the smallest value <= maximum that lies on an integer step
Sourcefn default_minimum(&self) -> Option<f64>
fn default_minimum(&self) -> Option<f64>
Sourcefn default_maximum(&self) -> Option<f64>
fn default_maximum(&self) -> Option<f64>
Sourcefn default_range_value(&self) -> f64
fn default_range_value(&self) -> f64
Sourcefn default_step(&self) -> Option<f64>
fn default_step(&self) -> Option<f64>
Sourcefn step_scale_factor(&self) -> f64
fn step_scale_factor(&self) -> f64
Sourcefn default_step_base(&self) -> Option<f64>
fn default_step_base(&self) -> Option<f64>
Sourcefn step_up_or_down(
&self,
cx: &mut JSContext,
n: i32,
dir: StepDirection,
) -> ErrorResult
fn step_up_or_down( &self, cx: &mut JSContext, n: i32, dir: StepDirection, ) -> ErrorResult
Sourcefn suggestions_source_element(&self) -> Option<DomRoot<HTMLDataListElement>>
fn suggestions_source_element(&self) -> Option<DomRoot<HTMLDataListElement>>
Sourcefn suffers_from_being_missing(&self, value: &DOMString) -> bool
fn suffers_from_being_missing(&self, value: &DOMString) -> bool
Sourcefn suffers_from_type_mismatch(&self, value: &DOMString) -> bool
fn suffers_from_type_mismatch(&self, value: &DOMString) -> bool
Sourcefn suffers_from_pattern_mismatch(
&self,
value: &DOMString,
can_gc: CanGc,
) -> bool
fn suffers_from_pattern_mismatch( &self, value: &DOMString, can_gc: CanGc, ) -> bool
Sourcefn suffers_from_bad_input(&self, value: &DOMString) -> bool
fn suffers_from_bad_input(&self, value: &DOMString) -> bool
Sourcefn suffers_from_length_issues(&self, value: &DOMString) -> ValidationFlags
fn suffers_from_length_issues(&self, value: &DOMString) -> ValidationFlags
Sourcefn suffers_from_range_issues(&self, value: &DOMString) -> ValidationFlags
fn suffers_from_range_issues(&self, value: &DOMString) -> ValidationFlags
Sourcepub(crate) fn is_textual_or_password(&self) -> bool
pub(crate) fn is_textual_or_password(&self) -> bool
Whether this input type renders as a basic text input widget.
fn may_have_embedder_control(&self) -> bool
fn handle_key_reaction( &self, cx: &mut JSContext, action: KeyReaction, event: &Event, )
Sourcefn value_for_shadow_dom(&self) -> DOMString
fn value_for_shadow_dom(&self) -> DOMString
Return a string that represents the contents of the element in its displayed shadow DOM.
fn textinput_mut(&self) -> RefMut<'_, TextInput<EmbedderClipboardProvider>>
Source§impl HTMLInputElement
impl HTMLInputElement
Sourcepub(crate) fn form_datums(
&self,
submitter: Option<FormSubmitterElement<'_>>,
encoding: Option<&'static Encoding>,
) -> Vec<FormDatum>
pub(crate) fn form_datums( &self, submitter: Option<FormSubmitterElement<'_>>, encoding: Option<&'static Encoding>, ) -> Vec<FormDatum>
https://html.spec.whatwg.org/multipage/#constructing-the-form-data-set Steps range from 5.1 to 5.10 (specific to HTMLInputElement)
Sourcefn radio_group_name(&self) -> Option<Atom>
fn radio_group_name(&self) -> Option<Atom>
fn update_checked_state(&self, cx: &mut JSContext, checked: bool, dirty: bool)
pub(crate) fn is_mutable(&self) -> bool
Sourcepub(crate) fn reset(&self, cx: &mut JSContext)
pub(crate) fn reset(&self, cx: &mut JSContext)
https://html.spec.whatwg.org/multipage/#the-input-element:concept-form-reset-control:
The reset algorithm for input elements is to set its user validity, dirty value flag, and dirty checkedness flag back to false, set the value of the element to the value of the value content attribute, if there is one, or the empty string otherwise, set the checkedness of the element to true if the element has a checked content attribute and false if it does not, empty the list of selected files, and then invoke the value sanitization algorithm, if the type attribute’s current state defines one.
Sourcepub(crate) fn clear(&self, cx: &mut JSContext)
pub(crate) fn clear(&self, cx: &mut JSContext)
https://w3c.github.io/webdriver/#ref-for-dfn-clear-algorithm-3 Used by WebDriver to clear the input element.
fn update_placeholder_shown_state(&self)
pub(crate) fn select_files_for_webdriver( &self, test_paths: Vec<DOMString>, response_sender: GenericSender<Result<bool, ErrorStatus>>, )
Sourcefn sanitize_value(&self, value: &mut DOMString)
fn sanitize_value(&self, value: &mut DOMString)
fn selection(&self) -> TextControlSelection<'_, Self>
Sourcefn implicit_submission(&self, cx: &mut JSContext)
fn implicit_submission(&self, cx: &mut JSContext)
Sourcefn convert_string_to_number(&self, value: &str) -> Option<f64>
fn convert_string_to_number(&self, value: &str) -> Option<f64>
Sourcefn convert_number_to_string(&self, value: f64) -> Option<DOMString>
fn convert_number_to_string(&self, value: f64) -> Option<DOMString>
fn value_changed(&self, cx: &mut JSContext)
Sourcefn show_the_picker_if_applicable(&self)
fn show_the_picker_if_applicable(&self)
pub(crate) fn handle_color_picker_response( &self, cx: &mut JSContext, response: Option<RgbColor>, )
pub(crate) fn handle_file_picker_response( &self, cx: &mut JSContext, response: Option<Vec<SelectedFile>>, )
fn handle_focus_event(&self, event: &FocusEvent)
fn handle_mouse_event(&self, mouse_event: &MouseEvent)
Trait Implementations§
Source§impl Activatable for HTMLInputElement
impl Activatable for HTMLInputElement
Source§fn legacy_pre_activation_behavior(
&self,
cx: &mut JSContext,
) -> Option<InputActivationState>
fn legacy_pre_activation_behavior( &self, cx: &mut JSContext, ) -> Option<InputActivationState>
Source§fn legacy_canceled_activation_behavior(
&self,
cx: &mut JSContext,
cache: Option<InputActivationState>,
)
fn legacy_canceled_activation_behavior( &self, cx: &mut JSContext, cache: Option<InputActivationState>, )
Source§fn activation_behavior(
&self,
cx: &mut JSContext,
event: &Event,
target: &EventTarget,
)
fn activation_behavior( &self, cx: &mut JSContext, event: &Event, target: &EventTarget, )
fn as_element(&self) -> &Element
fn is_instance_activatable(&self) -> bool
Source§fn enter_formal_activation_state(&self)
fn enter_formal_activation_state(&self)
fn exit_formal_activation_state(&self)
§impl Castable for HTMLInputElement
impl Castable for HTMLInputElement
Source§impl DomObject for HTMLInputElement
impl DomObject for HTMLInputElement
type ReflectorType = ()
Source§fn reflector(&self) -> &Reflector<Self::ReflectorType>
fn reflector(&self) -> &Reflector<Self::ReflectorType>
Source§impl Drop for HTMLInputElement
impl Drop for HTMLInputElement
Source§impl FormControl for HTMLInputElement
impl FormControl for HTMLInputElement
fn form_owner(&self) -> Option<DomRoot<HTMLFormElement>>
fn set_form_owner(&self, form: Option<&HTMLFormElement>)
fn to_element(&self) -> &Element
fn is_listed(&self) -> bool
fn set_form_owner_from_parser(&self, form: &HTMLFormElement, can_gc: CanGc)
Source§fn reset_form_owner(&self, can_gc: CanGc)
fn reset_form_owner(&self, can_gc: CanGc)
Source§fn form_attribute_mutated(&self, mutation: AttributeMutation<'_>, can_gc: CanGc)
fn form_attribute_mutated(&self, mutation: AttributeMutation<'_>, can_gc: CanGc)
Source§fn register_if_necessary(&self)
fn register_if_necessary(&self)
fn unregister_if_necessary(&self)
Source§fn bind_form_control_to_tree(&self, can_gc: CanGc)
fn bind_form_control_to_tree(&self, can_gc: CanGc)
Source§fn unbind_form_control_from_tree(&self, can_gc: CanGc)
fn unbind_form_control_from_tree(&self, can_gc: CanGc)
fn get_form_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> DOMString
fn get_form_boolean_attribute<InputFn, OwnerFn>( &self, attr: &LocalName, input: InputFn, owner: OwnerFn, ) -> bool
Source§fn is_candidate_for_constraint_validation(&self) -> bool
fn is_candidate_for_constraint_validation(&self) -> bool
fn moving_steps(&self, cx: &mut JSContext)
Source§impl HTMLInputElementMethods<DomTypeHolder> for HTMLInputElement
impl HTMLInputElementMethods<DomTypeHolder> for HTMLInputElement
Source§fn SetChecked(&self, cx: &mut JSContext, checked: bool)
fn SetChecked(&self, cx: &mut JSContext, checked: bool)
Source§fn ValueAsNumber(&self) -> f64
fn ValueAsNumber(&self) -> f64
Source§fn SetValueAsNumber(&self, cx: &mut JSContext, value: f64) -> ErrorResult
fn SetValueAsNumber(&self, cx: &mut JSContext, value: f64) -> ErrorResult
Source§fn Indeterminate(&self) -> bool
fn Indeterminate(&self) -> bool
Source§fn SetIndeterminate(&self, _cx: &mut JSContext, val: bool)
fn SetIndeterminate(&self, _cx: &mut JSContext, val: bool)
Source§fn GetLabels(&self, cx: &mut JSContext) -> Option<DomRoot<NodeList>>
fn GetLabels(&self, cx: &mut JSContext) -> Option<DomRoot<NodeList>>
https://html.spec.whatwg.org/multipage/#dom-lfe-labels Different from make_labels_getter because this one conditionally returns null.
Source§fn GetSelectionStart(&self) -> Option<u32>
fn GetSelectionStart(&self) -> Option<u32>
Source§fn SetSelectionStart(
&self,
_cx: &mut JSContext,
start: Option<u32>,
) -> ErrorResult
fn SetSelectionStart( &self, _cx: &mut JSContext, start: Option<u32>, ) -> ErrorResult
Source§fn GetSelectionEnd(&self) -> Option<u32>
fn GetSelectionEnd(&self) -> Option<u32>
Source§fn SetSelectionEnd(&self, _cx: &mut JSContext, end: Option<u32>) -> ErrorResult
fn SetSelectionEnd(&self, _cx: &mut JSContext, end: Option<u32>) -> ErrorResult
Source§fn GetSelectionDirection(&self) -> Option<DOMString>
fn GetSelectionDirection(&self) -> Option<DOMString>
Source§fn SetSelectionDirection(
&self,
_cx: &mut JSContext,
direction: Option<DOMString>,
) -> ErrorResult
fn SetSelectionDirection( &self, _cx: &mut JSContext, direction: Option<DOMString>, ) -> ErrorResult
Source§fn SetSelectionRange(
&self,
start: u32,
end: u32,
direction: Option<DOMString>,
) -> ErrorResult
fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> ErrorResult
Source§fn SetRangeText(&self, replacement: DOMString) -> ErrorResult
fn SetRangeText(&self, replacement: DOMString) -> ErrorResult
Source§fn SetRangeText_(
&self,
replacement: DOMString,
start: u32,
end: u32,
selection_mode: SelectionMode,
) -> ErrorResult
fn SetRangeText_( &self, replacement: DOMString, start: u32, end: u32, selection_mode: SelectionMode, ) -> ErrorResult
Source§fn SelectFiles(&self, paths: Vec<DOMString>)
fn SelectFiles(&self, paths: Vec<DOMString>)
Select the files based on filepaths passed in, enabled by
dom_testing_html_input_element_select_files_enabled, used for test purpose.
Source§fn CheckValidity(&self, cx: &mut JSContext) -> bool
fn CheckValidity(&self, cx: &mut JSContext) -> bool
Source§fn ReportValidity(&self, cx: &mut JSContext) -> bool
fn ReportValidity(&self, cx: &mut JSContext) -> bool
Source§fn ValidationMessage(&self) -> DOMString
fn ValidationMessage(&self) -> DOMString
Source§fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString)
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString)
fn Accept(&self) -> DOMString
fn SetAccept(&self, cx: &mut JSContext, value: DOMString)
fn Alpha(&self) -> bool
fn SetAlpha(&self, cx: &mut JSContext, value: bool)
fn Alt(&self) -> DOMString
fn SetAlt(&self, cx: &mut JSContext, value: DOMString)
fn DirName(&self) -> DOMString
fn SetDirName(&self, cx: &mut JSContext, value: DOMString)
fn Disabled(&self) -> bool
fn SetDisabled(&self, cx: &mut JSContext, value: bool)
fn DefaultChecked(&self) -> bool
fn SetDefaultChecked(&self, cx: &mut JSContext, value: bool)
fn ColorSpace(&self) -> DOMString
fn SetColorSpace(&self, cx: &mut JSContext, value: DOMString)
fn ReadOnly(&self) -> bool
fn SetReadOnly(&self, cx: &mut JSContext, value: bool)
fn Size(&self) -> u32
fn SetSize(&self, cx: &mut JSContext, value: u32) -> ErrorResult
fn SetType(&self, cx: &mut JSContext, value: DOMString)
fn DefaultValue(&self) -> DOMString
fn SetDefaultValue(&self, cx: &mut JSContext, value: DOMString)
fn Min(&self) -> DOMString
fn SetMin(&self, cx: &mut JSContext, value: DOMString)
fn GetValueAsDate(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>
fn SetValueAsDate( &self, cx: &mut JSContext, value: *mut JSObject, ) -> ErrorResult
fn Name(&self) -> DOMString
fn SetName(&self, cx: &mut JSContext, value: DOMString)
fn Placeholder(&self) -> DOMString
fn SetPlaceholder(&self, cx: &mut JSContext, value: DOMString)
fn FormAction(&self) -> DOMString
fn SetFormAction(&self, cx: &mut JSContext, value: DOMString)
fn FormEnctype(&self) -> DOMString
fn SetFormEnctype(&self, cx: &mut JSContext, value: DOMString)
fn FormMethod(&self) -> DOMString
fn SetFormMethod(&self, cx: &mut JSContext, value: DOMString)
fn FormTarget(&self) -> DOMString
fn SetFormTarget(&self, cx: &mut JSContext, value: DOMString)
fn FormNoValidate(&self) -> bool
fn SetFormNoValidate(&self, cx: &mut JSContext, value: bool)
fn Max(&self) -> DOMString
fn SetMax(&self, cx: &mut JSContext, value: DOMString)
fn MaxLength(&self) -> i32
fn SetMaxLength(&self, cx: &mut JSContext, value: i32) -> ErrorResult
fn MinLength(&self) -> i32
fn SetMinLength(&self, cx: &mut JSContext, value: i32) -> ErrorResult
fn Multiple(&self) -> bool
fn SetMultiple(&self, cx: &mut JSContext, value: bool)
fn Pattern(&self) -> DOMString
fn SetPattern(&self, cx: &mut JSContext, value: DOMString)
fn Required(&self) -> bool
fn SetRequired(&self, cx: &mut JSContext, value: bool)
fn Src(&self) -> USVString
fn SetSrc(&self, cx: &mut JSContext, value: USVString)
fn Step(&self) -> DOMString
fn SetStep(&self, cx: &mut JSContext, value: DOMString)
fn UseMap(&self) -> DOMString
fn SetUseMap(&self, cx: &mut JSContext, value: DOMString)
Source§impl HasParent for HTMLInputElement
impl HasParent for HTMLInputElement
Source§fn as_parent(&self) -> &HTMLElement
fn as_parent(&self) -> &HTMLElement
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
type Parent = HTMLElement
Source§impl IDLInterface for HTMLInputElement
impl IDLInterface for HTMLInputElement
Source§const PROTO_FIRST: u16 = 237
const PROTO_FIRST: u16 = 237
Source§const PROTO_LAST: u16 = 237
const PROTO_LAST: u16 = 237
Source§impl MallocSizeOf for HTMLInputElement
impl MallocSizeOf for HTMLInputElement
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl MutDomObject for HTMLInputElement
impl MutDomObject for HTMLInputElement
Source§impl PartialEq for HTMLInputElement
impl PartialEq for HTMLInputElement
Source§impl TextControlElement for HTMLInputElement
impl TextControlElement for HTMLInputElement
Source§fn selection_api_applies(&self) -> bool
fn selection_api_applies(&self) -> bool
fn has_selectable_text(&self) -> bool
fn has_uncollapsed_selection(&self) -> bool
fn set_dirty_value_flag(&self, value: bool)
fn select_all(&self)
fn is_password_field(&self) -> bool
fn placeholder_text<'a>(&'a self) -> Ref<'a, DOMString>
fn value_text(&self) -> DOMString
Source§impl ToJSValConvertible for HTMLInputElement
impl ToJSValConvertible for HTMLInputElement
Source§unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
self to a JSVal. JSAPI failure causes a panic.Source§fn safe_to_jsval(&self, cx: &mut JSContext, rval: MutableHandle<'_, Value>)
fn safe_to_jsval(&self, cx: &mut JSContext, rval: MutableHandle<'_, Value>)
self to a JSVal. JSAPI failure causes a panic.Source§impl Traceable for HTMLInputElement
impl Traceable for HTMLInputElement
Source§impl Validatable for HTMLInputElement
impl Validatable for HTMLInputElement
fn as_element(&self) -> &Element
Source§fn validity_state(&self, can_gc: CanGc) -> DomRoot<ValidityState>
fn validity_state(&self, can_gc: CanGc) -> DomRoot<ValidityState>
Source§fn is_instance_validatable(&self) -> bool
fn is_instance_validatable(&self) -> bool
fn perform_validation( &self, validate_flags: ValidationFlags, can_gc: CanGc, ) -> ValidationFlags
Source§fn satisfies_constraints(&self, can_gc: CanGc) -> bool
fn satisfies_constraints(&self, can_gc: CanGc) -> bool
Source§fn check_validity(&self, cx: &mut JSContext) -> bool
fn check_validity(&self, cx: &mut JSContext) -> bool
Source§fn report_validity(&self, cx: &mut JSContext) -> bool
fn report_validity(&self, cx: &mut JSContext) -> bool
Source§impl VirtualMethods for HTMLInputElement
impl VirtualMethods for HTMLInputElement
Source§fn handle_event(&self, cx: &mut JSContext, event: &Event)
fn handle_event(&self, cx: &mut JSContext, event: &Event)
Source§fn cloning_steps(
&self,
cx: &mut JSContext,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag,
)
fn cloning_steps( &self, cx: &mut JSContext, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, )
Source§fn super_type(&self) -> Option<&dyn VirtualMethods>
fn super_type(&self) -> Option<&dyn VirtualMethods>
Source§fn attribute_mutated(
&self,
cx: &mut JSContext,
attr: AttrRef<'_>,
mutation: AttributeMutation<'_>,
)
fn attribute_mutated( &self, cx: &mut JSContext, attr: AttrRef<'_>, mutation: AttributeMutation<'_>, )
Source§fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue
name
on this element.Source§fn bind_to_tree(&self, cx: &mut JSContext, context: &BindContext<'_>)
fn bind_to_tree(&self, cx: &mut JSContext, context: &BindContext<'_>)
Source§fn unbind_from_tree(&self, cx: &mut JSContext, context: &UnbindContext<'_>)
fn unbind_from_tree(&self, cx: &mut JSContext, context: &UnbindContext<'_>)
Source§fn attribute_affects_presentational_hints(&self, attr: AttrRef<'_>) -> bool
fn attribute_affects_presentational_hints(&self, attr: AttrRef<'_>) -> bool
true if given attribute attr affects style of the
given element.Source§fn post_connection_steps(&self, cx: &mut JSContext)
fn post_connection_steps(&self, cx: &mut JSContext)
Source§fn moving_steps(&self, cx: &mut JSContext, context: &MoveContext<'_>)
fn moving_steps(&self, cx: &mut JSContext, context: &MoveContext<'_>)
Source§fn children_changed(&self, cx: &mut JSContext, mutation: &ChildrenMutation<'_>)
fn children_changed(&self, cx: &mut JSContext, mutation: &ChildrenMutation<'_>)
Source§fn is_valid_command_steps(&self, command: CommandState) -> bool
fn is_valid_command_steps(&self, command: CommandState) -> bool
Source§fn command_steps(
&self,
cx: &mut JSContext,
button: DomRoot<HTMLButtonElement>,
command: CommandState,
) -> bool
fn command_steps( &self, cx: &mut JSContext, button: DomRoot<HTMLButtonElement>, command: CommandState, ) -> bool
Source§fn adopting_steps(&self, cx: &mut JSContext, old_doc: &Document)
fn adopting_steps(&self, cx: &mut JSContext, old_doc: &Document)
impl DerivedFrom<Element> for HTMLInputElement
impl DerivedFrom<EventTarget> for HTMLInputElement
impl DerivedFrom<HTMLElement> for HTMLInputElement
impl DerivedFrom<Node> for HTMLInputElement
impl Eq for HTMLInputElement
Auto Trait Implementations§
impl !Freeze for HTMLInputElement
impl !RefUnwindSafe for HTMLInputElement
impl !Send for HTMLInputElement
impl !Sync for HTMLInputElement
impl Unpin for HTMLInputElement
impl UnsafeUnpin for HTMLInputElement
impl !UnwindSafe for HTMLInputElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<D, T> DomGlobalGeneric<D> for T
impl<D, T> DomGlobalGeneric<D> for T
Source§fn global_(&self, realm: InRealm<'_>) -> Root<Dom<<D as DomTypes>::GlobalScope>>where
Self: Sized,
fn global_(&self, realm: InRealm<'_>) -> Root<Dom<<D as DomTypes>::GlobalScope>>where
Self: Sized,
GlobalScope] of the realm that the DomObject was created in. If this
object is a Node, this will be different from it’s owning Document if adopted by. For
Nodes it’s almost always better to use NodeTraits::owning_global.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more