NodeSelector

@native @JSType
trait NodeSelector extends Object
class Object
trait Any
class Object
trait Matchable
class Any
class Document
class Element

Value members

Concrete methods

def querySelector(selectors: String): Element

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.

def querySelectorAll(selectors: String): NodeList[Element]

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors.

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object