| @@ 432-436 (lines=5) @@ | ||
| 429 | $tmp = ''; |
|
| 430 | // TAG |
|
| 431 | if ($this->isChar($c) || in_array($c, $tagChars)) { |
|
| 432 | while (isset($query[$i]) |
|
| 433 | && ($this->isChar($query[$i]) || in_array($query[$i], $tagChars))) { |
|
| 434 | $tmp .= $query[$i]; |
|
| 435 | $i++; |
|
| 436 | } |
|
| 437 | $return[] = $tmp; |
|
| 438 | // IDs |
|
| 439 | } else if ($c == '#') { |
|
| @@ 441-445 (lines=5) @@ | ||
| 438 | // IDs |
|
| 439 | } else if ($c == '#') { |
|
| 440 | $i++; |
|
| 441 | while (isset($query[$i]) |
|
| 442 | && ($this->isChar($query[$i]) || $query[$i] == '-')) { |
|
| 443 | $tmp .= $query[$i]; |
|
| 444 | $i++; |
|
| 445 | } |
|
| 446 | $return[] = '#' . $tmp; |
|
| 447 | // SPECIAL CHARS |
|
| 448 | } else if (in_array($c, $specialChars)) { |
|
| @@ 469-473 (lines=5) @@ | ||
| 466 | } |
|
| 467 | // CLASSES |
|
| 468 | } else if ($c == '.') { |
|
| 469 | while (isset($query[$i]) |
|
| 470 | && ($this->isChar($query[$i]) || in_array($query[$i], $classChars))) { |
|
| 471 | $tmp .= $query[$i]; |
|
| 472 | $i++; |
|
| 473 | } |
|
| 474 | $return[] = $tmp; |
|
| 475 | // ~ General Sibling Selector |
|
| 476 | } else if ($c == '~') { |
|
| @@ 529-533 (lines=5) @@ | ||
| 526 | if ($c == ':') { |
|
| 527 | $stack = 1; |
|
| 528 | $tmp .= $query[$i++]; |
|
| 529 | while (isset($query[$i]) |
|
| 530 | && ($this->isChar($query[$i]) || in_array($query[$i], $pseudoChars))) { |
|
| 531 | $tmp .= $query[$i]; |
|
| 532 | $i++; |
|
| 533 | } |
|
| 534 | // with arguments ? |
|
| 535 | if (isset($query[$i]) && $query[$i] == '(') { |
|
| 536 | $tmp .= $query[$i]; |
|