/// Returns the first [Element](struct.Element.html) within the document that matches the specified selector, or group of selectors.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)
Returns the first [Element](struct.Element.html) within the document that matches the specified selector, or group of selectors.
Returns the first [ Element ] ( struct . Element . html ) within the document that matches the specified selector or group of selectors .
pub fn query_selector( &self, selector: &str ) -> Option< Element > {
        // TODO: This can throw an exception in case of an invalid selector;
        //       convert the return type to a Result.
        unsafe {
            js!( return @{self}.querySelector( @{selector} ); ).into_reference_unchecked()
        }
    }
pub fn query_selector ( & self , selector : & str ) -> Option < Element > { // TODO: This can throw an exception in case of an invalid selector; //       convert the return type to a Result. unsafe { js ! ( return { self } querySelector ( { selector } ) ) . into_reference_unchecked ( ) } }
Returns the first [Element](struct.Element.html) within the document that matches the specified selector, or group of selectors.
Returns the first [ Element ] ( struct . Element . html ) within the document that matches the specified selector or group of selectors .
&self
selector
&str