[][src]Trait stdweb::web::IParentNode

pub trait IParentNode: ReferenceType {
    fn query_selector(
        &self,
        selector: &str
    ) -> Result<Option<Element>, SyntaxError> { ... }
fn query_selector_all(
        &self,
        selector: &str
    ) -> Result<NodeList, SyntaxError> { ... } }

The ParentNode mixin contains methods and properties that are common to all types of Node objects that can have children.

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

(JavaScript docs)

Provided methods

fn query_selector(&self, selector: &str) -> Result<Option<Element>, SyntaxError>

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)

fn query_selector_all(&self, selector: &str) -> Result<NodeList, SyntaxError>

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)

Loading content...

Implementors

impl IParentNode for Document[src]

impl IParentNode for DocumentFragment[src]

impl IParentNode for ShadowRoot[src]

impl<T: IElement> IParentNode for T[src]

Loading content...