Struct HTMLBaseElement

Source
pub struct HTMLBaseElement(/* private fields */);

Implementations§

Source§

impl HTMLBaseElement

Source

pub fn new(browser: &Browser) -> HTMLBaseElement

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn get_target(&self) -> JsString

Source

pub fn set_target(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_href(&self) -> JsString

Source

pub fn set_href(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_prototype(browser: &Browser) -> HTMLBaseElement

Source

pub fn set_prototype(browser: &Browser, value: &HTMLBaseElement)

Methods from Deref<Target = HTMLElement>§

Source

pub fn blur(&self) -> JsNullish

Source

pub fn show_popover(&self) -> JsNullish

Source

pub fn hide_popover(&self) -> JsNullish

Source

pub fn click(&self) -> JsNullish

Source

pub fn attach_internals(&self) -> ElementInternals

Source

pub fn focus(&self, options: &dyn ToJs<JsNullable<FocusOptions>>) -> JsNullish

Source

pub fn toggle_popover( &self, force: &dyn ToJs<JsNullable<JsBoolean>>, ) -> JsNullish

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn get_tab_index(&self) -> JsNumber

Source

pub fn set_tab_index(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_nonce(&self) -> JsNullable<JsString>

Source

pub fn set_nonce(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_dataset(&self) -> DOMStringMap

Source

pub fn set_dataset(&self, value: &DOMStringMap)

Source

pub fn get_autofocus(&self) -> JsBoolean

Source

pub fn set_autofocus(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_onwheel(&self) -> JsNullable<JsValue>

Source

pub fn set_onwheel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkittransitionend(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkittransitionend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkitanimationstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwebkitanimationiteration(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationiteration( &self, value: &dyn ToJs<JsNullable<JsValue>>, )

Source

pub fn get_onwebkitanimationend(&self) -> JsNullable<JsValue>

Source

pub fn set_onwebkitanimationend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onwaiting(&self) -> JsNullable<JsValue>

Source

pub fn set_onwaiting(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onvolumechange(&self) -> JsNullable<JsValue>

Source

pub fn set_onvolumechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionstart(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionrun(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionrun(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitionend(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitionend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontransitioncancel(&self) -> JsNullable<JsValue>

Source

pub fn set_ontransitioncancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontouchstart(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchstart( &self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>, )

Source

pub fn get_ontouchmove(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchmove(&self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>)

Source

pub fn get_ontouchend(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchend(&self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>)

Source

pub fn get_ontouchcancel(&self) -> JsNullable<JsNullable<JsValue>>

Source

pub fn set_ontouchcancel( &self, value: &dyn ToJs<JsNullable<JsNullable<JsValue>>>, )

Source

pub fn get_ontoggle(&self) -> JsNullable<JsValue>

Source

pub fn set_ontoggle(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ontimeupdate(&self) -> JsNullable<JsValue>

Source

pub fn set_ontimeupdate(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsuspend(&self) -> JsNullable<JsValue>

Source

pub fn set_onsuspend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsubmit(&self) -> JsNullable<JsValue>

Source

pub fn set_onsubmit(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onstalled(&self) -> JsNullable<JsValue>

Source

pub fn set_onstalled(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onslotchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onslotchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselectstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onselectstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselectionchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onselectionchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onselect(&self) -> JsNullable<JsValue>

Source

pub fn set_onselect(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onseeking(&self) -> JsNullable<JsValue>

Source

pub fn set_onseeking(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onseeked(&self) -> JsNullable<JsValue>

Source

pub fn set_onseeked(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onsecuritypolicyviolation(&self) -> JsNullable<JsValue>

Source

pub fn set_onsecuritypolicyviolation( &self, value: &dyn ToJs<JsNullable<JsValue>>, )

Source

pub fn get_onscrollend(&self) -> JsNullable<JsValue>

Source

pub fn set_onscrollend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onscroll(&self) -> JsNullable<JsValue>

Source

pub fn set_onscroll(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onresize(&self) -> JsNullable<JsValue>

Source

pub fn set_onresize(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onreset(&self) -> JsNullable<JsValue>

Source

pub fn set_onreset(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onratechange(&self) -> JsNullable<JsValue>

Source

pub fn set_onratechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onprogress(&self) -> JsNullable<JsValue>

Source

pub fn set_onprogress(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerup(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerover(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerout(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerout(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointermove(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointermove(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerleave(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerenter(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointerdown(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointerdown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpointercancel(&self) -> JsNullable<JsValue>

Source

pub fn set_onpointercancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onplaying(&self) -> JsNullable<JsValue>

Source

pub fn set_onplaying(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onplay(&self) -> JsNullable<JsValue>

Source

pub fn set_onplay(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpause(&self) -> JsNullable<JsValue>

Source

pub fn set_onpause(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onpaste(&self) -> JsNullable<JsValue>

Source

pub fn set_onpaste(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseup(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseover(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseout(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseout(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmousemove(&self) -> JsNullable<JsValue>

Source

pub fn set_onmousemove(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseleave(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmouseenter(&self) -> JsNullable<JsValue>

Source

pub fn set_onmouseenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onmousedown(&self) -> JsNullable<JsValue>

Source

pub fn set_onmousedown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onlostpointercapture(&self) -> JsNullable<JsValue>

Source

pub fn set_onlostpointercapture(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadedmetadata(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadedmetadata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onloadeddata(&self) -> JsNullable<JsValue>

Source

pub fn set_onloadeddata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onload(&self) -> JsNullable<JsValue>

Source

pub fn set_onload(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeyup(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeyup(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeypress(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeypress(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onkeydown(&self) -> JsNullable<JsValue>

Source

pub fn set_onkeydown(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oninvalid(&self) -> JsNullable<JsValue>

Source

pub fn set_oninvalid(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oninput(&self) -> JsNullable<JsValue>

Source

pub fn set_oninput(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ongotpointercapture(&self) -> JsNullable<JsValue>

Source

pub fn set_ongotpointercapture(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onformdata(&self) -> JsNullable<JsValue>

Source

pub fn set_onformdata(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onfocus(&self) -> JsNullable<JsValue>

Source

pub fn set_onfocus(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onerror(&self) -> JsNullable<OnErrorEventHandlerNonNull>

Source

pub fn set_onerror( &self, value: &dyn ToJs<JsNullable<OnErrorEventHandlerNonNull>>, )

Source

pub fn get_onended(&self) -> JsNullable<JsValue>

Source

pub fn set_onended(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onemptied(&self) -> JsNullable<JsValue>

Source

pub fn set_onemptied(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondurationchange(&self) -> JsNullable<JsValue>

Source

pub fn set_ondurationchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondrop(&self) -> JsNullable<JsValue>

Source

pub fn set_ondrop(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragstart(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragover(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragover(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragleave(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragleave(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragenter(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragenter(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondragend(&self) -> JsNullable<JsValue>

Source

pub fn set_ondragend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondrag(&self) -> JsNullable<JsValue>

Source

pub fn set_ondrag(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_ondblclick(&self) -> JsNullable<JsValue>

Source

pub fn set_ondblclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncut(&self) -> JsNullable<JsValue>

Source

pub fn set_oncut(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncuechange(&self) -> JsNullable<JsValue>

Source

pub fn set_oncuechange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncopy(&self) -> JsNullable<JsValue>

Source

pub fn set_oncopy(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncontextmenu(&self) -> JsNullable<JsValue>

Source

pub fn set_oncontextmenu(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onclose(&self) -> JsNullable<JsValue>

Source

pub fn set_onclose(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onclick(&self) -> JsNullable<JsValue>

Source

pub fn set_onclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncanplaythrough(&self) -> JsNullable<JsValue>

Source

pub fn set_oncanplaythrough(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncanplay(&self) -> JsNullable<JsValue>

Source

pub fn set_oncanplay(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_oncancel(&self) -> JsNullable<JsValue>

Source

pub fn set_oncancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onblur(&self) -> JsNullable<JsValue>

Source

pub fn set_onblur(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onbeforeinput(&self) -> JsNullable<JsValue>

Source

pub fn set_onbeforeinput(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onauxclick(&self) -> JsNullable<JsValue>

Source

pub fn set_onauxclick(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationstart(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationstart(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationiteration(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationiteration(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationend(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationend(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onanimationcancel(&self) -> JsNullable<JsValue>

Source

pub fn set_onanimationcancel(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onabort(&self) -> JsNullable<JsValue>

Source

pub fn set_onabort(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_is_content_editable(&self) -> JsBoolean

Source

pub fn set_is_content_editable(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_input_mode(&self) -> JsString

Source

pub fn set_input_mode(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_enter_key_hint(&self) -> JsString

Source

pub fn set_enter_key_hint(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_content_editable(&self) -> JsString

Source

pub fn set_content_editable(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_style(&self) -> CSSStyleDeclaration

Source

pub fn set_style(&self, value: &CSSStyleDeclaration)

Source

pub fn get_attribute_style_map(&self) -> StylePropertyMap

Source

pub fn set_attribute_style_map(&self, value: &StylePropertyMap)

Source

pub fn get_translate(&self) -> JsBoolean

Source

pub fn set_translate(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_title(&self) -> JsString

Source

pub fn set_title(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_spellcheck(&self) -> JsBoolean

Source

pub fn set_spellcheck(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_popover(&self) -> JsNullable<JsString>

Source

pub fn set_popover(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_outer_text(&self) -> JsString

Source

pub fn set_outer_text(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_offset_width(&self) -> JsNumber

Source

pub fn set_offset_width(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_offset_top(&self) -> JsNumber

Source

pub fn set_offset_top(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_offset_parent(&self) -> JsNullable<Element>

Source

pub fn set_offset_parent(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_offset_left(&self) -> JsNumber

Source

pub fn set_offset_left(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_offset_height(&self) -> JsNumber

Source

pub fn set_offset_height(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_lang(&self) -> JsString

Source

pub fn set_lang(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_inner_text(&self) -> JsString

Source

pub fn set_inner_text(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_inert(&self) -> JsBoolean

Source

pub fn set_inert(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_hidden(&self) -> JsBoolean

Source

pub fn set_hidden(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_draggable(&self) -> JsBoolean

Source

pub fn set_draggable(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_dir(&self) -> JsString

Source

pub fn set_dir(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_autocapitalize(&self) -> JsString

Source

pub fn set_autocapitalize(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_access_key_label(&self) -> JsString

Source

pub fn set_access_key_label(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_access_key(&self) -> JsString

Source

pub fn set_access_key(&self, value: &dyn ToJs<JsString>)

Methods from Deref<Target = Element>§

Source

pub fn remove(&self) -> JsNullish

Source

pub fn request_pointer_lock(&self) -> JsNullish

Source

pub fn has_attributes(&self) -> JsBoolean

Source

pub fn get_client_rects(&self) -> DOMRectList

Source

pub fn get_bounding_client_rect(&self) -> DOMRect

Source

pub fn get_attribute_names(&self) -> Array<JsString>

Source

pub fn computed_style_map(&self) -> StylePropertyMapReadOnly

Source

pub fn replace_children(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn get_animations( &self, options: &dyn ToJs<JsNullable<GetAnimationsOptions>>, ) -> Array<Animation>

Source

pub fn webkit_matches_selector( &self, selectors: &dyn ToJs<JsString>, ) -> JsBoolean

Source

pub fn set_pointer_capture(&self, pointerId: &dyn ToJs<JsNumber>) -> JsNullish

Source

pub fn set_attribute_node_ns(&self, attr: &Attr) -> JsNullable<Attr>

Source

pub fn set_attribute_node(&self, attr: &Attr) -> JsNullable<Attr>

Source

pub fn scroll_to( &self, options: &dyn ToJs<JsNullable<ScrollToOptions>>, ) -> JsNullish

Source

pub fn scroll_into_view(&self, arg: &dyn ToJs<JsNullable<JsValue>>) -> JsNullish

Source

pub fn scroll_by( &self, options: &dyn ToJs<JsNullable<ScrollToOptions>>, ) -> JsNullish

Source

pub fn scroll( &self, options: &dyn ToJs<JsNullable<ScrollToOptions>>, ) -> JsNullish

Source

pub fn prepend(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn request_fullscreen( &self, options: &dyn ToJs<JsNullable<FullscreenOptions>>, ) -> Promise<JsNullish>

Source

pub fn query_selector_all<E: JsCast + AsRef<Node> + Into<Node>>( &self, selectors: &dyn ToJs<JsString>, ) -> NodeListOf<E>

Source

pub fn remove_attribute(&self, qualifiedName: &dyn ToJs<JsString>) -> JsNullish

Source

pub fn release_pointer_capture( &self, pointerId: &dyn ToJs<JsNumber>, ) -> JsNullish

Source

pub fn matches(&self, selectors: &dyn ToJs<JsString>) -> JsBoolean

Source

pub fn has_pointer_capture(&self, pointerId: &dyn ToJs<JsNumber>) -> JsBoolean

Source

pub fn append(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn has_attribute(&self, qualifiedName: &dyn ToJs<JsString>) -> JsBoolean

Source

pub fn get_elements_by_tag_name( &self, qualifiedName: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn get_elements_by_class_name( &self, classNames: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn replace_with(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn query_selector<E: JsCast + AsRef<Element> + Into<Element>>( &self, selectors: &dyn ToJs<JsString>, ) -> JsNullable<E>

Source

pub fn get_attribute_node( &self, qualifiedName: &dyn ToJs<JsString>, ) -> JsNullable<Attr>

Source

pub fn before(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn get_attribute_method( &self, qualifiedName: &dyn ToJs<JsString>, ) -> JsNullable<JsString>

Source

pub fn after(&self, nodes: &dyn ToJs<Array<JsValue>>) -> JsNullish

Source

pub fn closest<E: JsCast + AsRef<Element> + Into<Element>>( &self, selectors: &dyn ToJs<JsString>, ) -> JsNullable<E>

Source

pub fn check_visibility( &self, options: &dyn ToJs<JsNullable<CheckVisibilityOptions>>, ) -> JsBoolean

Source

pub fn attach_shadow(&self, init: &dyn ToJs<ShadowRootInit>) -> ShadowRoot

Source

pub fn remove_attribute_node(&self, attr: &Attr) -> Attr

Source

pub fn animate( &self, keyframes: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> Animation

Source

pub fn set_attribute_method( &self, qualifiedName: &dyn ToJs<JsString>, value: &dyn ToJs<JsString>, ) -> JsNullish

Source

pub fn get_elements_by_tag_name_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> HTMLCollectionOf<Element>

Source

pub fn scroll_to_with_x_y( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> JsNullish

Source

pub fn remove_attribute_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> JsNullish

Source

pub fn get_attribute_node_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> JsNullable<Attr>

Source

pub fn scroll_by_with_x_y( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> JsNullish

Source

pub fn toggle_attribute( &self, qualifiedName: &dyn ToJs<JsString>, force: &dyn ToJs<JsNullable<JsBoolean>>, ) -> JsBoolean

Source

pub fn get_attribute_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> JsNullable<JsString>

Source

pub fn insert_adjacent_text( &self, where_: &dyn ToJs<JsString>, data: &dyn ToJs<JsString>, ) -> JsNullish

Source

pub fn insert_adjacent_html( &self, position: &dyn ToJs<JsString>, text: &dyn ToJs<JsString>, ) -> JsNullish

Source

pub fn insert_adjacent_element( &self, where_: &dyn ToJs<JsString>, element: &Element, ) -> JsNullable<Element>

Source

pub fn scroll_with_x_y( &self, x: &dyn ToJs<JsNumber>, y: &dyn ToJs<JsNumber>, ) -> JsNullish

Source

pub fn has_attribute_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, localName: &dyn ToJs<JsString>, ) -> JsBoolean

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, listener: &dyn ToJs<JsValue>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn set_attribute_ns( &self, namespace: &dyn ToJs<JsNullable<JsString>>, qualifiedName: &dyn ToJs<JsString>, value: &dyn ToJs<JsString>, ) -> JsNullish

Source

pub fn get_assigned_slot(&self) -> JsNullable<HTMLSlotElement>

Source

pub fn set_assigned_slot(&self, value: &dyn ToJs<JsNullable<HTMLSlotElement>>)

Source

pub fn get_last_element_child(&self) -> JsNullable<Element>

Source

pub fn set_last_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_first_element_child(&self) -> JsNullable<Element>

Source

pub fn set_first_element_child(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_children(&self) -> HTMLCollection

Source

pub fn set_children(&self, value: &HTMLCollection)

Source

pub fn get_child_element_count(&self) -> JsNumber

Source

pub fn set_child_element_count(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_previous_element_sibling(&self) -> JsNullable<Element>

Source

pub fn set_previous_element_sibling( &self, value: &dyn ToJs<JsNullable<Element>>, )

Source

pub fn get_next_element_sibling(&self) -> JsNullable<Element>

Source

pub fn set_next_element_sibling(&self, value: &dyn ToJs<JsNullable<Element>>)

Source

pub fn get_inner_html(&self) -> JsString

Source

pub fn set_inner_html(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_role(&self) -> JsNullable<JsString>

Source

pub fn set_role(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_value_text(&self) -> JsNullable<JsString>

Source

pub fn set_aria_value_text(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_value_now(&self) -> JsNullable<JsString>

Source

pub fn set_aria_value_now(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_value_min(&self) -> JsNullable<JsString>

Source

pub fn set_aria_value_min(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_value_max(&self) -> JsNullable<JsString>

Source

pub fn set_aria_value_max(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_sort(&self) -> JsNullable<JsString>

Source

pub fn set_aria_sort(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_set_size(&self) -> JsNullable<JsString>

Source

pub fn set_aria_set_size(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_selected(&self) -> JsNullable<JsString>

Source

pub fn set_aria_selected(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_row_span(&self) -> JsNullable<JsString>

Source

pub fn set_aria_row_span(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_row_index(&self) -> JsNullable<JsString>

Source

pub fn set_aria_row_index(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_row_count(&self) -> JsNullable<JsString>

Source

pub fn set_aria_row_count(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_role_description(&self) -> JsNullable<JsString>

Source

pub fn set_aria_role_description(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_required(&self) -> JsNullable<JsString>

Source

pub fn set_aria_required(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_read_only(&self) -> JsNullable<JsString>

Source

pub fn set_aria_read_only(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_pressed(&self) -> JsNullable<JsString>

Source

pub fn set_aria_pressed(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_pos_in_set(&self) -> JsNullable<JsString>

Source

pub fn set_aria_pos_in_set(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_placeholder(&self) -> JsNullable<JsString>

Source

pub fn set_aria_placeholder(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_orientation(&self) -> JsNullable<JsString>

Source

pub fn set_aria_orientation(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_multi_selectable(&self) -> JsNullable<JsString>

Source

pub fn set_aria_multi_selectable(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_multi_line(&self) -> JsNullable<JsString>

Source

pub fn set_aria_multi_line(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_modal(&self) -> JsNullable<JsString>

Source

pub fn set_aria_modal(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_live(&self) -> JsNullable<JsString>

Source

pub fn set_aria_live(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_level(&self) -> JsNullable<JsString>

Source

pub fn set_aria_level(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_label(&self) -> JsNullable<JsString>

Source

pub fn set_aria_label(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_key_shortcuts(&self) -> JsNullable<JsString>

Source

pub fn set_aria_key_shortcuts(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_invalid(&self) -> JsNullable<JsString>

Source

pub fn set_aria_invalid(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_hidden(&self) -> JsNullable<JsString>

Source

pub fn set_aria_hidden(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_has_popup(&self) -> JsNullable<JsString>

Source

pub fn set_aria_has_popup(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_expanded(&self) -> JsNullable<JsString>

Source

pub fn set_aria_expanded(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_disabled(&self) -> JsNullable<JsString>

Source

pub fn set_aria_disabled(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_current(&self) -> JsNullable<JsString>

Source

pub fn set_aria_current(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_col_span(&self) -> JsNullable<JsString>

Source

pub fn set_aria_col_span(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_col_index(&self) -> JsNullable<JsString>

Source

pub fn set_aria_col_index(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_col_count(&self) -> JsNullable<JsString>

Source

pub fn set_aria_col_count(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_checked(&self) -> JsNullable<JsString>

Source

pub fn set_aria_checked(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_busy(&self) -> JsNullable<JsString>

Source

pub fn set_aria_busy(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_auto_complete(&self) -> JsNullable<JsString>

Source

pub fn set_aria_auto_complete(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_aria_atomic(&self) -> JsNullable<JsString>

Source

pub fn set_aria_atomic(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_tag_name(&self) -> JsString

Source

pub fn set_tag_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_slot(&self) -> JsString

Source

pub fn set_slot(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_shadow_root(&self) -> JsNullable<ShadowRoot>

Source

pub fn set_shadow_root(&self, value: &dyn ToJs<JsNullable<ShadowRoot>>)

Source

pub fn get_scroll_width(&self) -> JsNumber

Source

pub fn set_scroll_width(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_scroll_top(&self) -> JsNumber

Source

pub fn set_scroll_top(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_scroll_left(&self) -> JsNumber

Source

pub fn set_scroll_left(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_scroll_height(&self) -> JsNumber

Source

pub fn set_scroll_height(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_prefix(&self) -> JsNullable<JsString>

Source

pub fn set_prefix(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_part(&self) -> DOMTokenList

Source

pub fn set_part(&self, value: &DOMTokenList)

Source

pub fn get_owner_document(&self) -> Document

Source

pub fn set_owner_document(&self, value: &Document)

Source

pub fn get_outer_html(&self) -> JsString

Source

pub fn set_outer_html(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_onfullscreenerror(&self) -> JsNullable<JsValue>

Source

pub fn set_onfullscreenerror(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_onfullscreenchange(&self) -> JsNullable<JsValue>

Source

pub fn set_onfullscreenchange(&self, value: &dyn ToJs<JsNullable<JsValue>>)

Source

pub fn get_namespace_uri(&self) -> JsNullable<JsString>

Source

pub fn set_namespace_uri(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_local_name(&self) -> JsString

Source

pub fn set_local_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_id(&self) -> JsString

Source

pub fn set_id(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_client_width(&self) -> JsNumber

Source

pub fn set_client_width(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_client_top(&self) -> JsNumber

Source

pub fn set_client_top(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_client_left(&self) -> JsNumber

Source

pub fn set_client_left(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_client_height(&self) -> JsNumber

Source

pub fn set_client_height(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_class_name(&self) -> JsString

Source

pub fn set_class_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_class_list(&self) -> DOMTokenList

Source

pub fn set_class_list(&self, value: &DOMTokenList)

Source

pub fn get_attributes(&self) -> NamedNodeMap

Source

pub fn set_attributes(&self, value: &NamedNodeMap)

Methods from Deref<Target = Node>§

Source

pub fn normalize(&self) -> JsNullish

Source

pub fn has_child_nodes(&self) -> JsBoolean

Source

pub fn remove_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, child: &dyn ToJs<T>, ) -> T

Source

pub fn lookup_prefix( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn lookup_namespace_uri( &self, prefix: &dyn ToJs<JsNullable<JsString>>, ) -> JsNullable<JsString>

Source

pub fn is_same_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_equal_node(&self, otherNode: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn is_default_namespace( &self, namespace: &dyn ToJs<JsNullable<JsString>>, ) -> JsBoolean

Source

pub fn get_root_node( &self, options: &dyn ToJs<JsNullable<GetRootNodeOptions>>, ) -> Node

Source

pub fn contains(&self, other: &dyn ToJs<JsNullable<Node>>) -> JsBoolean

Source

pub fn compare_document_position(&self, other: &Node) -> JsNumber

Source

pub fn clone_node(&self, deep: &dyn ToJs<JsNullable<JsBoolean>>) -> Node

Source

pub fn append_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, ) -> T

Source

pub fn replace_child<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &Node, child: &dyn ToJs<T>, ) -> T

Source

pub fn insert_before<T: JsCast + AsRef<Node> + Into<Node>>( &self, node: &dyn ToJs<T>, child: &dyn ToJs<JsNullable<Node>>, ) -> T

Source

pub fn get_document__position__implementation__specific(&self) -> JsNumber

Source

pub fn set_document__position__implementation__specific( &self, value: &dyn ToJs<JsNumber>, )

Source

pub fn get_document__position__contained__by(&self) -> JsNumber

Source

pub fn set_document__position__contained__by(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__contains(&self) -> JsNumber

Source

pub fn set_document__position__contains(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__following(&self) -> JsNumber

Source

pub fn set_document__position__following(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__preceding(&self) -> JsNumber

Source

pub fn set_document__position__preceding(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__position__disconnected(&self) -> JsNumber

Source

pub fn set_document__position__disconnected(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_notation__node(&self) -> JsNumber

Source

pub fn set_notation__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__fragment__node(&self) -> JsNumber

Source

pub fn set_document__fragment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__type__node(&self) -> JsNumber

Source

pub fn set_document__type__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_document__node(&self) -> JsNumber

Source

pub fn set_document__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_comment__node(&self) -> JsNumber

Source

pub fn set_comment__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_processing__instruction__node(&self) -> JsNumber

Source

pub fn set_processing__instruction__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__node(&self) -> JsNumber

Source

pub fn set_entity__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_entity__reference__node(&self) -> JsNumber

Source

pub fn set_entity__reference__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_cdata__section__node(&self) -> JsNumber

Source

pub fn set_cdata__section__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text__node(&self) -> JsNumber

Source

pub fn set_text__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_attribute__node(&self) -> JsNumber

Source

pub fn set_attribute__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_element__node(&self) -> JsNumber

Source

pub fn set_element__node(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_text_content(&self) -> JsNullable<JsString>

Source

pub fn set_text_content(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_previous_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_previous_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_parent_node(&self) -> JsNullable<ParentNode>

Source

pub fn set_parent_node(&self, value: &dyn ToJs<JsNullable<ParentNode>>)

Source

pub fn get_parent_element(&self) -> JsNullable<HTMLElement>

Source

pub fn set_parent_element(&self, value: &dyn ToJs<JsNullable<HTMLElement>>)

Source

pub fn get_owner_document(&self) -> JsNullable<Document>

Source

pub fn set_owner_document(&self, value: &dyn ToJs<JsNullable<Document>>)

Source

pub fn get_node_value(&self) -> JsNullable<JsString>

Source

pub fn set_node_value(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_node_type(&self) -> JsNumber

Source

pub fn set_node_type(&self, value: &dyn ToJs<JsNumber>)

Source

pub fn get_node_name(&self) -> JsString

Source

pub fn set_node_name(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_next_sibling(&self) -> JsNullable<ChildNode>

Source

pub fn set_next_sibling(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_last_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_last_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_is_connected(&self) -> JsBoolean

Source

pub fn set_is_connected(&self, value: &dyn ToJs<JsBoolean>)

Source

pub fn get_first_child(&self) -> JsNullable<ChildNode>

Source

pub fn set_first_child(&self, value: &dyn ToJs<JsNullable<ChildNode>>)

Source

pub fn get_child_nodes(&self) -> NodeListOf<ChildNode>

Source

pub fn set_child_nodes(&self, value: &dyn ToJs<NodeListOf<ChildNode>>)

Source

pub fn get_base_uri(&self) -> JsString

Source

pub fn set_base_uri(&self, value: &dyn ToJs<JsString>)

Methods from Deref<Target = EventTarget>§

Source

pub fn dispatch_event(&self, event: &Event) -> JsBoolean

Source

pub fn remove_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Source

pub fn add_event_listener( &self, type_: &dyn ToJs<JsString>, callback: &dyn ToJs<JsNullable<JsValue>>, options: &dyn ToJs<JsNullable<JsValue>>, ) -> JsNullish

Methods from Deref<Target = JsObject>§

Source

pub fn js_get_field(&self, property: &dyn UseInJsCode) -> JsValue

Get a field value of in this object.

WSDOM provides built-in getters so you should use that instead when possible.

Use js_get_field only when needed

fn example(browser: Browser) {
    // you can get `window["location"]["href"]` like this
    let href: JsValue = wsdom::dom::location(&browser).js_get_field(&"href");

    // but you should use built-in getters instead
    let href: JsString = wsdom::dom::location(&browser).get_href();
}
Source

pub fn js_set_field(&self, property: &dyn UseInJsCode, value: &dyn UseInJsCode)

Set a field value of in this object.

WSDOM provides built-in setters so you should use that instead when possible.

Use js_set_field only when needed

fn example(browser: Browser) {
    // you can set `window["location"]["href"]` like this
    wsdom::dom::location(&browser).js_set_field(&"href", &"https://example.com/");

    // but you should use built-in setters instead
    wsdom::dom::location(&browser).set_href(&"https://example.com");
}
Source

pub fn js_call_method<'a>( &'a self, method_name: &'a str, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call a method on this object.

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

fn example(browser: &Browser) {
    let console = wsdom::dom::console(browser);
    // you can call console.log like this
    console.js_call_method("log", [&"hello" as &_], false);
     
    // but the better way is to use
    wsdom::dom::console(&browser).log(&[&"Hello" as &_]);
}

Be aware that the first argument (method_name) is NOT escaped.

Set last_arg_variadic to true if you want to “spread” the last argument as obj.method(arg1, arg2, ...arg3).

Source

pub fn js_call_self<'a>( &'a self, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call this object: obj().

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

Methods from Deref<Target = JsValue>§

Source

pub fn browser(&self) -> &Browser

Source

pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>

Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.

§use wsdom::dom::Browser
§use wsdom::dom::HTMLInputElement;

async fn example(input: &HTMLInputElement) { let _val = input.get_value().retrieve_json().await; }

Trait Implementations§

Source§

impl AsRef<ARIAMixin> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ARIAMixin

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Animatable> for HTMLBaseElement

Source§

fn as_ref(&self) -> &Animatable

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ChildNode> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ChildNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Element> for HTMLBaseElement

Source§

fn as_ref(&self) -> &Element

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ElementCSSInlineStyle> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ElementCSSInlineStyle

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ElementContentEditable> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ElementContentEditable

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EventTarget> for HTMLBaseElement

Source§

fn as_ref(&self) -> &EventTarget

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<GlobalEventHandlers> for HTMLBaseElement

Source§

fn as_ref(&self) -> &GlobalEventHandlers

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HTMLBaseElement> for HTMLBaseElement

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HTMLElement> for HTMLBaseElement

Source§

fn as_ref(&self) -> &HTMLElement

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<HTMLOrSVGElement> for HTMLBaseElement

Source§

fn as_ref(&self) -> &HTMLOrSVGElement

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<InnerHTML> for HTMLBaseElement

Source§

fn as_ref(&self) -> &InnerHTML

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsObject> for HTMLBaseElement

Source§

fn as_ref(&self) -> &JsObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsValue> for HTMLBaseElement

Source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Node> for HTMLBaseElement

Source§

fn as_ref(&self) -> &Node

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NonDocumentTypeChildNode> for HTMLBaseElement

Source§

fn as_ref(&self) -> &NonDocumentTypeChildNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ParentNode> for HTMLBaseElement

Source§

fn as_ref(&self) -> &ParentNode

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Slottable> for HTMLBaseElement

Source§

fn as_ref(&self) -> &Slottable

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for HTMLBaseElement

Source§

fn clone(&self) -> HTMLBaseElement

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Deref for HTMLBaseElement

Source§

type Target = HTMLElement

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Into<ARIAMixin> for HTMLBaseElement

Source§

fn into(self) -> ARIAMixin

Converts this type into the (usually inferred) input type.
Source§

impl Into<Animatable> for HTMLBaseElement

Source§

fn into(self) -> Animatable

Converts this type into the (usually inferred) input type.
Source§

impl Into<ChildNode> for HTMLBaseElement

Source§

fn into(self) -> ChildNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<Element> for HTMLBaseElement

Source§

fn into(self) -> Element

Converts this type into the (usually inferred) input type.
Source§

impl Into<ElementCSSInlineStyle> for HTMLBaseElement

Source§

fn into(self) -> ElementCSSInlineStyle

Converts this type into the (usually inferred) input type.
Source§

impl Into<ElementContentEditable> for HTMLBaseElement

Source§

fn into(self) -> ElementContentEditable

Converts this type into the (usually inferred) input type.
Source§

impl Into<EventTarget> for HTMLBaseElement

Source§

fn into(self) -> EventTarget

Converts this type into the (usually inferred) input type.
Source§

impl Into<GlobalEventHandlers> for HTMLBaseElement

Source§

fn into(self) -> GlobalEventHandlers

Converts this type into the (usually inferred) input type.
Source§

impl Into<HTMLElement> for HTMLBaseElement

Source§

fn into(self) -> HTMLElement

Converts this type into the (usually inferred) input type.
Source§

impl Into<HTMLOrSVGElement> for HTMLBaseElement

Source§

fn into(self) -> HTMLOrSVGElement

Converts this type into the (usually inferred) input type.
Source§

impl Into<InnerHTML> for HTMLBaseElement

Source§

fn into(self) -> InnerHTML

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsObject> for HTMLBaseElement

Source§

fn into(self) -> JsObject

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for HTMLBaseElement

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<Node> for HTMLBaseElement

Source§

fn into(self) -> Node

Converts this type into the (usually inferred) input type.
Source§

impl Into<NonDocumentTypeChildNode> for HTMLBaseElement

Source§

fn into(self) -> NonDocumentTypeChildNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<ParentNode> for HTMLBaseElement

Source§

fn into(self) -> ParentNode

Converts this type into the (usually inferred) input type.
Source§

impl Into<Slottable> for HTMLBaseElement

Source§

fn into(self) -> Slottable

Converts this type into the (usually inferred) input type.
Source§

impl JsCast for HTMLBaseElement

Source§

fn unchecked_from_js(val: JsValue) -> Self

Source§

fn unchecked_from_js_ref(val: &JsValue) -> &Self

Source§

fn unchecked_into<T>(self) -> T
where T: JsCast,

Source§

fn unchecked_ref<T>(&self) -> &T
where T: JsCast,

Source§

impl RefCast for HTMLBaseElement

Source§

type From = JsValue

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl UseInJsCode for HTMLBaseElement

Source§

fn serialize_to(&self, buf: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ToJs<T> for T
where T: UseInJsCode + ?Sized,