Ejemplo n.º 1
0
 /**
  * Is the next thing a selectorList?
  *
  * A selectorList is one or more css selectors separated by commas.
  *
  * For example:
  * ```
  * div > div.class div#id, div > p, pre
  * ```
  *
  * In the above example, the following strings are terms:
  * ```
  * div > div.class div
  * div > p
  * pre
  * ```
  *
  * @return ArrayObject of DOMElement objects
  */
 protected function selectorList()
 {
     $nodes = array();
     do {
         if (!($selector = $this->is("selector"))) {
             // throw new TextParserException("Invalid expression", $this);
             break;
         }
         $nodes = Dom::mergeNodes($nodes, $selector->filter($this->_node));
     } while ($this->eq(","));
     return new ArrayObject(Dom::sortNodes($nodes));
 }