Struct web_sys::Document [−][src]
#[repr(transparent)]pub struct Document { /* fields omitted */ }
Expand description
The Document class.
This API requires the following crate features to be activated: Document
Implementations
Getter for the implementation field of this object.
This API requires the following crate features to be activated: Document, DomImplementation
Getter for the documentURI field of this object.
This API requires the following crate features to be activated: Document
Getter for the compatMode field of this object.
This API requires the following crate features to be activated: Document
Getter for the characterSet field of this object.
This API requires the following crate features to be activated: Document
Getter for the charset field of this object.
This API requires the following crate features to be activated: Document
Getter for the inputEncoding field of this object.
This API requires the following crate features to be activated: Document
Getter for the contentType field of this object.
This API requires the following crate features to be activated: Document
Getter for the doctype field of this object.
This API requires the following crate features to be activated: Document, DocumentType
Getter for the documentElement field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the location field of this object.
This API requires the following crate features to be activated: Document, Location
Getter for the referrer field of this object.
This API requires the following crate features to be activated: Document
Getter for the lastModified field of this object.
This API requires the following crate features to be activated: Document
Getter for the readyState field of this object.
This API requires the following crate features to be activated: Document
Getter for the title field of this object.
This API requires the following crate features to be activated: Document
Setter for the title field of this object.
This API requires the following crate features to be activated: Document
Getter for the dir field of this object.
This API requires the following crate features to be activated: Document
Setter for the dir field of this object.
This API requires the following crate features to be activated: Document
Getter for the body field of this object.
This API requires the following crate features to be activated: Document, HtmlElement
Setter for the body field of this object.
This API requires the following crate features to be activated: Document, HtmlElement
Getter for the head field of this object.
This API requires the following crate features to be activated: Document, HtmlHeadElement
Getter for the images field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the embeds field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the plugins field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the links field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the forms field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the scripts field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the defaultView field of this object.
This API requires the following crate features to be activated: Document, Window
Getter for the onreadystatechange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onreadystatechange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onbeforescriptexecute field of this object.
This API requires the following crate features to be activated: Document
Setter for the onbeforescriptexecute field of this object.
This API requires the following crate features to be activated: Document
Getter for the onafterscriptexecute field of this object.
This API requires the following crate features to be activated: Document
Setter for the onafterscriptexecute field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselectionchange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselectionchange field of this object.
This API requires the following crate features to be activated: Document
Getter for the currentScript field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the anchors field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the applets field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the fullscreen field of this object.
This API requires the following crate features to be activated: Document
Getter for the fullscreenEnabled field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfullscreenchange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfullscreenchange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfullscreenerror field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfullscreenerror field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerlockchange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerlockchange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerlockerror field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerlockerror field of this object.
This API requires the following crate features to be activated: Document
Getter for the hidden field of this object.
This API requires the following crate features to be activated: Document
Getter for the visibilityState field of this object.
This API requires the following crate features to be activated: Document, VisibilityState
Getter for the onvisibilitychange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onvisibilitychange field of this object.
This API requires the following crate features to be activated: Document
Getter for the selectedStyleSheetSet field of this object.
This API requires the following crate features to be activated: Document
Setter for the selectedStyleSheetSet field of this object.
This API requires the following crate features to be activated: Document
Getter for the lastStyleSheetSet field of this object.
This API requires the following crate features to be activated: Document
Getter for the preferredStyleSheetSet field of this object.
This API requires the following crate features to be activated: Document
Getter for the styleSheetSets field of this object.
This API requires the following crate features to be activated: Document, DomStringList
Getter for the scrollingElement field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the timeline field of this object.
This API requires the following crate features to be activated: Document, DocumentTimeline
Getter for the rootElement field of this object.
This API requires the following crate features to be activated: Document, SvgsvgElement
Getter for the oncopy field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncopy field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncut field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncut field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpaste field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpaste field of this object.
This API requires the following crate features to be activated: Document
Getter for the activeElement field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the styleSheets field of this object.
This API requires the following crate features to be activated: Document, StyleSheetList
Getter for the pointerLockElement field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the fullscreenElement field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the fonts field of this object.
This API requires the following crate features to be activated: Document, FontFaceSet
Getter for the onabort field of this object.
This API requires the following crate features to be activated: Document
Setter for the onabort field of this object.
This API requires the following crate features to be activated: Document
Getter for the onblur field of this object.
This API requires the following crate features to be activated: Document
Setter for the onblur field of this object.
This API requires the following crate features to be activated: Document
Getter for the onfocus field of this object.
This API requires the following crate features to be activated: Document
Setter for the onfocus field of this object.
This API requires the following crate features to be activated: Document
Getter for the onauxclick field of this object.
This API requires the following crate features to be activated: Document
Setter for the onauxclick field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncanplay field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncanplay field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncanplaythrough field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncanplaythrough field of this object.
This API requires the following crate features to be activated: Document
Getter for the onchange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onchange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onclick field of this object.
This API requires the following crate features to be activated: Document
Setter for the onclick field of this object.
This API requires the following crate features to be activated: Document
Getter for the onclose field of this object.
This API requires the following crate features to be activated: Document
Setter for the onclose field of this object.
This API requires the following crate features to be activated: Document
Getter for the oncontextmenu field of this object.
This API requires the following crate features to be activated: Document
Setter for the oncontextmenu field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondblclick field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondblclick field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondrag field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondrag field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragend field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragend field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragenter field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragenter field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragexit field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragexit field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragleave field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragleave field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragover field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragover field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondragstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondragstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondrop field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondrop field of this object.
This API requires the following crate features to be activated: Document
Getter for the ondurationchange field of this object.
This API requires the following crate features to be activated: Document
Setter for the ondurationchange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onemptied field of this object.
This API requires the following crate features to be activated: Document
Setter for the onemptied field of this object.
This API requires the following crate features to be activated: Document
Getter for the onended field of this object.
This API requires the following crate features to be activated: Document
Setter for the onended field of this object.
This API requires the following crate features to be activated: Document
Getter for the oninput field of this object.
This API requires the following crate features to be activated: Document
Setter for the oninput field of this object.
This API requires the following crate features to be activated: Document
Getter for the oninvalid field of this object.
This API requires the following crate features to be activated: Document
Setter for the oninvalid field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeydown field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeydown field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeypress field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeypress field of this object.
This API requires the following crate features to be activated: Document
Getter for the onkeyup field of this object.
This API requires the following crate features to be activated: Document
Setter for the onkeyup field of this object.
This API requires the following crate features to be activated: Document
Getter for the onload field of this object.
This API requires the following crate features to be activated: Document
Setter for the onload field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadeddata field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadeddata field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadedmetadata field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadedmetadata field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadend field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadend field of this object.
This API requires the following crate features to be activated: Document
Getter for the onloadstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the onloadstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmousedown field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmousedown field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseenter field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseenter field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseleave field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseleave field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmousemove field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmousemove field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseout field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseout field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseover field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseover field of this object.
This API requires the following crate features to be activated: Document
Getter for the onmouseup field of this object.
This API requires the following crate features to be activated: Document
Setter for the onmouseup field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwheel field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwheel field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpause field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpause field of this object.
This API requires the following crate features to be activated: Document
Getter for the onplay field of this object.
This API requires the following crate features to be activated: Document
Setter for the onplay field of this object.
This API requires the following crate features to be activated: Document
Getter for the onplaying field of this object.
This API requires the following crate features to be activated: Document
Setter for the onplaying field of this object.
This API requires the following crate features to be activated: Document
Getter for the onprogress field of this object.
This API requires the following crate features to be activated: Document
Setter for the onprogress field of this object.
This API requires the following crate features to be activated: Document
Getter for the onratechange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onratechange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onreset field of this object.
This API requires the following crate features to be activated: Document
Setter for the onreset field of this object.
This API requires the following crate features to be activated: Document
Getter for the onresize field of this object.
This API requires the following crate features to be activated: Document
Setter for the onresize field of this object.
This API requires the following crate features to be activated: Document
Getter for the onscroll field of this object.
This API requires the following crate features to be activated: Document
Setter for the onscroll field of this object.
This API requires the following crate features to be activated: Document
Getter for the onseeked field of this object.
This API requires the following crate features to be activated: Document
Setter for the onseeked field of this object.
This API requires the following crate features to be activated: Document
Getter for the onseeking field of this object.
This API requires the following crate features to be activated: Document
Setter for the onseeking field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselect field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselect field of this object.
This API requires the following crate features to be activated: Document
Getter for the onshow field of this object.
This API requires the following crate features to be activated: Document
Setter for the onshow field of this object.
This API requires the following crate features to be activated: Document
Getter for the onstalled field of this object.
This API requires the following crate features to be activated: Document
Setter for the onstalled field of this object.
This API requires the following crate features to be activated: Document
Getter for the onsubmit field of this object.
This API requires the following crate features to be activated: Document
Setter for the onsubmit field of this object.
This API requires the following crate features to be activated: Document
Getter for the onsuspend field of this object.
This API requires the following crate features to be activated: Document
Setter for the onsuspend field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontimeupdate field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontimeupdate field of this object.
This API requires the following crate features to be activated: Document
Getter for the onvolumechange field of this object.
This API requires the following crate features to be activated: Document
Setter for the onvolumechange field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwaiting field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwaiting field of this object.
This API requires the following crate features to be activated: Document
Getter for the onselectstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the onselectstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontoggle field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontoggle field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointercancel field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointercancel field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerdown field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerdown field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerup field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerup field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointermove field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointermove field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerout field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerout field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerover field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerover field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerenter field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerenter field of this object.
This API requires the following crate features to be activated: Document
Getter for the onpointerleave field of this object.
This API requires the following crate features to be activated: Document
Setter for the onpointerleave field of this object.
This API requires the following crate features to be activated: Document
Getter for the ongotpointercapture field of this object.
This API requires the following crate features to be activated: Document
Setter for the ongotpointercapture field of this object.
This API requires the following crate features to be activated: Document
Getter for the onlostpointercapture field of this object.
This API requires the following crate features to be activated: Document
Setter for the onlostpointercapture field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationcancel field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationcancel field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationend field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationend field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationiteration field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationiteration field of this object.
This API requires the following crate features to be activated: Document
Getter for the onanimationstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the onanimationstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitioncancel field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitioncancel field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionend field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionend field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionrun field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionrun field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontransitionstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontransitionstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationend field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationend field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationiteration field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationiteration field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkitanimationstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkitanimationstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the onwebkittransitionend field of this object.
This API requires the following crate features to be activated: Document
Setter for the onwebkittransitionend field of this object.
This API requires the following crate features to be activated: Document
Getter for the onerror field of this object.
This API requires the following crate features to be activated: Document
Setter for the onerror field of this object.
This API requires the following crate features to be activated: Document
Getter for the children field of this object.
This API requires the following crate features to be activated: Document, HtmlCollection
Getter for the firstElementChild field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the lastElementChild field of this object.
This API requires the following crate features to be activated: Document, Element
Getter for the childElementCount field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchstart field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchstart field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchend field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchend field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchmove field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchmove field of this object.
This API requires the following crate features to be activated: Document
Getter for the ontouchcancel field of this object.
This API requires the following crate features to be activated: Document
Setter for the ontouchcancel field of this object.
This API requires the following crate features to be activated: Document
The adoptNode() method.
This API requires the following crate features to be activated: Document
The caretPositionFromPoint() method.
This API requires the following crate features to be activated: CaretPosition, Document
The createAttribute() method.
This API requires the following crate features to be activated: Attr, Document
The createAttributeNS() method.
This API requires the following crate features to be activated: Attr, Document
The createCDATASection() method.
This API requires the following crate features to be activated: CdataSection, Document
The createComment() method.
This API requires the following crate features to be activated: Comment, Document
The createDocumentFragment() method.
This API requires the following crate features to be activated: Document, DocumentFragment
The createElement() method.
This API requires the following crate features to be activated: Document, Element
pub 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
The createElement() method.
This API requires the following crate features to be activated: Document, Element
The createElementNS() method.
This API requires the following crate features to be activated: Document, Element
pub 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
The createElementNS() method.
This API requires the following crate features to be activated: Document, Element
The createEvent() method.
This API requires the following crate features to be activated: Document, Event
The createNodeIterator() method.
This API requires the following crate features to be activated: Document, NodeIterator
pub 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, NodeIterator
pub 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, NodeFilter, NodeIterator
pub 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
The createRange() method.
This API requires the following crate features to be activated: Document, Range
The createTextNode() method.
This API requires the following crate features to be activated: Document, Text
The createTreeWalker() method.
This API requires the following crate features to be activated: Document, TreeWalker
pub 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, TreeWalker
pub 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, NodeFilter, TreeWalker
The enableStyleSheetsForSet() method.
This API requires the following crate features to be activated: Document
The exitFullscreen() method.
This API requires the following crate features to be activated: Document
The exitPointerLock() method.
This API requires the following crate features to be activated: Document
The getAnimations() method.
This API requires the following crate features to be activated: Document
The getElementById() method.
This API requires the following crate features to be activated: Document, Element
The getElementsByClassName() method.
This API requires the following crate features to be activated: Document, HtmlCollection
The getElementsByName() method.
This API requires the following crate features to be activated: Document, NodeList
The getElementsByTagName() method.
This API requires the following crate features to be activated: Document, HtmlCollection
pub 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
The getSelection() method.
This API requires the following crate features to be activated: Document, Selection
The importNode() method.
This API requires the following crate features to be activated: Document
The importNode() method.
This API requires the following crate features to be activated: Document
The querySelector() method.
This API requires the following crate features to be activated: Document, Element
The querySelectorAll() method.
This API requires the following crate features to be activated: Document, NodeList
The releaseCapture() method.
This API requires the following crate features to be activated: Document
The elementFromPoint() method.
This API requires the following crate features to be activated: Document, Element
The elementsFromPoint() method.
This API requires the following crate features to be activated: Document
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
The convertQuadFromNode() method.
This API requires the following crate features to be activated: Document, DomQuad, Text
The convertQuadFromNode() method.
This API requires the following crate features to be activated: Document, DomQuad, Element
The convertQuadFromNode() method.
This API requires the following crate features to be activated: Document, DomQuad
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
The getBoxQuads() method.
This API requires the following crate features to be activated: Document
The getBoxQuads() method.
This API requires the following crate features to be activated: BoxQuadOptions, Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The append() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The prepend() method.
This API requires the following crate features to be activated: Document
The createExpression() method.
This API requires the following crate features to be activated: Document, XPathExpression
pub 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
pub 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
The createNSResolver() method.
This API requires the following crate features to be activated: Document
The evaluate() method.
This API requires the following crate features to be activated: Document, XPathResult
pub 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, XPathResult
pub 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, XPathNsResolver, XPathResult
pub 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, XPathResult
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>
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, XPathNsResolver, XPathResult
The evaluate() method.
This API requires the following crate features to be activated: Document, XPathResult
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>
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, XPathNsResolver, XPathResult
Methods from Deref<Target = Node>
Getter for the nodeType field of this object.
This API requires the following crate features to be activated: Node
Getter for the nodeName field of this object.
This API requires the following crate features to be activated: Node
Getter for the isConnected field of this object.
This API requires the following crate features to be activated: Node
Getter for the ownerDocument field of this object.
This API requires the following crate features to be activated: Document, Node
Getter for the parentNode field of this object.
This API requires the following crate features to be activated: Node
Getter for the parentElement field of this object.
This API requires the following crate features to be activated: Element, Node
Getter for the childNodes field of this object.
This API requires the following crate features to be activated: Node, NodeList
Getter for the firstChild field of this object.
This API requires the following crate features to be activated: Node
Getter for the lastChild field of this object.
This API requires the following crate features to be activated: Node
Getter for the previousSibling field of this object.
This API requires the following crate features to be activated: Node
Getter for the nextSibling field of this object.
This API requires the following crate features to be activated: Node
Getter for the nodeValue field of this object.
This API requires the following crate features to be activated: Node
Setter for the nodeValue field of this object.
This API requires the following crate features to be activated: Node
Getter for the textContent field of this object.
This API requires the following crate features to be activated: Node
Setter for the textContent field of this object.
This API requires the following crate features to be activated: Node
The appendChild() method.
This API requires the following crate features to be activated: Node
The cloneNode() method.
This API requires the following crate features to be activated: Node
The cloneNode() method.
This API requires the following crate features to be activated: Node
The compareDocumentPosition() method.
This API requires the following crate features to be activated: Node
The getRootNode() method.
This API requires the following crate features to be activated: Node
The getRootNode() method.
This API requires the following crate features to be activated: GetRootNodeOptions, Node
The hasChildNodes() method.
This API requires the following crate features to be activated: Node
The insertBefore() method.
This API requires the following crate features to be activated: Node
The isDefaultNamespace() method.
This API requires the following crate features to be activated: Node
The isEqualNode() method.
This API requires the following crate features to be activated: Node
The isSameNode() method.
This API requires the following crate features to be activated: Node
The lookupNamespaceURI() method.
This API requires the following crate features to be activated: Node
The lookupPrefix() method.
This API requires the following crate features to be activated: Node
The normalize() method.
This API requires the following crate features to be activated: Node
The removeChild() method.
This API requires the following crate features to be activated: Node
The replaceChild() method.
This API requires the following crate features to be activated: Node
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue into an
instance of Self Read more
Performs a zero-cost unchecked conversion from a &JsValue into an
instance of &Self. Read more
Test whether this JS value has a type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T. Read more
Performs a dynamic check to see whether the JsValue provided
is a value of this type. Read more
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<Document>
type Anchor = ManuallyDrop<Document>
The type that holds the reference to 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 more
Recover a Self::Anchor from Self::Abi. Read more
Auto Trait Implementations
impl RefUnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more