\QueryPath\CSSSimpleSelector

Models a simple selector.

CSS Selectors are composed of one or more simple selectors, where each simple selector may have any of the following components:

  • An element name (or wildcard *)
  • An ID (#foo)
  • One or more classes (.foo.bar)
  • One or more attribute matchers ([foo=bar])
  • One or more pseudo-classes (:foo)
  • One or more pseudo-elements (::first)

For performance reasons, this object has been kept as sparse as possible.

Summary

Methods
Properties
Constants
attributeOperator()
combinatorOperator()
__construct()
notEmpty()
__tostring()
$element
$ns
$id
$classes
$attributes
$pseudoClasses
$pseudoElements
$combinator
adjacent
directDescendant
anotherSelector
sibling
anyDescendant
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

adjacent

adjacent

directDescendant

directDescendant

anotherSelector

anotherSelector

sibling

sibling

anyDescendant

anyDescendant

Properties

$element

$element : 

Type

$ns

$ns : 

Type

$id

$id : 

Type

$classes

$classes : 

Type

$attributes

$attributes : 

Type

$pseudoClasses

$pseudoClasses : 

Type

$pseudoElements

$pseudoElements : 

Type

$combinator

$combinator : 

Type

Methods

attributeOperator()

attributeOperator(  $code) 

Parameters

$code

combinatorOperator()

combinatorOperator(  $code) 

Parameters

$code

__construct()

__construct() 

notEmpty()

notEmpty() 

__tostring()

__tostring()