[−][src]Struct stdweb::web::HtmlElement
A reference to a JavaScript object which implements the IHtmlElement interface.
Trait Implementations
impl JsSerialize for HtmlElement
[src]
impl JsSerialize for HtmlElement
impl TryFrom<EventTarget> for HtmlElement
[src]
impl TryFrom<EventTarget> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: EventTarget) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Node> for HtmlElement
[src]
impl TryFrom<Node> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Node) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Element> for HtmlElement
[src]
impl TryFrom<Element> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Element) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for Reference
[src]
impl TryFrom<HtmlElement> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Reference> for HtmlElement
[src]
impl TryFrom<Reference> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Reference> for HtmlElement
[src]
impl<'_r> TryFrom<&'_r Reference> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Value> for HtmlElement
[src]
impl TryFrom<Value> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Value> for HtmlElement
[src]
impl<'_r> TryFrom<&'_r Value> for HtmlElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for CanvasElement
[src]
impl TryFrom<HtmlElement> for CanvasElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for ImageElement
[src]
impl TryFrom<HtmlElement> for ImageElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for InputElement
[src]
impl TryFrom<HtmlElement> for InputElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for TextAreaElement
[src]
impl TryFrom<HtmlElement> for TextAreaElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for SelectElement
[src]
impl TryFrom<HtmlElement> for SelectElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for OptionElement
[src]
impl TryFrom<HtmlElement> for OptionElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for TemplateElement
[src]
impl TryFrom<HtmlElement> for TemplateElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl TryFrom<HtmlElement> for SlotElement
[src]
impl TryFrom<HtmlElement> for SlotElement
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: HtmlElement) -> Result<Self, Self::Error> | [src] |
impl InstanceOf for HtmlElement
[src]
impl InstanceOf for HtmlElement
fn instance_of(reference: &Reference) -> bool | [src] |
impl ReferenceType for HtmlElement
[src]
impl ReferenceType for HtmlElement
unsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl IEventTarget for HtmlElement
[src]
impl IEventTarget for HtmlElement
fn add_event_listener<T, F>(&self, listener: F) -> EventListenerHandle where | [src] |
Adds given event handler to the list of event listeners for the specified EventTarget
on which it's called. Read more
fn dispatch_event<T: IEvent>(&self, event: &T) -> Result<bool, TODO> | [src] |
Dispatches an Event
at this EventTarget
, invoking the affected event listeners in the appropriate order. Read more
impl INode for HtmlElement
[src]
impl INode for HtmlElement
fn as_node(&self) -> &Node | [src] |
Casts a reference to this object into a reference to a Node.
fn append_child<T: INode>(&self, child: &T) | [src] |
Adds a node to the end of the list of children of a specified parent node. Read more
fn remove_child<T: INode>(&self, child: &T) -> Result<Node, NotFoundError> | [src] |
Removes a child node from the DOM. Read more
fn clone_node(&self, kind: CloneKind) -> Result<Self, TODO> | [src] |
Returns a duplicate of the node on which this method was called. Read more
fn contains<T: INode>(&self, node: &T) -> bool | [src] |
Checks whenever a given node is a descendant of this one or not. Read more
fn insert_before<T: INode, U: INode>( | [src] |
Inserts the specified node before the reference node as a child of the current node. Read more
fn replace_child<T: INode, U: INode>( | [src] |
Replaces one hild node of the specified node with another. Read more
fn parent_node(&self) -> Option<Node> | [src] |
Returns the parent of this node in the DOM tree. Read more
fn first_child(&self) -> Option<Node> | [src] |
Returns the node's first child in the tree, or None
if the node is childless. Read more
fn last_child(&self) -> Option<Node> | [src] |
Returns the node's last child in the tree, or None
if the node is childless. Read more
fn next_sibling(&self) -> Option<Node> | [src] |
Returns the node's next sibling in the tree, or None
if there isn't such a node. Read more
fn node_name(&self) -> String | [src] |
Returns the name of the node. Read more
fn node_type(&self) -> NodeType | [src] |
Returns the type of the node. Read more
fn node_value(&self) -> Option<String> | [src] |
Returns the value of the node. Read more
fn set_node_value(&self, value: Option<&str>) | [src] |
Sets the value of the node. Read more
fn owner_document(&self) -> Option<Document> | [src] |
Returns the Document
that this node belongs to. Read more
fn parent_element(&self) -> Option<Element> | [src] |
Returns an Element
that is the parent of this node. Returns null
if the node has no parent or the parent is not an Element
. Read more
fn previous_sibling(&self) -> Option<Node> | [src] |
Returns the node's previous sibling in the tree, or None
if there isn't such a node. Read more
fn text_content(&self) -> Option<String> | [src] |
A property which represents the text content of a node and its descendants. Read more
fn set_text_content(&self, text: &str) | [src] |
Sets the text content of this node; calling thil removes all of node's children and replaces them with a single text node with the given value. Read more
fn child_nodes(&self) -> NodeList | [src] |
Returns a live collection of child nodes of this node. Read more
fn base_uri(&self) -> String | [src] |
Gets the base URL. Read more
fn has_child_nodes(&self) -> bool | [src] |
Returns whether this node has children nodes. Read more
fn is_default_namespace(&self, namespace: &str) -> bool | [src] |
Determines whether the given namespace is the default namespace of this node. Read more
fn is_equal_node<T: INode>(&self, node: &T) -> bool | [src] |
Tests whether this node is equal to another node. Two nodes are equal if they have the same type, defining characteristics, matching attributes, and so on. Read more
fn is_same_node<T: INode>(&self, node: &T) -> bool | [src] |
Test whether two Node
references are the same. Read more
fn lookup_prefix(&self, namespace: &str) -> Option<String> | [src] |
Returns the prefix for the given namespace URI, if present. Read more
fn lookup_namespace_uri(&self, prefix: &str) -> Option<String> | [src] |
Returns the namespace URI for the given prefix. Read more
fn normalize(&self) | [src] |
Merges any adjacent text nodes and removes empty text nodes under this node. Read more
impl IElement for HtmlElement
[src]
impl IElement for HtmlElement
fn namespace_uri(&self) -> Option<String> | [src] |
The Element.namespaceURI read-only property returns the namespace URI of the element, or null if the element is not in a namespace. Read more
fn class_list(&self) -> TokenList | [src] |
The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element. Read more
fn has_attribute(&self, name: &str) -> bool | [src] |
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not. Read more
fn get_attribute(&self, name: &str) -> Option<String> | [src] |
Element.getAttribute() returns the value of a specified attribute on the element. If the given attribute does not exist, the value returned will either be null or "" (the empty string); Read more
fn set_attribute( | [src] |
Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value. Read more
fn scroll_top(&self) -> f64 | [src] |
Gets the the number of pixels that an element's content is scrolled vertically. Read more
fn set_scroll_top(&self, value: f64) | [src] |
Sets the the number of pixels that an element's content is scrolled vertically. Read more
fn scroll_left(&self) -> f64 | [src] |
Gets the the number of pixels that an element's content is scrolled to the left. Read more
fn set_scroll_left(&self, value: f64) | [src] |
Sets the the number of pixels that an element's content is scrolled to the left. Read more
fn get_attribute_names(&self) -> Vec<String> | [src] |
Element.getAttributeNames() returns the attribute names of the element as an Array of strings. If the element has no attributes it returns an empty array. Read more
fn remove_attribute(&self, name: &str) | [src] |
Element.removeAttribute removes an attribute from the specified element. Read more
fn has_attributes(&self) -> bool | [src] |
The Element.hasAttributes() method returns Boolean value, indicating if the current element has any attributes or not. Read more
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError> | [src] |
Returns the closest ancestor of the element (or the element itself) which matches the selectors given in parameter. If there isn't such an ancestor, it returns None
. Read more
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId> | [src] |
Designates a specific element as the capture target of future pointer events. Read more
fn release_pointer_capture( | [src] |
Releases pointer capture that was previously set for a specific pointer Read more
fn has_pointer_capture(&self, pointer_id: i32) -> bool | [src] |
Returns a boolean indicating if the element has captured the specified pointer Read more
fn insert_adjacent_html( | [src] |
Insert nodes from HTML fragment into specified position. Read more
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError> | [src] |
Insert nodes from HTML fragment before element. Read more
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError> | [src] |
Insert nodes from HTML fragment as the first children of the element. Read more
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError> | [src] |
Insert nodes from HTML fragment as the last children of the element. Read more
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError> | [src] |
Insert nodes from HTML fragment after element. Read more
fn slot(&self) -> String | [src] |
The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in. Read more
fn attach_shadow( | [src] |
Attach a shadow DOM tree to the specified element and returns a reference to its ShadowRoot
. It returns a shadow root if successfully attached or None
if the element cannot be attached. Read more
fn shadow_root(&self) -> Option<ShadowRoot> | [src] |
Returns the shadow root of the current element or None
. Read more
impl IHtmlElement for HtmlElement
[src]
impl IHtmlElement for HtmlElement
fn focus(&self) | [src] |
Sets focus on the specified element, if it can be focused. Read more
fn blur(&self) | [src] |
Removes keyboard focus from the current element. Read more
fn dataset(&self) -> StringMap | [src] |
Allows access, both in reading and writing, to all of the custom data attributes (data-*) set on the element, either in HTML or in the DOM. Read more
fn get_bounding_client_rect(&self) -> Rect | [src] |
Returns the size of an element and its position relative to the viewport. (JavaScript docs) Read more
fn offset_width(&self) -> i32 | [src] |
Returns the layout width of an element. Typically, an element's offsetWidth is a measurement which includes the element borders, the element horizontal padding, the element vertical scrollbar (if present, if rendered) and the element CSS width. Read more
fn offset_height(&self) -> i32 | [src] |
Returns the height of the element including vertical padding and borders, as an integer. Read more
fn inner_text(&self) -> String | [src] |
A property which represents the "rendered" text content of a node and its descendants. It approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard. Read more
impl AsRef<Reference> for HtmlElement
[src]
impl AsRef<Reference> for HtmlElement
impl Clone for HtmlElement
[src]
impl Clone for HtmlElement
fn clone(&self) -> HtmlElement | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl From<HtmlElement> for EventTarget
[src]
impl From<HtmlElement> for EventTarget
fn from(value: HtmlElement) -> Self | [src] |
impl From<HtmlElement> for Node
[src]
impl From<HtmlElement> for Node
fn from(value: HtmlElement) -> Self | [src] |
impl From<HtmlElement> for Element
[src]
impl From<HtmlElement> for Element
fn from(value: HtmlElement) -> Self | [src] |
impl From<HtmlElement> for Reference
[src]
impl From<HtmlElement> for Reference
fn from(value: HtmlElement) -> Self | [src] |
impl From<CanvasElement> for HtmlElement
[src]
impl From<CanvasElement> for HtmlElement
fn from(value: CanvasElement) -> Self | [src] |
impl From<ImageElement> for HtmlElement
[src]
impl From<ImageElement> for HtmlElement
fn from(value: ImageElement) -> Self | [src] |
impl From<InputElement> for HtmlElement
[src]
impl From<InputElement> for HtmlElement
fn from(value: InputElement) -> Self | [src] |
impl From<TextAreaElement> for HtmlElement
[src]
impl From<TextAreaElement> for HtmlElement
fn from(value: TextAreaElement) -> Self | [src] |
impl From<SelectElement> for HtmlElement
[src]
impl From<SelectElement> for HtmlElement
fn from(value: SelectElement) -> Self | [src] |
impl From<OptionElement> for HtmlElement
[src]
impl From<OptionElement> for HtmlElement
fn from(value: OptionElement) -> Self | [src] |
impl From<TemplateElement> for HtmlElement
[src]
impl From<TemplateElement> for HtmlElement
fn from(value: TemplateElement) -> Self | [src] |
impl From<SlotElement> for HtmlElement
[src]
impl From<SlotElement> for HtmlElement
fn from(value: SlotElement) -> Self | [src] |
impl Eq for HtmlElement
[src]
impl Eq for HtmlElement
impl PartialEq<HtmlElement> for HtmlElement
[src]
impl PartialEq<HtmlElement> for HtmlElement
fn eq(&self, other: &HtmlElement) -> bool | [src] |
fn ne(&self, other: &HtmlElement) -> bool | [src] |
impl Debug for HtmlElement
[src]
impl Debug for HtmlElement
Auto Trait Implementations
impl Send for HtmlElement
impl Send for HtmlElement
impl Sync for HtmlElement
impl Sync for HtmlElement
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |