Struct web_sys::HtmlDocument
source · #[repr(transparent)]pub struct HtmlDocument { /* private fields */ }
Expand description
The HTMLDocument
object
This API requires the following crate features to be activated: HtmlDocument
Implementations§
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn capture_events(&self)
pub fn capture_events(&self)
The captureEvents()
method
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn query_command_supported(&self, command_id: &str) -> bool
pub fn query_command_supported(&self, command_id: &str) -> bool
The queryCommandSupported()
method
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn release_events(&self)
pub fn release_events(&self)
The releaseEvents()
method
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_domain(&self, domain: &str)
pub fn set_domain(&self, domain: &str)
The domain
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
The cookie
getter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
The cookie
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn design_mode(&self) -> String
pub fn design_mode(&self) -> String
The designMode
getter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_design_mode(&self, design_mode: &str)
pub fn set_design_mode(&self, design_mode: &str)
The designMode
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_fg_color(&self, fg_color: &str)
pub fn set_fg_color(&self, fg_color: &str)
The fgColor
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn link_color(&self) -> String
pub fn link_color(&self) -> String
The linkColor
getter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_link_color(&self, link_color: &str)
pub fn set_link_color(&self, link_color: &str)
The linkColor
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn vlink_color(&self) -> String
pub fn vlink_color(&self) -> String
The vlinkColor
getter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_vlink_color(&self, vlink_color: &str)
pub fn set_vlink_color(&self, vlink_color: &str)
The vlinkColor
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn alink_color(&self) -> String
pub fn alink_color(&self) -> String
The alinkColor
getter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_alink_color(&self, alink_color: &str)
pub fn set_alink_color(&self, alink_color: &str)
The alinkColor
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn set_bg_color(&self, bg_color: &str)
pub fn set_bg_color(&self, bg_color: &str)
The bgColor
setter
This API requires the following crate features to be activated: HtmlDocument
source§impl HtmlDocument
impl HtmlDocument
sourcepub fn all(&self) -> HtmlAllCollection
pub fn all(&self) -> HtmlAllCollection
The all
getter
This API requires the following crate features to be activated: HtmlAllCollection
, HtmlDocument
Methods from Deref<Target = Document>§
sourcepub fn caret_position_from_point(&self, x: f32, y: f32) -> Option<CaretPosition>
pub fn caret_position_from_point(&self, x: f32, y: f32) -> Option<CaretPosition>
The caretPositionFromPoint()
method
This API requires the following crate features to be activated: CaretPosition
, Document
sourcepub fn create_cdata_section(&self, data: &str) -> Result<CdataSection, JsValue>
pub fn create_cdata_section(&self, data: &str) -> Result<CdataSection, JsValue>
The createCDATASection()
method
This API requires the following crate features to be activated: CdataSection
, Document
sourcepub fn create_comment(&self, data: &str) -> Comment
pub fn create_comment(&self, data: &str) -> Comment
The createComment()
method
This API requires the following crate features to be activated: Comment
, Document
sourcepub fn create_document_fragment(&self) -> DocumentFragment
pub fn create_document_fragment(&self) -> DocumentFragment
The createDocumentFragment()
method
This API requires the following crate features to be activated: Document
, DocumentFragment
sourcepub fn create_element_with_element_creation_options(
&self,
local_name: &str,
options: &ElementCreationOptions
) -> Result<Element, JsValue>
pub fn create_element_with_element_creation_options(
&self,
local_name: &str,
options: &ElementCreationOptions
) -> Result<Element, JsValue>
The createElement()
method
This API requires the following crate features to be activated: Document
, Element
, ElementCreationOptions
sourcepub fn create_element_ns_with_element_creation_options(
&self,
namespace: Option<&str>,
qualified_name: &str,
options: &ElementCreationOptions
) -> Result<Element, JsValue>
pub fn create_element_ns_with_element_creation_options(
&self,
namespace: Option<&str>,
qualified_name: &str,
options: &ElementCreationOptions
) -> Result<Element, JsValue>
The createElementNS()
method
This API requires the following crate features to be activated: Document
, Element
, ElementCreationOptions
sourcepub fn create_node_iterator(&self, root: &Node) -> Result<NodeIterator, JsValue>
pub fn create_node_iterator(&self, root: &Node) -> Result<NodeIterator, JsValue>
The createNodeIterator()
method
This API requires the following crate features to be activated: Document
, Node
, NodeIterator
sourcepub fn create_node_iterator_with_what_to_show(
&self,
root: &Node,
what_to_show: u32
) -> Result<NodeIterator, JsValue>
pub fn create_node_iterator_with_what_to_show(
&self,
root: &Node,
what_to_show: u32
) -> Result<NodeIterator, JsValue>
The createNodeIterator()
method
This API requires the following crate features to be activated: Document
, Node
, NodeIterator
sourcepub fn create_node_iterator_with_what_to_show_and_filter(
&self,
root: &Node,
what_to_show: u32,
filter: Option<&NodeFilter>
) -> Result<NodeIterator, JsValue>
pub fn create_node_iterator_with_what_to_show_and_filter(
&self,
root: &Node,
what_to_show: u32,
filter: Option<&NodeFilter>
) -> Result<NodeIterator, JsValue>
The createNodeIterator()
method
This API requires the following crate features to be activated: Document
, Node
, NodeFilter
, NodeIterator
sourcepub fn create_processing_instruction(
&self,
target: &str,
data: &str
) -> Result<ProcessingInstruction, JsValue>
pub fn create_processing_instruction(
&self,
target: &str,
data: &str
) -> Result<ProcessingInstruction, JsValue>
The createProcessingInstruction()
method
This API requires the following crate features to be activated: Document
, ProcessingInstruction
sourcepub fn create_range(&self) -> Result<Range, JsValue>
pub fn create_range(&self) -> Result<Range, JsValue>
The createRange()
method
This API requires the following crate features to be activated: Document
, Range
sourcepub fn create_text_node(&self, data: &str) -> Text
pub fn create_text_node(&self, data: &str) -> Text
The createTextNode()
method
This API requires the following crate features to be activated: Document
, Text
sourcepub fn create_tree_walker(&self, root: &Node) -> Result<TreeWalker, JsValue>
pub fn create_tree_walker(&self, root: &Node) -> Result<TreeWalker, JsValue>
The createTreeWalker()
method
This API requires the following crate features to be activated: Document
, Node
, TreeWalker
sourcepub fn create_tree_walker_with_what_to_show(
&self,
root: &Node,
what_to_show: u32
) -> Result<TreeWalker, JsValue>
pub fn create_tree_walker_with_what_to_show(
&self,
root: &Node,
what_to_show: u32
) -> Result<TreeWalker, JsValue>
The createTreeWalker()
method
This API requires the following crate features to be activated: Document
, Node
, TreeWalker
sourcepub fn create_tree_walker_with_what_to_show_and_filter(
&self,
root: &Node,
what_to_show: u32,
filter: Option<&NodeFilter>
) -> Result<TreeWalker, JsValue>
pub fn create_tree_walker_with_what_to_show_and_filter(
&self,
root: &Node,
what_to_show: u32,
filter: Option<&NodeFilter>
) -> Result<TreeWalker, JsValue>
The createTreeWalker()
method
This API requires the following crate features to be activated: Document
, Node
, NodeFilter
, TreeWalker
sourcepub fn enable_style_sheets_for_set(&self, name: Option<&str>)
pub fn enable_style_sheets_for_set(&self, name: Option<&str>)
The enableStyleSheetsForSet()
method
This API requires the following crate features to be activated: Document
sourcepub fn exit_fullscreen(&self)
pub fn exit_fullscreen(&self)
The exitFullscreen()
method
This API requires the following crate features to be activated: Document
sourcepub fn exit_pointer_lock(&self)
pub fn exit_pointer_lock(&self)
The exitPointerLock()
method
This API requires the following crate features to be activated: Document
sourcepub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
pub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
The getElementById()
method
This API requires the following crate features to be activated: Document
, Element
sourcepub fn get_elements_by_class_name(&self, class_names: &str) -> HtmlCollection
pub fn get_elements_by_class_name(&self, class_names: &str) -> HtmlCollection
The getElementsByClassName()
method
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn get_elements_by_name(&self, element_name: &str) -> NodeList
pub fn get_elements_by_name(&self, element_name: &str) -> NodeList
The getElementsByName()
method
This API requires the following crate features to be activated: Document
, NodeList
sourcepub fn get_elements_by_tag_name(&self, local_name: &str) -> HtmlCollection
pub fn get_elements_by_tag_name(&self, local_name: &str) -> HtmlCollection
The getElementsByTagName()
method
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn get_elements_by_tag_name_ns(
&self,
namespace: Option<&str>,
local_name: &str
) -> Result<HtmlCollection, JsValue>
pub fn get_elements_by_tag_name_ns(
&self,
namespace: Option<&str>,
local_name: &str
) -> Result<HtmlCollection, JsValue>
The getElementsByTagNameNS()
method
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn release_capture(&self)
pub fn release_capture(&self)
The releaseCapture()
method
This API requires the following crate features to be activated: Document
sourcepub fn implementation(&self) -> Result<DomImplementation, JsValue>
pub fn implementation(&self) -> Result<DomImplementation, JsValue>
The implementation
getter
This API requires the following crate features to be activated: Document
, DomImplementation
sourcepub fn document_uri(&self) -> Result<String, JsValue>
pub fn document_uri(&self) -> Result<String, JsValue>
The documentURI
getter
This API requires the following crate features to be activated: Document
sourcepub fn compat_mode(&self) -> String
pub fn compat_mode(&self) -> String
The compatMode
getter
This API requires the following crate features to be activated: Document
sourcepub fn character_set(&self) -> String
pub fn character_set(&self) -> String
The characterSet
getter
This API requires the following crate features to be activated: Document
sourcepub fn input_encoding(&self) -> String
pub fn input_encoding(&self) -> String
The inputEncoding
getter
This API requires the following crate features to be activated: Document
sourcepub fn content_type(&self) -> String
pub fn content_type(&self) -> String
The contentType
getter
This API requires the following crate features to be activated: Document
sourcepub fn doctype(&self) -> Option<DocumentType>
pub fn doctype(&self) -> Option<DocumentType>
The doctype
getter
This API requires the following crate features to be activated: Document
, DocumentType
sourcepub fn document_element(&self) -> Option<Element>
pub fn document_element(&self) -> Option<Element>
The documentElement
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn last_modified(&self) -> String
pub fn last_modified(&self) -> String
The lastModified
getter
This API requires the following crate features to be activated: Document
sourcepub fn ready_state(&self) -> String
pub fn ready_state(&self) -> String
The readyState
getter
This API requires the following crate features to be activated: Document
sourcepub fn body(&self) -> Option<HtmlElement>
pub fn body(&self) -> Option<HtmlElement>
The body
getter
This API requires the following crate features to be activated: Document
, HtmlElement
sourcepub fn set_body(&self, body: Option<&HtmlElement>)
pub fn set_body(&self, body: Option<&HtmlElement>)
The body
setter
This API requires the following crate features to be activated: Document
, HtmlElement
sourcepub fn head(&self) -> Option<HtmlHeadElement>
pub fn head(&self) -> Option<HtmlHeadElement>
The head
getter
This API requires the following crate features to be activated: Document
, HtmlHeadElement
sourcepub fn images(&self) -> HtmlCollection
pub fn images(&self) -> HtmlCollection
The images
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn embeds(&self) -> HtmlCollection
pub fn embeds(&self) -> HtmlCollection
The embeds
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn plugins(&self) -> HtmlCollection
pub fn plugins(&self) -> HtmlCollection
The plugins
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn links(&self) -> HtmlCollection
pub fn links(&self) -> HtmlCollection
The links
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn forms(&self) -> HtmlCollection
pub fn forms(&self) -> HtmlCollection
The forms
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn scripts(&self) -> HtmlCollection
pub fn scripts(&self) -> HtmlCollection
The scripts
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn default_view(&self) -> Option<Window>
pub fn default_view(&self) -> Option<Window>
The defaultView
getter
This API requires the following crate features to be activated: Document
, Window
sourcepub fn onreadystatechange(&self) -> Option<Function>
pub fn onreadystatechange(&self) -> Option<Function>
The onreadystatechange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onreadystatechange(&self, onreadystatechange: Option<&Function>)
pub fn set_onreadystatechange(&self, onreadystatechange: Option<&Function>)
The onreadystatechange
setter
This API requires the following crate features to be activated: Document
sourcepub fn onbeforescriptexecute(&self) -> Option<Function>
pub fn onbeforescriptexecute(&self) -> Option<Function>
The onbeforescriptexecute
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onbeforescriptexecute(&self, onbeforescriptexecute: Option<&Function>)
pub fn set_onbeforescriptexecute(&self, onbeforescriptexecute: Option<&Function>)
The onbeforescriptexecute
setter
This API requires the following crate features to be activated: Document
sourcepub fn onafterscriptexecute(&self) -> Option<Function>
pub fn onafterscriptexecute(&self) -> Option<Function>
The onafterscriptexecute
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onafterscriptexecute(&self, onafterscriptexecute: Option<&Function>)
pub fn set_onafterscriptexecute(&self, onafterscriptexecute: Option<&Function>)
The onafterscriptexecute
setter
This API requires the following crate features to be activated: Document
sourcepub fn onselectionchange(&self) -> Option<Function>
pub fn onselectionchange(&self) -> Option<Function>
The onselectionchange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onselectionchange(&self, onselectionchange: Option<&Function>)
pub fn set_onselectionchange(&self, onselectionchange: Option<&Function>)
The onselectionchange
setter
This API requires the following crate features to be activated: Document
sourcepub fn current_script(&self) -> Option<Element>
pub fn current_script(&self) -> Option<Element>
The currentScript
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn anchors(&self) -> HtmlCollection
pub fn anchors(&self) -> HtmlCollection
The anchors
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn applets(&self) -> HtmlCollection
pub fn applets(&self) -> HtmlCollection
The applets
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn fullscreen(&self) -> bool
pub fn fullscreen(&self) -> bool
The fullscreen
getter
This API requires the following crate features to be activated: Document
sourcepub fn fullscreen_enabled(&self) -> bool
pub fn fullscreen_enabled(&self) -> bool
The fullscreenEnabled
getter
This API requires the following crate features to be activated: Document
sourcepub fn onfullscreenchange(&self) -> Option<Function>
pub fn onfullscreenchange(&self) -> Option<Function>
The onfullscreenchange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onfullscreenchange(&self, onfullscreenchange: Option<&Function>)
pub fn set_onfullscreenchange(&self, onfullscreenchange: Option<&Function>)
The onfullscreenchange
setter
This API requires the following crate features to be activated: Document
sourcepub fn onfullscreenerror(&self) -> Option<Function>
pub fn onfullscreenerror(&self) -> Option<Function>
The onfullscreenerror
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onfullscreenerror(&self, onfullscreenerror: Option<&Function>)
pub fn set_onfullscreenerror(&self, onfullscreenerror: Option<&Function>)
The onfullscreenerror
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerlockchange(&self) -> Option<Function>
pub fn onpointerlockchange(&self) -> Option<Function>
The onpointerlockchange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerlockchange(&self, onpointerlockchange: Option<&Function>)
pub fn set_onpointerlockchange(&self, onpointerlockchange: Option<&Function>)
The onpointerlockchange
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerlockerror(&self) -> Option<Function>
pub fn onpointerlockerror(&self) -> Option<Function>
The onpointerlockerror
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerlockerror(&self, onpointerlockerror: Option<&Function>)
pub fn set_onpointerlockerror(&self, onpointerlockerror: Option<&Function>)
The onpointerlockerror
setter
This API requires the following crate features to be activated: Document
The hidden
getter
This API requires the following crate features to be activated: Document
sourcepub fn visibility_state(&self) -> VisibilityState
pub fn visibility_state(&self) -> VisibilityState
The visibilityState
getter
This API requires the following crate features to be activated: Document
, VisibilityState
sourcepub fn onvisibilitychange(&self) -> Option<Function>
pub fn onvisibilitychange(&self) -> Option<Function>
The onvisibilitychange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onvisibilitychange(&self, onvisibilitychange: Option<&Function>)
pub fn set_onvisibilitychange(&self, onvisibilitychange: Option<&Function>)
The onvisibilitychange
setter
This API requires the following crate features to be activated: Document
sourcepub fn selected_style_sheet_set(&self) -> Option<String>
pub fn selected_style_sheet_set(&self) -> Option<String>
The selectedStyleSheetSet
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_selected_style_sheet_set(
&self,
selected_style_sheet_set: Option<&str>
)
pub fn set_selected_style_sheet_set(
&self,
selected_style_sheet_set: Option<&str>
)
The selectedStyleSheetSet
setter
This API requires the following crate features to be activated: Document
sourcepub fn last_style_sheet_set(&self) -> Option<String>
pub fn last_style_sheet_set(&self) -> Option<String>
The lastStyleSheetSet
getter
This API requires the following crate features to be activated: Document
sourcepub fn preferred_style_sheet_set(&self) -> Option<String>
pub fn preferred_style_sheet_set(&self) -> Option<String>
The preferredStyleSheetSet
getter
This API requires the following crate features to be activated: Document
sourcepub fn style_sheet_sets(&self) -> DomStringList
pub fn style_sheet_sets(&self) -> DomStringList
The styleSheetSets
getter
This API requires the following crate features to be activated: Document
, DomStringList
sourcepub fn scrolling_element(&self) -> Option<Element>
pub fn scrolling_element(&self) -> Option<Element>
The scrollingElement
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn timeline(&self) -> DocumentTimeline
pub fn timeline(&self) -> DocumentTimeline
The timeline
getter
This API requires the following crate features to be activated: Document
, DocumentTimeline
sourcepub fn root_element(&self) -> Option<SvgsvgElement>
pub fn root_element(&self) -> Option<SvgsvgElement>
The rootElement
getter
This API requires the following crate features to be activated: Document
, SvgsvgElement
sourcepub fn set_oncopy(&self, oncopy: Option<&Function>)
pub fn set_oncopy(&self, oncopy: Option<&Function>)
The oncopy
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpaste(&self, onpaste: Option<&Function>)
pub fn set_onpaste(&self, onpaste: Option<&Function>)
The onpaste
setter
This API requires the following crate features to be activated: Document
sourcepub fn active_element(&self) -> Option<Element>
pub fn active_element(&self) -> Option<Element>
The activeElement
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn style_sheets(&self) -> StyleSheetList
pub fn style_sheets(&self) -> StyleSheetList
The styleSheets
getter
This API requires the following crate features to be activated: Document
, StyleSheetList
sourcepub fn pointer_lock_element(&self) -> Option<Element>
pub fn pointer_lock_element(&self) -> Option<Element>
The pointerLockElement
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn fullscreen_element(&self) -> Option<Element>
pub fn fullscreen_element(&self) -> Option<Element>
The fullscreenElement
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn fonts(&self) -> FontFaceSet
pub fn fonts(&self) -> FontFaceSet
The fonts
getter
This API requires the following crate features to be activated: Document
, FontFaceSet
sourcepub fn convert_point_from_node_with_text(
&self,
point: &DomPointInit,
from: &Text
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_text(
&self,
point: &DomPointInit,
from: &Text
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: Document
, DomPoint
, DomPointInit
, Text
sourcepub fn convert_point_from_node_with_element(
&self,
point: &DomPointInit,
from: &Element
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_element(
&self,
point: &DomPointInit,
from: &Element
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: Document
, DomPoint
, DomPointInit
, Element
sourcepub fn convert_point_from_node_with_document(
&self,
point: &DomPointInit,
from: &Document
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_document(
&self,
point: &DomPointInit,
from: &Document
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: Document
, DomPoint
, DomPointInit
sourcepub fn convert_point_from_node_with_text_and_options(
&self,
point: &DomPointInit,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_text_and_options(
&self,
point: &DomPointInit,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomPoint
, DomPointInit
, Text
sourcepub fn convert_point_from_node_with_element_and_options(
&self,
point: &DomPointInit,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_element_and_options(
&self,
point: &DomPointInit,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomPoint
, DomPointInit
, Element
sourcepub fn convert_point_from_node_with_document_and_options(
&self,
point: &DomPointInit,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
pub fn convert_point_from_node_with_document_and_options(
&self,
point: &DomPointInit,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomPoint, JsValue>
The convertPointFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomPoint
, DomPointInit
sourcepub fn convert_quad_from_node_with_text_and_options(
&self,
quad: &DomQuad,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_text_and_options(
&self,
quad: &DomQuad,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, Text
sourcepub fn convert_quad_from_node_with_element_and_options(
&self,
quad: &DomQuad,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_element_and_options(
&self,
quad: &DomQuad,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, Element
sourcepub fn convert_quad_from_node_with_document_and_options(
&self,
quad: &DomQuad,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_quad_from_node_with_document_and_options(
&self,
quad: &DomQuad,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertQuadFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
sourcepub fn convert_rect_from_node_with_text(
&self,
rect: &DomRectReadOnly,
from: &Text
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_text(
&self,
rect: &DomRectReadOnly,
from: &Text
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: Document
, DomQuad
, DomRectReadOnly
, Text
sourcepub fn convert_rect_from_node_with_element(
&self,
rect: &DomRectReadOnly,
from: &Element
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_element(
&self,
rect: &DomRectReadOnly,
from: &Element
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: Document
, DomQuad
, DomRectReadOnly
, Element
sourcepub fn convert_rect_from_node_with_document(
&self,
rect: &DomRectReadOnly,
from: &Document
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_document(
&self,
rect: &DomRectReadOnly,
from: &Document
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: Document
, DomQuad
, DomRectReadOnly
sourcepub fn convert_rect_from_node_with_text_and_options(
&self,
rect: &DomRectReadOnly,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_text_and_options(
&self,
rect: &DomRectReadOnly,
from: &Text,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, DomRectReadOnly
, Text
sourcepub fn convert_rect_from_node_with_element_and_options(
&self,
rect: &DomRectReadOnly,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_element_and_options(
&self,
rect: &DomRectReadOnly,
from: &Element,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, DomRectReadOnly
, Element
sourcepub fn convert_rect_from_node_with_document_and_options(
&self,
rect: &DomRectReadOnly,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
pub fn convert_rect_from_node_with_document_and_options(
&self,
rect: &DomRectReadOnly,
from: &Document,
options: &ConvertCoordinateOptions
) -> Result<DomQuad, JsValue>
The convertRectFromNode()
method
This API requires the following crate features to be activated: ConvertCoordinateOptions
, Document
, DomQuad
, DomRectReadOnly
sourcepub fn set_onabort(&self, onabort: Option<&Function>)
pub fn set_onabort(&self, onabort: Option<&Function>)
The onabort
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onblur(&self, onblur: Option<&Function>)
pub fn set_onblur(&self, onblur: Option<&Function>)
The onblur
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onfocus(&self, onfocus: Option<&Function>)
pub fn set_onfocus(&self, onfocus: Option<&Function>)
The onfocus
setter
This API requires the following crate features to be activated: Document
sourcepub fn onauxclick(&self) -> Option<Function>
pub fn onauxclick(&self) -> Option<Function>
The onauxclick
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onauxclick(&self, onauxclick: Option<&Function>)
pub fn set_onauxclick(&self, onauxclick: Option<&Function>)
The onauxclick
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_oncanplay(&self, oncanplay: Option<&Function>)
pub fn set_oncanplay(&self, oncanplay: Option<&Function>)
The oncanplay
setter
This API requires the following crate features to be activated: Document
sourcepub fn oncanplaythrough(&self) -> Option<Function>
pub fn oncanplaythrough(&self) -> Option<Function>
The oncanplaythrough
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
pub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)
The oncanplaythrough
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onchange(&self, onchange: Option<&Function>)
pub fn set_onchange(&self, onchange: Option<&Function>)
The onchange
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onclick(&self, onclick: Option<&Function>)
pub fn set_onclick(&self, onclick: Option<&Function>)
The onclick
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onclose(&self, onclose: Option<&Function>)
pub fn set_onclose(&self, onclose: Option<&Function>)
The onclose
setter
This API requires the following crate features to be activated: Document
The oncontextmenu
getter
This API requires the following crate features to be activated: Document
The oncontextmenu
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondblclick(&self) -> Option<Function>
pub fn ondblclick(&self) -> Option<Function>
The ondblclick
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondblclick(&self, ondblclick: Option<&Function>)
pub fn set_ondblclick(&self, ondblclick: Option<&Function>)
The ondblclick
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondrag(&self, ondrag: Option<&Function>)
pub fn set_ondrag(&self, ondrag: Option<&Function>)
The ondrag
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragend(&self, ondragend: Option<&Function>)
pub fn set_ondragend(&self, ondragend: Option<&Function>)
The ondragend
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondragenter(&self) -> Option<Function>
pub fn ondragenter(&self) -> Option<Function>
The ondragenter
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragenter(&self, ondragenter: Option<&Function>)
pub fn set_ondragenter(&self, ondragenter: Option<&Function>)
The ondragenter
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondragexit(&self) -> Option<Function>
pub fn ondragexit(&self) -> Option<Function>
The ondragexit
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragexit(&self, ondragexit: Option<&Function>)
pub fn set_ondragexit(&self, ondragexit: Option<&Function>)
The ondragexit
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondragleave(&self) -> Option<Function>
pub fn ondragleave(&self) -> Option<Function>
The ondragleave
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragleave(&self, ondragleave: Option<&Function>)
pub fn set_ondragleave(&self, ondragleave: Option<&Function>)
The ondragleave
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondragover(&self) -> Option<Function>
pub fn ondragover(&self) -> Option<Function>
The ondragover
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragover(&self, ondragover: Option<&Function>)
pub fn set_ondragover(&self, ondragover: Option<&Function>)
The ondragover
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondragstart(&self) -> Option<Function>
pub fn ondragstart(&self) -> Option<Function>
The ondragstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondragstart(&self, ondragstart: Option<&Function>)
pub fn set_ondragstart(&self, ondragstart: Option<&Function>)
The ondragstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondrop(&self, ondrop: Option<&Function>)
pub fn set_ondrop(&self, ondrop: Option<&Function>)
The ondrop
setter
This API requires the following crate features to be activated: Document
sourcepub fn ondurationchange(&self) -> Option<Function>
pub fn ondurationchange(&self) -> Option<Function>
The ondurationchange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
pub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)
The ondurationchange
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onemptied(&self, onemptied: Option<&Function>)
pub fn set_onemptied(&self, onemptied: Option<&Function>)
The onemptied
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onended(&self, onended: Option<&Function>)
pub fn set_onended(&self, onended: Option<&Function>)
The onended
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_oninput(&self, oninput: Option<&Function>)
pub fn set_oninput(&self, oninput: Option<&Function>)
The oninput
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_oninvalid(&self, oninvalid: Option<&Function>)
pub fn set_oninvalid(&self, oninvalid: Option<&Function>)
The oninvalid
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onkeydown(&self, onkeydown: Option<&Function>)
pub fn set_onkeydown(&self, onkeydown: Option<&Function>)
The onkeydown
setter
This API requires the following crate features to be activated: Document
sourcepub fn onkeypress(&self) -> Option<Function>
pub fn onkeypress(&self) -> Option<Function>
The onkeypress
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onkeypress(&self, onkeypress: Option<&Function>)
pub fn set_onkeypress(&self, onkeypress: Option<&Function>)
The onkeypress
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onkeyup(&self, onkeyup: Option<&Function>)
pub fn set_onkeyup(&self, onkeyup: Option<&Function>)
The onkeyup
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onload(&self, onload: Option<&Function>)
pub fn set_onload(&self, onload: Option<&Function>)
The onload
setter
This API requires the following crate features to be activated: Document
sourcepub fn onloadeddata(&self) -> Option<Function>
pub fn onloadeddata(&self) -> Option<Function>
The onloadeddata
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
pub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)
The onloadeddata
setter
This API requires the following crate features to be activated: Document
sourcepub fn onloadedmetadata(&self) -> Option<Function>
pub fn onloadedmetadata(&self) -> Option<Function>
The onloadedmetadata
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
pub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)
The onloadedmetadata
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onloadend(&self, onloadend: Option<&Function>)
pub fn set_onloadend(&self, onloadend: Option<&Function>)
The onloadend
setter
This API requires the following crate features to be activated: Document
sourcepub fn onloadstart(&self) -> Option<Function>
pub fn onloadstart(&self) -> Option<Function>
The onloadstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onloadstart(&self, onloadstart: Option<&Function>)
pub fn set_onloadstart(&self, onloadstart: Option<&Function>)
The onloadstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmousedown(&self) -> Option<Function>
pub fn onmousedown(&self) -> Option<Function>
The onmousedown
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmousedown(&self, onmousedown: Option<&Function>)
pub fn set_onmousedown(&self, onmousedown: Option<&Function>)
The onmousedown
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmouseenter(&self) -> Option<Function>
pub fn onmouseenter(&self) -> Option<Function>
The onmouseenter
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
pub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)
The onmouseenter
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmouseleave(&self) -> Option<Function>
pub fn onmouseleave(&self) -> Option<Function>
The onmouseleave
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
pub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)
The onmouseleave
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmousemove(&self) -> Option<Function>
pub fn onmousemove(&self) -> Option<Function>
The onmousemove
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmousemove(&self, onmousemove: Option<&Function>)
pub fn set_onmousemove(&self, onmousemove: Option<&Function>)
The onmousemove
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmouseout(&self) -> Option<Function>
pub fn onmouseout(&self) -> Option<Function>
The onmouseout
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmouseout(&self, onmouseout: Option<&Function>)
pub fn set_onmouseout(&self, onmouseout: Option<&Function>)
The onmouseout
setter
This API requires the following crate features to be activated: Document
sourcepub fn onmouseover(&self) -> Option<Function>
pub fn onmouseover(&self) -> Option<Function>
The onmouseover
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmouseover(&self, onmouseover: Option<&Function>)
pub fn set_onmouseover(&self, onmouseover: Option<&Function>)
The onmouseover
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onmouseup(&self, onmouseup: Option<&Function>)
pub fn set_onmouseup(&self, onmouseup: Option<&Function>)
The onmouseup
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwheel(&self, onwheel: Option<&Function>)
pub fn set_onwheel(&self, onwheel: Option<&Function>)
The onwheel
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpause(&self, onpause: Option<&Function>)
pub fn set_onpause(&self, onpause: Option<&Function>)
The onpause
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onplay(&self, onplay: Option<&Function>)
pub fn set_onplay(&self, onplay: Option<&Function>)
The onplay
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onplaying(&self, onplaying: Option<&Function>)
pub fn set_onplaying(&self, onplaying: Option<&Function>)
The onplaying
setter
This API requires the following crate features to be activated: Document
sourcepub fn onprogress(&self) -> Option<Function>
pub fn onprogress(&self) -> Option<Function>
The onprogress
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onprogress(&self, onprogress: Option<&Function>)
pub fn set_onprogress(&self, onprogress: Option<&Function>)
The onprogress
setter
This API requires the following crate features to be activated: Document
sourcepub fn onratechange(&self) -> Option<Function>
pub fn onratechange(&self) -> Option<Function>
The onratechange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onratechange(&self, onratechange: Option<&Function>)
pub fn set_onratechange(&self, onratechange: Option<&Function>)
The onratechange
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onreset(&self, onreset: Option<&Function>)
pub fn set_onreset(&self, onreset: Option<&Function>)
The onreset
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onresize(&self, onresize: Option<&Function>)
pub fn set_onresize(&self, onresize: Option<&Function>)
The onresize
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onscroll(&self, onscroll: Option<&Function>)
pub fn set_onscroll(&self, onscroll: Option<&Function>)
The onscroll
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onseeked(&self, onseeked: Option<&Function>)
pub fn set_onseeked(&self, onseeked: Option<&Function>)
The onseeked
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onseeking(&self, onseeking: Option<&Function>)
pub fn set_onseeking(&self, onseeking: Option<&Function>)
The onseeking
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onselect(&self, onselect: Option<&Function>)
pub fn set_onselect(&self, onselect: Option<&Function>)
The onselect
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onshow(&self, onshow: Option<&Function>)
pub fn set_onshow(&self, onshow: Option<&Function>)
The onshow
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onstalled(&self, onstalled: Option<&Function>)
pub fn set_onstalled(&self, onstalled: Option<&Function>)
The onstalled
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onsubmit(&self, onsubmit: Option<&Function>)
pub fn set_onsubmit(&self, onsubmit: Option<&Function>)
The onsubmit
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onsuspend(&self, onsuspend: Option<&Function>)
pub fn set_onsuspend(&self, onsuspend: Option<&Function>)
The onsuspend
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontimeupdate(&self) -> Option<Function>
pub fn ontimeupdate(&self) -> Option<Function>
The ontimeupdate
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
pub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)
The ontimeupdate
setter
This API requires the following crate features to be activated: Document
sourcepub fn onvolumechange(&self) -> Option<Function>
pub fn onvolumechange(&self) -> Option<Function>
The onvolumechange
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
pub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)
The onvolumechange
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwaiting(&self, onwaiting: Option<&Function>)
pub fn set_onwaiting(&self, onwaiting: Option<&Function>)
The onwaiting
setter
This API requires the following crate features to be activated: Document
sourcepub fn onselectstart(&self) -> Option<Function>
pub fn onselectstart(&self) -> Option<Function>
The onselectstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onselectstart(&self, onselectstart: Option<&Function>)
pub fn set_onselectstart(&self, onselectstart: Option<&Function>)
The onselectstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontoggle(&self, ontoggle: Option<&Function>)
pub fn set_ontoggle(&self, ontoggle: Option<&Function>)
The ontoggle
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointercancel(&self) -> Option<Function>
pub fn onpointercancel(&self) -> Option<Function>
The onpointercancel
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
pub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)
The onpointercancel
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerdown(&self) -> Option<Function>
pub fn onpointerdown(&self) -> Option<Function>
The onpointerdown
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
pub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)
The onpointerdown
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerup(&self) -> Option<Function>
pub fn onpointerup(&self) -> Option<Function>
The onpointerup
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerup(&self, onpointerup: Option<&Function>)
pub fn set_onpointerup(&self, onpointerup: Option<&Function>)
The onpointerup
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointermove(&self) -> Option<Function>
pub fn onpointermove(&self) -> Option<Function>
The onpointermove
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointermove(&self, onpointermove: Option<&Function>)
pub fn set_onpointermove(&self, onpointermove: Option<&Function>)
The onpointermove
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerout(&self) -> Option<Function>
pub fn onpointerout(&self) -> Option<Function>
The onpointerout
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerout(&self, onpointerout: Option<&Function>)
pub fn set_onpointerout(&self, onpointerout: Option<&Function>)
The onpointerout
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerover(&self) -> Option<Function>
pub fn onpointerover(&self) -> Option<Function>
The onpointerover
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerover(&self, onpointerover: Option<&Function>)
pub fn set_onpointerover(&self, onpointerover: Option<&Function>)
The onpointerover
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerenter(&self) -> Option<Function>
pub fn onpointerenter(&self) -> Option<Function>
The onpointerenter
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
pub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)
The onpointerenter
setter
This API requires the following crate features to be activated: Document
sourcepub fn onpointerleave(&self) -> Option<Function>
pub fn onpointerleave(&self) -> Option<Function>
The onpointerleave
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
pub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)
The onpointerleave
setter
This API requires the following crate features to be activated: Document
sourcepub fn ongotpointercapture(&self) -> Option<Function>
pub fn ongotpointercapture(&self) -> Option<Function>
The ongotpointercapture
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
pub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)
The ongotpointercapture
setter
This API requires the following crate features to be activated: Document
sourcepub fn onlostpointercapture(&self) -> Option<Function>
pub fn onlostpointercapture(&self) -> Option<Function>
The onlostpointercapture
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
pub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)
The onlostpointercapture
setter
This API requires the following crate features to be activated: Document
sourcepub fn onanimationcancel(&self) -> Option<Function>
pub fn onanimationcancel(&self) -> Option<Function>
The onanimationcancel
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
pub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)
The onanimationcancel
setter
This API requires the following crate features to be activated: Document
sourcepub fn onanimationend(&self) -> Option<Function>
pub fn onanimationend(&self) -> Option<Function>
The onanimationend
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onanimationend(&self, onanimationend: Option<&Function>)
pub fn set_onanimationend(&self, onanimationend: Option<&Function>)
The onanimationend
setter
This API requires the following crate features to be activated: Document
sourcepub fn onanimationiteration(&self) -> Option<Function>
pub fn onanimationiteration(&self) -> Option<Function>
The onanimationiteration
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
pub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)
The onanimationiteration
setter
This API requires the following crate features to be activated: Document
sourcepub fn onanimationstart(&self) -> Option<Function>
pub fn onanimationstart(&self) -> Option<Function>
The onanimationstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
pub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)
The onanimationstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontransitioncancel(&self) -> Option<Function>
pub fn ontransitioncancel(&self) -> Option<Function>
The ontransitioncancel
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
pub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)
The ontransitioncancel
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontransitionend(&self) -> Option<Function>
pub fn ontransitionend(&self) -> Option<Function>
The ontransitionend
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
pub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)
The ontransitionend
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontransitionrun(&self) -> Option<Function>
pub fn ontransitionrun(&self) -> Option<Function>
The ontransitionrun
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
pub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)
The ontransitionrun
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontransitionstart(&self) -> Option<Function>
pub fn ontransitionstart(&self) -> Option<Function>
The ontransitionstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
pub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)
The ontransitionstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn onwebkitanimationend(&self) -> Option<Function>
pub fn onwebkitanimationend(&self) -> Option<Function>
The onwebkitanimationend
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
pub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)
The onwebkitanimationend
setter
This API requires the following crate features to be activated: Document
sourcepub fn onwebkitanimationiteration(&self) -> Option<Function>
pub fn onwebkitanimationiteration(&self) -> Option<Function>
The onwebkitanimationiteration
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
pub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)
The onwebkitanimationiteration
setter
This API requires the following crate features to be activated: Document
sourcepub fn onwebkitanimationstart(&self) -> Option<Function>
pub fn onwebkitanimationstart(&self) -> Option<Function>
The onwebkitanimationstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
pub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)
The onwebkitanimationstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn onwebkittransitionend(&self) -> Option<Function>
pub fn onwebkittransitionend(&self) -> Option<Function>
The onwebkittransitionend
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
pub fn set_onwebkittransitionend(&self, onwebkittransitionend: Option<&Function>)
The onwebkittransitionend
setter
This API requires the following crate features to be activated: Document
sourcepub fn set_onerror(&self, onerror: Option<&Function>)
pub fn set_onerror(&self, onerror: Option<&Function>)
The onerror
setter
This API requires the following crate features to be activated: Document
sourcepub fn append_with_node_0(&self) -> Result<(), JsValue>
pub fn append_with_node_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: Document
sourcepub fn append_with_str_0(&self) -> Result<(), JsValue>
pub fn append_with_str_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: Document
sourcepub fn prepend_with_node_0(&self) -> Result<(), JsValue>
pub fn prepend_with_node_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: Document
sourcepub fn prepend_with_str_0(&self) -> Result<(), JsValue>
pub fn prepend_with_str_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: Document
sourcepub fn children(&self) -> HtmlCollection
pub fn children(&self) -> HtmlCollection
The children
getter
This API requires the following crate features to be activated: Document
, HtmlCollection
sourcepub fn first_element_child(&self) -> Option<Element>
pub fn first_element_child(&self) -> Option<Element>
The firstElementChild
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn last_element_child(&self) -> Option<Element>
pub fn last_element_child(&self) -> Option<Element>
The lastElementChild
getter
This API requires the following crate features to be activated: Document
, Element
sourcepub fn child_element_count(&self) -> u32
pub fn child_element_count(&self) -> u32
The childElementCount
getter
This API requires the following crate features to be activated: Document
sourcepub fn ontouchstart(&self) -> Option<Function>
pub fn ontouchstart(&self) -> Option<Function>
The ontouchstart
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
pub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)
The ontouchstart
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontouchend(&self) -> Option<Function>
pub fn ontouchend(&self) -> Option<Function>
The ontouchend
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontouchend(&self, ontouchend: Option<&Function>)
pub fn set_ontouchend(&self, ontouchend: Option<&Function>)
The ontouchend
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontouchmove(&self) -> Option<Function>
pub fn ontouchmove(&self) -> Option<Function>
The ontouchmove
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
pub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)
The ontouchmove
setter
This API requires the following crate features to be activated: Document
sourcepub fn ontouchcancel(&self) -> Option<Function>
pub fn ontouchcancel(&self) -> Option<Function>
The ontouchcancel
getter
This API requires the following crate features to be activated: Document
sourcepub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
pub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)
The ontouchcancel
setter
This API requires the following crate features to be activated: Document
sourcepub fn create_expression(
&self,
expression: &str
) -> Result<XPathExpression, JsValue>
pub fn create_expression(
&self,
expression: &str
) -> Result<XPathExpression, JsValue>
The createExpression()
method
This API requires the following crate features to be activated: Document
, XPathExpression
sourcepub fn create_expression_with_opt_callback(
&self,
expression: &str,
resolver: Option<&Function>
) -> Result<XPathExpression, JsValue>
pub fn create_expression_with_opt_callback(
&self,
expression: &str,
resolver: Option<&Function>
) -> Result<XPathExpression, JsValue>
The createExpression()
method
This API requires the following crate features to be activated: Document
, XPathExpression
sourcepub fn create_expression_with_opt_x_path_ns_resolver(
&self,
expression: &str,
resolver: Option<&XPathNsResolver>
) -> Result<XPathExpression, JsValue>
pub fn create_expression_with_opt_x_path_ns_resolver(
&self,
expression: &str,
resolver: Option<&XPathNsResolver>
) -> Result<XPathExpression, JsValue>
The createExpression()
method
This API requires the following crate features to be activated: Document
, XPathExpression
, XPathNsResolver
sourcepub fn create_ns_resolver(&self, node_resolver: &Node) -> Node
pub fn create_ns_resolver(&self, node_resolver: &Node) -> Node
The createNSResolver()
method
This API requires the following crate features to be activated: Document
, Node
sourcepub fn evaluate_with_opt_callback(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_callback(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathResult
sourcepub fn evaluate_with_opt_x_path_ns_resolver(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_x_path_ns_resolver(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathNsResolver
, XPathResult
sourcepub fn evaluate_with_opt_callback_and_type(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>,
type_: u16
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_callback_and_type(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>,
type_: u16
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathResult
sourcepub fn evaluate_with_opt_x_path_ns_resolver_and_type(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>,
type_: u16
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_x_path_ns_resolver_and_type(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>,
type_: u16
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathNsResolver
, XPathResult
sourcepub fn evaluate_with_opt_callback_and_type_and_result(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>,
type_: u16,
result: Option<&Object>
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_callback_and_type_and_result(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&Function>,
type_: u16,
result: Option<&Object>
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathResult
sourcepub fn evaluate_with_opt_x_path_ns_resolver_and_type_and_result(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>,
type_: u16,
result: Option<&Object>
) -> Result<XPathResult, JsValue>
pub fn evaluate_with_opt_x_path_ns_resolver_and_type_and_result(
&self,
expression: &str,
context_node: &Node,
resolver: Option<&XPathNsResolver>,
type_: u16,
result: Option<&Object>
) -> Result<XPathResult, JsValue>
The evaluate()
method
This API requires the following crate features to be activated: Document
, Node
, XPathNsResolver
, XPathResult
Methods from Deref<Target = Node>§
sourcepub fn clone_node(&self) -> Result<Node, JsValue>
pub fn clone_node(&self) -> Result<Node, JsValue>
The cloneNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn compare_document_position(&self, other: &Node) -> u16
pub fn compare_document_position(&self, other: &Node) -> u16
The compareDocumentPosition()
method
This API requires the following crate features to be activated: Node
sourcepub fn get_root_node(&self) -> Node
pub fn get_root_node(&self) -> Node
The getRootNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
pub fn get_root_node_with_options(&self, options: &GetRootNodeOptions) -> Node
The getRootNode()
method
This API requires the following crate features to be activated: GetRootNodeOptions
, Node
sourcepub fn has_child_nodes(&self) -> bool
pub fn has_child_nodes(&self) -> bool
The hasChildNodes()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
pub fn is_default_namespace(&self, namespace: Option<&str>) -> bool
The isDefaultNamespace()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_equal_node(&self, node: Option<&Node>) -> bool
pub fn is_equal_node(&self, node: Option<&Node>) -> bool
The isEqualNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_same_node(&self, node: Option<&Node>) -> bool
pub fn is_same_node(&self, node: Option<&Node>) -> bool
The isSameNode()
method
This API requires the following crate features to be activated: Node
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
The isConnected
getter
This API requires the following crate features to be activated: Node
sourcepub fn owner_document(&self) -> Option<Document>
pub fn owner_document(&self) -> Option<Document>
The ownerDocument
getter
This API requires the following crate features to be activated: Document
, Node
sourcepub fn parent_node(&self) -> Option<Node>
pub fn parent_node(&self) -> Option<Node>
The parentNode
getter
This API requires the following crate features to be activated: Node
sourcepub fn parent_element(&self) -> Option<Element>
pub fn parent_element(&self) -> Option<Element>
The parentElement
getter
This API requires the following crate features to be activated: Element
, Node
sourcepub fn child_nodes(&self) -> NodeList
pub fn child_nodes(&self) -> NodeList
The childNodes
getter
This API requires the following crate features to be activated: Node
, NodeList
sourcepub fn first_child(&self) -> Option<Node>
pub fn first_child(&self) -> Option<Node>
The firstChild
getter
This API requires the following crate features to be activated: Node
sourcepub fn last_child(&self) -> Option<Node>
pub fn last_child(&self) -> Option<Node>
The lastChild
getter
This API requires the following crate features to be activated: Node
sourcepub fn previous_sibling(&self) -> Option<Node>
pub fn previous_sibling(&self) -> Option<Node>
The previousSibling
getter
This API requires the following crate features to be activated: Node
sourcepub fn next_sibling(&self) -> Option<Node>
pub fn next_sibling(&self) -> Option<Node>
The nextSibling
getter
This API requires the following crate features to be activated: Node
sourcepub fn node_value(&self) -> Option<String>
pub fn node_value(&self) -> Option<String>
The nodeValue
getter
This API requires the following crate features to be activated: Node
sourcepub fn set_node_value(&self, node_value: Option<&str>)
pub fn set_node_value(&self, node_value: Option<&str>)
The nodeValue
setter
This API requires the following crate features to be activated: Node
sourcepub fn text_content(&self) -> Option<String>
pub fn text_content(&self) -> Option<String>
The textContent
getter
This API requires the following crate features to be activated: Node
sourcepub fn set_text_content(&self, text_content: Option<&str>)
pub fn set_text_content(&self, text_content: Option<&str>)
The textContent
setter
This API requires the following crate features to be activated: Node
pub const ELEMENT_NODE: u16 = 1u16
pub const ATTRIBUTE_NODE: u16 = 2u16
pub const CDATA_SECTION_NODE: u16 = 4u16
pub const ENTITY_REFERENCE_NODE: u16 = 5u16
pub const ENTITY_NODE: u16 = 6u16
pub const PROCESSING_INSTRUCTION_NODE: u16 = 7u16
pub const COMMENT_NODE: u16 = 8u16
pub const DOCUMENT_NODE: u16 = 9u16
pub const DOCUMENT_TYPE_NODE: u16 = 10u16
pub const DOCUMENT_FRAGMENT_NODE: u16 = 11u16
pub const NOTATION_NODE: u16 = 12u16
pub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u16
pub const DOCUMENT_POSITION_PRECEDING: u16 = 2u16
pub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u16
pub const DOCUMENT_POSITION_CONTAINS: u16 = 8u16
pub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u16
pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u16
Methods from Deref<Target = EventTarget>§
sourcepub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
sourcepub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
sourcepub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListenerOptions
, EventTarget
sourcepub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventListenerOptions
, EventTarget
sourcepub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The removeEventListener()
method
This API requires the following crate features to be activated: EventListener
, EventTarget
Methods from Deref<Target = Object>§
sourcepub fn has_own_property(&self, property: &JsValue) -> bool
pub fn has_own_property(&self, property: &JsValue) -> bool
The hasOwnProperty()
method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf()
method checks if an object exists in another
object’s prototype chain.
sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable()
method returns a Boolean indicating
whether the specified property is enumerable.
sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString()
method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue = JsValue{ idx: JSIDX_NULL, _marker: marker::PhantomData,}
pub const UNDEFINED: JsValue = JsValue{ idx: JSIDX_UNDEFINED, _marker: marker::PhantomData,}
pub const TRUE: JsValue = JsValue{ idx: JSIDX_TRUE, _marker: marker::PhantomData,}
pub const FALSE: JsValue = JsValue{ idx: JSIDX_FALSE, _marker: marker::PhantomData,}
sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64
value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None
.
sourcepub fn as_string(&self) -> Option<String>
pub fn as_string(&self) -> Option<String>
If this JS value is a string value, this function copies the JS string
value into wasm linear memory, encoded as UTF-8, and returns it as a
Rust String
.
To avoid the copying and re-encoding, consider the
JsString::try_from()
function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None
.
sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the bool
value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None
.
sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
Trait Implementations§
source§impl AsRef<Document> for HtmlDocument
impl AsRef<Document> for HtmlDocument
source§impl AsRef<EventTarget> for HtmlDocument
impl AsRef<EventTarget> for HtmlDocument
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for HtmlDocument
impl AsRef<JsValue> for HtmlDocument
source§impl AsRef<Node> for HtmlDocument
impl AsRef<Node> for HtmlDocument
source§impl AsRef<Object> for HtmlDocument
impl AsRef<Object> for HtmlDocument
source§impl Clone for HtmlDocument
impl Clone for HtmlDocument
source§fn clone(&self) -> HtmlDocument
fn clone(&self) -> HtmlDocument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlDocument
impl Debug for HtmlDocument
source§impl Deref for HtmlDocument
impl Deref for HtmlDocument
source§impl From<HtmlDocument> for Document
impl From<HtmlDocument> for Document
source§fn from(obj: HtmlDocument) -> Document
fn from(obj: HtmlDocument) -> Document
source§impl From<HtmlDocument> for EventTarget
impl From<HtmlDocument> for EventTarget
source§fn from(obj: HtmlDocument) -> EventTarget
fn from(obj: HtmlDocument) -> EventTarget
source§impl From<HtmlDocument> for JsValue
impl From<HtmlDocument> for JsValue
source§fn from(obj: HtmlDocument) -> JsValue
fn from(obj: HtmlDocument) -> JsValue
source§impl From<HtmlDocument> for Node
impl From<HtmlDocument> for Node
source§fn from(obj: HtmlDocument) -> Node
fn from(obj: HtmlDocument) -> Node
source§impl From<HtmlDocument> for Object
impl From<HtmlDocument> for Object
source§fn from(obj: HtmlDocument) -> Object
fn from(obj: HtmlDocument) -> Object
source§impl From<JsValue> for HtmlDocument
impl From<JsValue> for HtmlDocument
source§fn from(obj: JsValue) -> HtmlDocument
fn from(obj: JsValue) -> HtmlDocument
source§impl FromWasmAbi for HtmlDocument
impl FromWasmAbi for HtmlDocument
source§impl<'a> IntoWasmAbi for &'a HtmlDocument
impl<'a> IntoWasmAbi for &'a HtmlDocument
source§impl IntoWasmAbi for HtmlDocument
impl IntoWasmAbi for HtmlDocument
source§impl JsCast for HtmlDocument
impl JsCast for HtmlDocument
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for HtmlDocument
impl OptionFromWasmAbi for HtmlDocument
source§impl<'a> OptionIntoWasmAbi for &'a HtmlDocument
impl<'a> OptionIntoWasmAbi for &'a HtmlDocument
source§impl OptionIntoWasmAbi for HtmlDocument
impl OptionIntoWasmAbi for HtmlDocument
source§impl RefFromWasmAbi for HtmlDocument
impl RefFromWasmAbi for HtmlDocument
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlDocument>
type Anchor = ManuallyDrop<HtmlDocument>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HtmlDocument
impl !Send for HtmlDocument
impl !Sync for HtmlDocument
impl Unpin for HtmlDocument
impl UnwindSafe for HtmlDocument
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more