Trait stdweb::web::IElement [] [src]

pub trait IElement: IEventTarget {
    fn class_list(&self) -> TokenList { ... }
fn query_selector(&self, selector: &str) -> Option<Element> { ... }
fn query_selector_all(&self, selector: &str) -> NodeList { ... } }

The IElement interface represents an object of a Document. This interface describes methods and properties common to all kinds of elements.

(JavaScript docs)

Provided Methods

The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element.

(JavaScript docs)

Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.

(JavaScript docs)

Returns a non-live NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors.

(JavaScript docs)

Implementors