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.
Provided Methods
fn class_list(&self) -> TokenList
The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element.
fn query_selector(&self, selector: &str) -> Option<Element>
Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.
fn query_selector_all(&self, selector: &str) -> NodeList
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.
Implementors
impl IElement for Element
impl IElement for HtmlElement
impl IElement for ImageElement
impl IElement for InputElement