Element querySelector(
String selectors
)

Finds the first descendant element of this document fragment that matches the specified group of selectors.

selectors should be a string using CSS selector syntax.

var element1 = fragment.querySelector('.className');
var element2 = fragment.querySelector('#id');

For details about CSS selector syntax, see the CSS selector specification.

Source

/**
 * Finds the first descendant element of this document fragment that matches
 * the specified group of selectors.
 *
 * [selectors] should be a string using CSS selector syntax.
 *
 *     var element1 = fragment.querySelector('.className');
 *     var element2 = fragment.querySelector('#id');
 *
 * For details about CSS selector syntax, see the
 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
 */
@DomName('DocumentFragment.querySelector')
@DocsEditable()
Element querySelector(String selectors) => wrap_jso(_blink.BlinkDocumentFragment.instance.querySelector_Callback_1_(unwrap_jso(this), selectors));