You are here

private function CssParser::allElements in QueryPath 7.2

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

File

QueryPath/CssParser.php, line 364

Class

CssParser

Code

private function allElements() {
  if ($this->scanner->token === CssToken::star) {
    $this->scanner
      ->nextToken();
    if ($this->scanner->token === CssToken::pipe) {
      $this->scanner
        ->nextToken();
      if ($this->scanner->token === CssToken::star) {
        $this->scanner
          ->nextToken();
        $this->handler
          ->anyElementInNS('*');
      }
      else {
        $name = $this->scanner
          ->getNameString();
        $this->handler
          ->elementNS($name, '*');
      }
    }
    else {
      $this->handler
        ->anyElement();
    }
  }
}