Overview

Namespaces

  • None
  • WPGMZA
    • Integration
    • Selector

Classes

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

Exceptions

  • ConvertException
  • ParseException

Functions

  • trace
  • Overview
  • Namespace
  • Class

Class AttributeSelector

A CSS attribute selector, such as [data-example], [data-example="value"] or [data-example$="ends-with"]

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

Parses the attribute selector from the supplied stream. Please note these classes expect attribute selectors to be enclosed in quotes.

Parses the attribute selector from the supplied stream. Please note these classes expect attribute selectors to be enclosed in quotes.

Parameters

$stream
The token stream to read from

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 $name
#
public $operator
#
public $value
#
API documentation generated by ApiGen