Trait INonElementParentNode

Source
pub trait INonElementParentNode: ReferenceType {
    // Provided method
    fn get_element_by_id(&self, id: &str) -> Option<Element> { ... }
}
Expand description

The INonElementParentNode mixin contains methods and properties that are common to Document and DocumentFragment.

You most likely don’t want to use this directly; instead you should use stdweb::traits::*;.

Provided Methods§

Source

fn get_element_by_id(&self, id: &str) -> Option<Element>

Returns a reference to the element by its ID; the ID is a string which can be used to uniquely identify the element, found in the HTML id attribute.

(JavaScript docs)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§