Overview

Namespaces

  • None
  • WPGMZA
    • Integration
    • Selector

Classes

  • AttributeSelector
  • Parser
  • PseudoSelector
  • Selector
  • Token
  • Tokenizer
  • TokenStream
  • XPathConverter

Exceptions

  • ConvertException
  • ParseException

Functions

  • trace
  • Overview
  • Namespace
  • Class

Class Selector

Represents a single selector, either standalone or as part of a compound selector

Namespace: WPGMZA\Selector
Located at class.selector-to-xpath.php
Methods summary
public
# parse( WPGMZA\Selector\TokenStream $stream, WPGMZA\Selector\PseudoSelector $not = null )

Parses this selector from the given stream.

Parses this selector from the given stream.

Parameters

$stream
The token stream to read from.
$not
The :not pseudo selector that contains this selector.

Throws

WPGMZA\Selector\ParseException
Unexpected end in attribute
WPGMZA\Selector\ParseException
Expected either close bracket or attribute operator
WPGMZA\Selector\ParseException
Unexpected end in attribute
WPGMZA\Selector\ParseException
Expected quote to open string after attribute operator
WPGMZA\Selector\ParseException
Unexpected end in attribute
WPGMZA\Selector\ParseException
Expected quote to terminate string after attribute operator
WPGMZA\Selector\ParseException
Invalid CSS eg unexpected tokens
Properties summary
public string $element
# '*'
public $id
#
public $classes
#
public $attributes
#
public $pseudos
#
public $parent
#
API documentation generated by ApiGen