#[repr(C)]pub struct Element {Show 14 fields
node: Node,
local_name: LocalName,
tag_name: TagName,
namespace: Namespace,
prefix: DomRefCell<Option<Prefix>>,
attrs: DomRefCell<Vec<Dom<Attr>>>,
id_attribute: DomRefCell<Option<Atom>>,
is: DomRefCell<Option<LocalName>>,
style_attribute: DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>,
attr_list: MutNullableDom<NamedNodeMap>,
class_list: MutNullableDom<DOMTokenList>,
state: Cell<ElementState>,
selector_flags: Cell<ElementSelectorFlags>,
rare_data: DomRefCell<Option<Box<ElementRareData>>>,
}
Expand description
Fields§
§node: Node
§local_name: LocalName
§tag_name: TagName
§namespace: Namespace
§prefix: DomRefCell<Option<Prefix>>
§attrs: DomRefCell<Vec<Dom<Attr>>>
§id_attribute: DomRefCell<Option<Atom>>
§is: DomRefCell<Option<LocalName>>
§style_attribute: DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
§attr_list: MutNullableDom<NamedNodeMap>
§class_list: MutNullableDom<DOMTokenList>
§state: Cell<ElementState>
§selector_flags: Cell<ElementSelectorFlags>
These flags are set by the style system to indicate the that certain operations may require restyling this element or its descendants. The flags are not atomic, so the style system takes care of only set them when it has exclusive access to the element.
rare_data: DomRefCell<Option<Box<ElementRareData>>>
Implementations§
Source§impl Element
impl Element
fn __assert_parent_type(&self)
Source§impl Element
impl Element
pub(crate) fn create( name: QualName, is: Option<LocalName>, document: &Document, creator: ElementCreator, mode: CustomElementCreationMode, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<Element>
pub(crate) fn new_inherited( local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document, ) -> Element
pub(crate) fn new_inherited_with_state( state: ElementState, local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document, ) -> Element
pub(crate) fn new( local_name: LocalName, namespace: Namespace, prefix: Option<Prefix>, document: &Document, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<Element>
fn rare_data(&self) -> Ref<'_, Option<Box<ElementRareData>>>
fn rare_data_mut(&self) -> RefMut<'_, Option<Box<ElementRareData>>>
fn ensure_rare_data(&self) -> RefMut<'_, Box<ElementRareData>>
pub(crate) fn restyle(&self, damage: NodeDamage)
pub(crate) fn set_is(&self, is: LocalName)
Sourcepub(crate) fn set_custom_element_state(&self, state: CustomElementState)
pub(crate) fn set_custom_element_state(&self, state: CustomElementState)
pub(crate) fn get_custom_element_state(&self) -> CustomElementState
pub(crate) fn set_custom_element_definition( &self, definition: Rc<CustomElementDefinition>, )
pub(crate) fn get_custom_element_definition( &self, ) -> Option<Rc<CustomElementDefinition>>
pub(crate) fn clear_custom_element_definition(&self)
pub(crate) fn push_callback_reaction( &self, function: Rc<Function<DomTypeHolder>>, args: Box<[Heap<JSVal>]>, )
pub(crate) fn push_upgrade_reaction( &self, definition: Rc<CustomElementDefinition>, )
pub(crate) fn clear_reaction_queue(&self)
pub(crate) fn invoke_reactions(&self, can_gc: CanGc)
Sourcepub(crate) fn style(&self, can_gc: CanGc) -> Option<Arc<ComputedValues>>
pub(crate) fn style(&self, can_gc: CanGc) -> Option<Arc<ComputedValues>>
style will be None
for elements in a display: none
subtree. otherwise, the element has a
layout box iff it doesn’t have display: none
.
pub(crate) fn has_css_layout_box(&self, can_gc: CanGc) -> bool
fn is_potentially_scrollable_body(&self, can_gc: CanGc) -> bool
fn has_scrolling_box(&self, can_gc: CanGc) -> bool
fn has_overflow(&self, can_gc: CanGc) -> bool
pub(crate) fn shadow_root(&self) -> Option<DomRoot<ShadowRoot>>
pub(crate) fn is_shadow_host(&self) -> bool
Sourcepub(crate) fn attach_shadow(
&self,
is_ua_widget: IsUserAgentWidget,
mode: ShadowRootMode,
clonable: bool,
serializable: bool,
delegates_focus: bool,
slot_assignment_mode: SlotAssignmentMode,
can_gc: CanGc,
) -> Fallible<DomRoot<ShadowRoot>>
pub(crate) fn attach_shadow( &self, is_ua_widget: IsUserAgentWidget, mode: ShadowRootMode, clonable: bool, serializable: bool, delegates_focus: bool, slot_assignment_mode: SlotAssignmentMode, can_gc: CanGc, ) -> Fallible<DomRoot<ShadowRoot>>
pub(crate) fn detach_shadow(&self)
pub(crate) fn is_translate_enabled(&self) -> bool
pub(crate) fn directionality(&self) -> String
pub(crate) fn is_root(&self) -> bool
Sourcepub(crate) fn registered_intersection_observers_mut(
&self,
) -> RefMut<'_, Vec<IntersectionObserverRegistration>>
pub(crate) fn registered_intersection_observers_mut( &self, ) -> RefMut<'_, Vec<IntersectionObserverRegistration>>
Return all IntersectionObserverRegistration for this element. Lazily initialize the raredata if it does not exist.
pub(crate) fn registered_intersection_observers( &self, ) -> Option<Ref<'_, Vec<IntersectionObserverRegistration>>>
pub(crate) fn get_intersection_observer_registration( &self, observer: &IntersectionObserver, ) -> Option<Ref<'_, IntersectionObserverRegistration>>
Sourcepub(crate) fn add_initial_intersection_observer_registration(
&self,
observer: &IntersectionObserver,
)
pub(crate) fn add_initial_intersection_observer_registration( &self, observer: &IntersectionObserver, )
Add a new IntersectionObserverRegistration with initial value to the element.
Sourcepub(crate) fn remove_intersection_observer(
&self,
observer: &IntersectionObserver,
)
pub(crate) fn remove_intersection_observer( &self, observer: &IntersectionObserver, )
Removes a certain IntersectionObserver.
Source§impl Element
impl Element
pub(crate) fn is_html_element(&self) -> bool
pub(crate) fn html_element_in_html_document(&self) -> bool
pub(crate) fn local_name(&self) -> &LocalName
pub(crate) fn parsed_name(&self, name: DOMString) -> LocalName
pub(crate) fn namespace(&self) -> &Namespace
pub(crate) fn prefix(&self) -> Ref<'_, Option<Prefix>>
pub(crate) fn set_prefix(&self, prefix: Option<Prefix>)
pub(crate) fn attrs(&self) -> Ref<'_, [Dom<Attr>]>
pub(crate) fn locate_namespace(&self, prefix: Option<DOMString>) -> Namespace
pub(crate) fn name_attribute(&self) -> Option<Atom>
pub(crate) fn style_attribute( &self, ) -> &DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
pub(crate) fn summarize(&self) -> Vec<AttrInfo>
pub(crate) fn is_void(&self) -> bool
pub(crate) fn root_element(&self) -> DomRoot<Element>
pub(crate) fn lookup_prefix(&self, namespace: Namespace) -> Option<DOMString>
pub(crate) fn input_method_type(&self) -> Option<InputMethodType>
pub(crate) fn is_focusable_area(&self) -> bool
pub(crate) fn is_actually_disabled(&self) -> bool
pub(crate) fn push_new_attribute( &self, local_name: LocalName, value: AttrValue, name: LocalName, namespace: Namespace, prefix: Option<Prefix>, can_gc: CanGc, )
pub(crate) fn push_attribute(&self, attr: &Attr)
pub(crate) fn get_attribute( &self, namespace: &Namespace, local_name: &LocalName, ) -> Option<DomRoot<Attr>>
pub(crate) fn set_attribute_from_parser( &self, qname: QualName, value: DOMString, prefix: Option<Prefix>, can_gc: CanGc, )
pub(crate) fn set_attribute( &self, name: &LocalName, value: AttrValue, can_gc: CanGc, )
pub(crate) fn set_custom_attribute( &self, name: DOMString, value: DOMString, can_gc: CanGc, ) -> ErrorResult
fn set_first_matching_attribute<F>( &self, local_name: LocalName, value: AttrValue, name: LocalName, namespace: Namespace, prefix: Option<Prefix>, find: F, can_gc: CanGc, )
pub(crate) fn parse_attribute( &self, namespace: &Namespace, local_name: &LocalName, value: DOMString, ) -> AttrValue
pub(crate) fn remove_attribute( &self, namespace: &Namespace, local_name: &LocalName, ) -> Option<DomRoot<Attr>>
pub(crate) fn remove_attribute_by_name( &self, name: &LocalName, ) -> Option<DomRoot<Attr>>
fn remove_first_matching_attribute<F>(&self, find: F) -> Option<DomRoot<Attr>>
pub(crate) fn has_class( &self, name: &Atom, case_sensitivity: CaseSensitivity, ) -> bool
pub(crate) fn set_atomic_attribute( &self, local_name: &LocalName, value: DOMString, can_gc: CanGc, )
pub(crate) fn has_attribute(&self, local_name: &LocalName) -> bool
pub(crate) fn set_bool_attribute( &self, local_name: &LocalName, value: bool, can_gc: CanGc, )
pub(crate) fn get_url_attribute(&self, local_name: &LocalName) -> USVString
pub(crate) fn set_url_attribute( &self, local_name: &LocalName, value: USVString, can_gc: CanGc, )
pub(crate) fn get_string_attribute(&self, local_name: &LocalName) -> DOMString
pub(crate) fn set_string_attribute( &self, local_name: &LocalName, value: DOMString, can_gc: CanGc, )
Sourcefn get_nullable_string_attribute(
&self,
local_name: &LocalName,
) -> Option<DOMString>
fn get_nullable_string_attribute( &self, local_name: &LocalName, ) -> Option<DOMString>
Used for string attribute reflections where absence of the attribute returns null
,
e.g. element.ariaLabel
returning null
when the aria-label
attribute is absent.
Sourcefn set_nullable_string_attribute(
&self,
local_name: &LocalName,
value: Option<DOMString>,
can_gc: CanGc,
)
fn set_nullable_string_attribute( &self, local_name: &LocalName, value: Option<DOMString>, can_gc: CanGc, )
Used for string attribute reflections where setting null
/undefined
removes the
attribute, e.g. element.ariaLabel = null
removing the aria-label
attribute.
pub(crate) fn get_tokenlist_attribute( &self, local_name: &LocalName, ) -> Vec<Atom>
pub(crate) fn set_tokenlist_attribute( &self, local_name: &LocalName, value: DOMString, can_gc: CanGc, )
pub(crate) fn set_atomic_tokenlist_attribute( &self, local_name: &LocalName, tokens: Vec<Atom>, can_gc: CanGc, )
pub(crate) fn get_int_attribute( &self, local_name: &LocalName, default: i32, ) -> i32
pub(crate) fn set_int_attribute( &self, local_name: &LocalName, value: i32, can_gc: CanGc, )
pub(crate) fn get_uint_attribute( &self, local_name: &LocalName, default: u32, ) -> u32
pub(crate) fn set_uint_attribute( &self, local_name: &LocalName, value: u32, can_gc: CanGc, )
pub(crate) fn will_mutate_attr(&self, attr: &Attr)
pub(crate) fn insert_adjacent( &self, where_: AdjacentPosition, node: &Node, ) -> Fallible<Option<DomRoot<Node>>>
pub(crate) fn scroll( &self, x_: f64, y_: f64, behavior: ScrollBehavior, can_gc: CanGc, )
Sourcepub(crate) fn parse_fragment(
&self,
markup: DOMString,
can_gc: CanGc,
) -> Fallible<DomRoot<DocumentFragment>>
pub(crate) fn parse_fragment( &self, markup: DOMString, can_gc: CanGc, ) -> Fallible<DomRoot<DocumentFragment>>
pub(crate) fn fragment_parsing_context( owner_doc: &Document, element: Option<&Self>, can_gc: CanGc, ) -> DomRoot<Self>
pub(crate) fn fullscreen_element_ready_check(&self) -> bool
pub(crate) fn is_in_same_home_subtree<T>(&self, other: &T) -> bool
pub(crate) fn get_id(&self) -> Option<Atom>
pub(crate) fn get_name(&self) -> Option<Atom>
fn is_sequentially_focusable(&self) -> bool
pub(crate) fn update_sequentially_focusable_status(&self, can_gc: CanGc)
pub(crate) fn get_element_internals(&self) -> Option<DomRoot<ElementInternals>>
pub(crate) fn ensure_element_internals(&self) -> DomRoot<ElementInternals>
Source§impl Element
impl Element
fn client_rect(&self, can_gc: CanGc) -> Rect<i32>
pub(crate) fn as_maybe_activatable(&self) -> Option<&dyn Activatable>
pub(crate) fn as_stylesheet_owner(&self) -> Option<&dyn StylesheetOwner>
pub(crate) fn as_maybe_validatable(&self) -> Option<&dyn Validatable>
pub(crate) fn is_invalid(&self, needs_update: bool) -> bool
pub(crate) fn is_instance_validatable(&self) -> bool
pub(crate) fn init_state_for_internals(&self)
pub(crate) fn click_in_progress(&self) -> bool
pub(crate) fn set_click_in_progress(&self, click: bool)
pub(crate) fn nearest_activable_element(&self) -> Option<DomRoot<Element>>
pub(crate) fn get_lang(&self) -> String
pub(crate) fn state(&self) -> ElementState
pub(crate) fn set_state(&self, which: ElementState, value: bool)
Sourcepub(crate) fn set_active_state(&self, value: bool)
pub(crate) fn set_active_state(&self, value: bool)
pub(crate) fn focus_state(&self) -> bool
pub(crate) fn set_focus_state(&self, value: bool)
pub(crate) fn hover_state(&self) -> bool
pub(crate) fn set_hover_state(&self, value: bool)
pub(crate) fn enabled_state(&self) -> bool
pub(crate) fn set_enabled_state(&self, value: bool)
pub(crate) fn disabled_state(&self) -> bool
pub(crate) fn set_disabled_state(&self, value: bool)
pub(crate) fn read_write_state(&self) -> bool
pub(crate) fn set_read_write_state(&self, value: bool)
pub(crate) fn placeholder_shown_state(&self) -> bool
pub(crate) fn set_placeholder_shown_state(&self, value: bool)
pub(crate) fn set_target_state(&self, value: bool)
pub(crate) fn set_fullscreen_state(&self, value: bool)
Sourcepub(crate) fn is_connected(&self) -> bool
pub(crate) fn is_connected(&self) -> bool
Source§impl Element
impl Element
pub(crate) fn check_ancestors_disabled_state_for_form_control(&self)
pub(crate) fn check_parent_disabled_state_for_option(&self)
pub(crate) fn check_disabled_attribute(&self)
pub(crate) fn update_read_write_state_from_readonly_attribute(&self)
Trait Implementations§
§impl Castable for Element
impl Castable for Element
Source§impl DomObjectWrap<DomTypeHolder> for Element
impl DomObjectWrap<DomTypeHolder> for Element
Source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::GenericBindings::ElementBinding::Element_Binding::Wrap::<dom::bindings::codegen::DomTypeHolder::DomTypeHolder> as for<'a, 'b> unsafe fn(script_bindings::script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::element::Element>, script_bindings::script_runtime::CanGc) -> script_bindings::root::Root<script_bindings::root::Dom<dom::element::Element>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::GenericBindings::ElementBinding::Element_Binding::Wrap::<dom::bindings::codegen::DomTypeHolder::DomTypeHolder> as for<'a, 'b> unsafe fn(script_bindings::script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::element::Element>, script_bindings::script_runtime::CanGc) -> script_bindings::root::Root<script_bindings::root::Dom<dom::element::Element>>}
Source§impl ElementMethods<DomTypeHolder> for Element
impl ElementMethods<DomTypeHolder> for Element
Source§fn SetAttribute(
&self,
name: DOMString,
value: DOMString,
can_gc: CanGc,
) -> ErrorResult
fn SetAttribute( &self, name: DOMString, value: DOMString, can_gc: CanGc, ) -> ErrorResult
Source§fn SetHTMLUnsafe(&self, html: DOMString, can_gc: CanGc)
fn SetHTMLUnsafe(&self, html: DOMString, can_gc: CanGc)
Source§fn GetHTML(
&self,
options: &GetHTMLOptions<DomTypeHolder>,
can_gc: CanGc,
) -> DOMString
fn GetHTML( &self, options: &GetHTMLOptions<DomTypeHolder>, can_gc: CanGc, ) -> DOMString
Source§fn SetInnerHTML(&self, value: DOMString, can_gc: CanGc) -> ErrorResult
fn SetInnerHTML(&self, value: DOMString, can_gc: CanGc) -> ErrorResult
Source§fn SetOuterHTML(&self, value: DOMString, can_gc: CanGc) -> ErrorResult
fn SetOuterHTML(&self, value: DOMString, can_gc: CanGc) -> ErrorResult
Source§fn GetShadowRoot(&self) -> Option<DomRoot<ShadowRoot>>
fn GetShadowRoot(&self) -> Option<DomRoot<ShadowRoot>>
Source§fn GetAssignedSlot(&self) -> Option<DomRoot<HTMLSlotElement>>
fn GetAssignedSlot(&self) -> Option<DomRoot<HTMLSlotElement>>
fn GetNamespaceURI(&self) -> Option<DOMString>
fn LocalName(&self) -> DOMString
fn GetPrefix(&self) -> Option<DOMString>
fn TagName(&self) -> DOMString
fn Id(&self) -> DOMString
fn SetId(&self, id: DOMString, can_gc: CanGc)
fn ClassName(&self) -> DOMString
fn SetClassName(&self, class: DOMString, can_gc: CanGc)
fn ClassList(&self) -> DomRoot<DOMTokenList>
fn Slot(&self) -> DOMString
fn SetSlot(&self, value: DOMString)
fn Attributes(&self) -> DomRoot<NamedNodeMap>
fn HasAttributes(&self) -> bool
fn GetAttributeNames(&self) -> Vec<DOMString>
fn GetAttribute(&self, name: DOMString) -> Option<DOMString>
fn GetAttributeNS( &self, namespace: Option<DOMString>, local_name: DOMString, ) -> Option<DOMString>
fn GetAttributeNode(&self, name: DOMString) -> Option<DomRoot<Attr>>
fn GetAttributeNodeNS( &self, namespace: Option<DOMString>, local_name: DOMString, ) -> Option<DomRoot<Attr>>
fn ToggleAttribute( &self, name: DOMString, force: Option<bool>, can_gc: CanGc, ) -> Fallible<bool>
fn SetAttributeNS( &self, namespace: Option<DOMString>, qualified_name: DOMString, value: DOMString, can_gc: CanGc, ) -> ErrorResult
fn SetAttributeNode(&self, attr: &Attr) -> Fallible<Option<DomRoot<Attr>>>
fn SetAttributeNodeNS(&self, attr: &Attr) -> Fallible<Option<DomRoot<Attr>>>
fn RemoveAttribute(&self, name: DOMString)
fn RemoveAttributeNS(&self, namespace: Option<DOMString>, local_name: DOMString)
fn RemoveAttributeNode(&self, attr: &Attr) -> Fallible<DomRoot<Attr>>
fn HasAttribute(&self, name: DOMString) -> bool
fn HasAttributeNS( &self, namespace: Option<DOMString>, local_name: DOMString, ) -> bool
fn GetElementsByTagName(&self, localname: DOMString) -> DomRoot<HTMLCollection>
fn GetElementsByTagNameNS( &self, maybe_ns: Option<DOMString>, localname: DOMString, ) -> DomRoot<HTMLCollection>
fn GetElementsByClassName(&self, classes: DOMString) -> DomRoot<HTMLCollection>
fn GetClientRects(&self, can_gc: CanGc) -> DomRoot<DOMRectList>
fn GetBoundingClientRect(&self, can_gc: CanGc) -> DomRoot<DOMRect>
fn Scroll(&self, options: &ScrollToOptions, can_gc: CanGc)
fn Scroll_(&self, x: f64, y: f64, can_gc: CanGc)
fn ScrollTo(&self, options: &ScrollToOptions)
fn ScrollTo_(&self, x: f64, y: f64)
fn ScrollBy(&self, options: &ScrollToOptions, can_gc: CanGc)
fn ScrollBy_(&self, x: f64, y: f64, can_gc: CanGc)
fn ScrollTop(&self, can_gc: CanGc) -> f64
fn SetScrollTop(&self, y_: f64, can_gc: CanGc)
fn ScrollLeft(&self, can_gc: CanGc) -> f64
fn SetScrollLeft(&self, x_: f64, can_gc: CanGc)
fn ScrollWidth(&self, can_gc: CanGc) -> i32
fn ScrollHeight(&self, can_gc: CanGc) -> i32
fn ClientTop(&self, can_gc: CanGc) -> i32
fn ClientLeft(&self, can_gc: CanGc) -> i32
fn ClientWidth(&self, can_gc: CanGc) -> i32
fn ClientHeight(&self, can_gc: CanGc) -> i32
fn GetPreviousElementSibling(&self) -> Option<DomRoot<Element>>
fn GetNextElementSibling(&self) -> Option<DomRoot<Element>>
fn Children(&self) -> DomRoot<HTMLCollection>
fn GetFirstElementChild(&self) -> Option<DomRoot<Element>>
fn GetLastElementChild(&self) -> Option<DomRoot<Element>>
fn ChildElementCount(&self) -> u32
fn Prepend( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn Append( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn ReplaceChildren( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn QuerySelector( &self, selectors: DOMString, ) -> Fallible<Option<DomRoot<Element>>>
fn QuerySelectorAll(&self, selectors: DOMString) -> Fallible<DomRoot<NodeList>>
fn Before( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn After( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn ReplaceWith( &self, nodes: Vec<NodeOrString<DomTypeHolder>>, can_gc: CanGc, ) -> ErrorResult
fn Remove(&self)
fn Matches(&self, selectors: DOMString) -> Fallible<bool>
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Fallible<bool>
fn Closest(&self, selectors: DOMString) -> Fallible<Option<DomRoot<Element>>>
fn InsertAdjacentElement( &self, where_: DOMString, element: &Element, ) -> Fallible<Option<DomRoot<Element>>>
fn InsertAdjacentText( &self, where_: DOMString, data: DOMString, can_gc: CanGc, ) -> ErrorResult
fn InsertAdjacentHTML( &self, position: DOMString, text: DOMString, can_gc: CanGc, ) -> ErrorResult
fn EnterFormalActivationState(&self) -> ErrorResult
fn ExitFormalActivationState(&self) -> ErrorResult
fn RequestFullscreen(&self, can_gc: CanGc) -> Rc<Promise>
fn AttachShadow(&self, init: &ShadowRootInit) -> Fallible<DomRoot<ShadowRoot>>
fn GetRole(&self) -> Option<DOMString>
fn SetRole(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaAtomic(&self) -> Option<DOMString>
fn SetAriaAtomic(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaAutoComplete(&self) -> Option<DOMString>
fn SetAriaAutoComplete(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaBrailleLabel(&self) -> Option<DOMString>
fn SetAriaBrailleLabel(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaBrailleRoleDescription(&self) -> Option<DOMString>
fn SetAriaBrailleRoleDescription(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaBusy(&self) -> Option<DOMString>
fn SetAriaBusy(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaChecked(&self) -> Option<DOMString>
fn SetAriaChecked(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaColCount(&self) -> Option<DOMString>
fn SetAriaColCount(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaColIndex(&self) -> Option<DOMString>
fn SetAriaColIndex(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaColIndexText(&self) -> Option<DOMString>
fn SetAriaColIndexText(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaColSpan(&self) -> Option<DOMString>
fn SetAriaColSpan(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaCurrent(&self) -> Option<DOMString>
fn SetAriaCurrent(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaDescription(&self) -> Option<DOMString>
fn SetAriaDescription(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaDisabled(&self) -> Option<DOMString>
fn SetAriaDisabled(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaExpanded(&self) -> Option<DOMString>
fn SetAriaExpanded(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaHasPopup(&self) -> Option<DOMString>
fn SetAriaHasPopup(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaHidden(&self) -> Option<DOMString>
fn SetAriaHidden(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaInvalid(&self) -> Option<DOMString>
fn SetAriaInvalid(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaKeyShortcuts(&self) -> Option<DOMString>
fn SetAriaKeyShortcuts(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaLabel(&self) -> Option<DOMString>
fn SetAriaLabel(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaLevel(&self) -> Option<DOMString>
fn SetAriaLevel(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaLive(&self) -> Option<DOMString>
fn SetAriaLive(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaModal(&self) -> Option<DOMString>
fn SetAriaModal(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaMultiLine(&self) -> Option<DOMString>
fn SetAriaMultiLine(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaMultiSelectable(&self) -> Option<DOMString>
fn SetAriaMultiSelectable(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaOrientation(&self) -> Option<DOMString>
fn SetAriaOrientation(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaPlaceholder(&self) -> Option<DOMString>
fn SetAriaPlaceholder(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaPosInSet(&self) -> Option<DOMString>
fn SetAriaPosInSet(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaPressed(&self) -> Option<DOMString>
fn SetAriaPressed(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaReadOnly(&self) -> Option<DOMString>
fn SetAriaReadOnly(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRelevant(&self) -> Option<DOMString>
fn SetAriaRelevant(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRequired(&self) -> Option<DOMString>
fn SetAriaRequired(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRoleDescription(&self) -> Option<DOMString>
fn SetAriaRoleDescription(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRowCount(&self) -> Option<DOMString>
fn SetAriaRowCount(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRowIndex(&self) -> Option<DOMString>
fn SetAriaRowIndex(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRowIndexText(&self) -> Option<DOMString>
fn SetAriaRowIndexText(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaRowSpan(&self) -> Option<DOMString>
fn SetAriaRowSpan(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaSelected(&self) -> Option<DOMString>
fn SetAriaSelected(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaSetSize(&self) -> Option<DOMString>
fn SetAriaSetSize(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaSort(&self) -> Option<DOMString>
fn SetAriaSort(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaValueMax(&self) -> Option<DOMString>
fn SetAriaValueMax(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaValueMin(&self) -> Option<DOMString>
fn SetAriaValueMin(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaValueNow(&self) -> Option<DOMString>
fn SetAriaValueNow(&self, value: Option<DOMString>, can_gc: CanGc)
fn GetAriaValueText(&self) -> Option<DOMString>
fn SetAriaValueText(&self, value: Option<DOMString>, can_gc: CanGc)
Source§impl FormControlElementHelpers for Element
impl FormControlElementHelpers for Element
fn as_maybe_form_control(&self) -> Option<&dyn FormControl>
Source§impl IDLInterface for Element
impl IDLInterface for Element
Source§impl MallocSizeOf for Element
impl MallocSizeOf for Element
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Source§impl MutDomObject for Element
impl MutDomObject for Element
Source§impl ToJSValConvertible for Element
impl ToJSValConvertible for Element
Source§impl VirtualMethods for Element
impl VirtualMethods for Element
Source§fn super_type(&self) -> Option<&dyn VirtualMethods>
fn super_type(&self) -> Option<&dyn VirtualMethods>
Source§fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool
fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool
true
if given attribute attr
affects style of the
given element.Source§fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation<'_>)
fn attribute_mutated(&self, attr: &Attr, 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, context: &BindContext)
fn bind_to_tree(&self, context: &BindContext)
Source§fn unbind_from_tree(&self, context: &UnbindContext<'_>)
fn unbind_from_tree(&self, context: &UnbindContext<'_>)
Source§fn children_changed(&self, mutation: &ChildrenMutation<'_>)
fn children_changed(&self, mutation: &ChildrenMutation<'_>)
Source§fn adopting_steps(&self, old_doc: &Document)
fn adopting_steps(&self, old_doc: &Document)
Source§fn post_connection_steps(&self)
fn post_connection_steps(&self)
Source§fn handle_event(&self, event: &Event)
fn handle_event(&self, event: &Event)
Source§fn cloning_steps(
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag,
)
fn cloning_steps( &self, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag, )
impl DerivedFrom<Element> for Element
impl DerivedFrom<Element> for HTMLAnchorElement
impl DerivedFrom<Element> for HTMLAreaElement
impl DerivedFrom<Element> for HTMLAudioElement
impl DerivedFrom<Element> for HTMLBRElement
impl DerivedFrom<Element> for HTMLBaseElement
impl DerivedFrom<Element> for HTMLBodyElement
impl DerivedFrom<Element> for HTMLButtonElement
impl DerivedFrom<Element> for HTMLCanvasElement
impl DerivedFrom<Element> for HTMLDListElement
impl DerivedFrom<Element> for HTMLDataElement
impl DerivedFrom<Element> for HTMLDataListElement
impl DerivedFrom<Element> for HTMLDetailsElement
impl DerivedFrom<Element> for HTMLDialogElement
impl DerivedFrom<Element> for HTMLDirectoryElement
impl DerivedFrom<Element> for HTMLDivElement
impl DerivedFrom<Element> for HTMLElement
impl DerivedFrom<Element> for HTMLEmbedElement
impl DerivedFrom<Element> for HTMLFieldSetElement
impl DerivedFrom<Element> for HTMLFontElement
impl DerivedFrom<Element> for HTMLFormElement
impl DerivedFrom<Element> for HTMLFrameElement
impl DerivedFrom<Element> for HTMLFrameSetElement
impl DerivedFrom<Element> for HTMLHRElement
impl DerivedFrom<Element> for HTMLHeadElement
impl DerivedFrom<Element> for HTMLHeadingElement
impl DerivedFrom<Element> for HTMLHtmlElement
impl DerivedFrom<Element> for HTMLIFrameElement
impl DerivedFrom<Element> for HTMLImageElement
impl DerivedFrom<Element> for HTMLInputElement
impl DerivedFrom<Element> for HTMLLIElement
impl DerivedFrom<Element> for HTMLLabelElement
impl DerivedFrom<Element> for HTMLLegendElement
impl DerivedFrom<Element> for HTMLLinkElement
impl DerivedFrom<Element> for HTMLMapElement
impl DerivedFrom<Element> for HTMLMediaElement
impl DerivedFrom<Element> for HTMLMenuElement
impl DerivedFrom<Element> for HTMLMetaElement
impl DerivedFrom<Element> for HTMLMeterElement
impl DerivedFrom<Element> for HTMLModElement
impl DerivedFrom<Element> for HTMLOListElement
impl DerivedFrom<Element> for HTMLObjectElement
impl DerivedFrom<Element> for HTMLOptGroupElement
impl DerivedFrom<Element> for HTMLOptionElement
impl DerivedFrom<Element> for HTMLOutputElement
impl DerivedFrom<Element> for HTMLParagraphElement
impl DerivedFrom<Element> for HTMLParamElement
impl DerivedFrom<Element> for HTMLPictureElement
impl DerivedFrom<Element> for HTMLPreElement
impl DerivedFrom<Element> for HTMLProgressElement
impl DerivedFrom<Element> for HTMLQuoteElement
impl DerivedFrom<Element> for HTMLScriptElement
impl DerivedFrom<Element> for HTMLSelectElement
impl DerivedFrom<Element> for HTMLSlotElement
impl DerivedFrom<Element> for HTMLSourceElement
impl DerivedFrom<Element> for HTMLSpanElement
impl DerivedFrom<Element> for HTMLStyleElement
impl DerivedFrom<Element> for HTMLTableCaptionElement
impl DerivedFrom<Element> for HTMLTableCellElement
impl DerivedFrom<Element> for HTMLTableColElement
impl DerivedFrom<Element> for HTMLTableElement
impl DerivedFrom<Element> for HTMLTableRowElement
impl DerivedFrom<Element> for HTMLTableSectionElement
impl DerivedFrom<Element> for HTMLTemplateElement
impl DerivedFrom<Element> for HTMLTextAreaElement
impl DerivedFrom<Element> for HTMLTimeElement
impl DerivedFrom<Element> for HTMLTitleElement
impl DerivedFrom<Element> for HTMLTrackElement
impl DerivedFrom<Element> for HTMLUListElement
impl DerivedFrom<Element> for HTMLUnknownElement
impl DerivedFrom<Element> for HTMLVideoElement
impl DerivedFrom<Element> for SVGElement
impl DerivedFrom<Element> for SVGGraphicsElement
impl DerivedFrom<Element> for SVGSVGElement
impl DerivedFrom<EventTarget> for Element
impl DerivedFrom<Node> for Element
impl Eq for Element
Auto Trait Implementations§
impl !Freeze for Element
impl !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
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<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§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