You are here

private function CssParser::elementClass in QueryPath 7.3

Same name and namespace in other branches
  1. 6 QueryPath/CssParser.php \CssParser::elementClass()
  2. 7.2 QueryPath/CssParser.php \CssParser::elementClass()
1 call to CssParser::elementClass()
CssParser::simpleSelectors in QueryPath/CssParser.php

File

QueryPath/CssParser.php, line 257

Class

CssParser

Code

private function elementClass() {
  if ($this->DEBUG) {
    print "ELEMENT CLASS\n";
  }
  if ($this->scanner->token == CssToken::dot) {
    $this->scanner
      ->nextToken();
    $this
      ->consumeWhitespace();
    $cssClass = $this->scanner
      ->getNameString();
    $this->handler
      ->elementClass($cssClass);
  }
}