| @@ 628-632 (lines=5) @@ | ||
| 625 | } |
|
| 626 | ||
| 627 | //PaperG - If lowercase is set, do a case insensitive test of the value of the selector. |
|
| 628 | if ($lowercase) { |
|
| 629 | $check = $this->match($exp, strtolower($val), strtolower($nodeKeyValue)); |
|
| 630 | } else { |
|
| 631 | $check = $this->match($exp, $val, $nodeKeyValue); |
|
| 632 | } |
|
| 633 | if (is_object($debug_object)) { |
|
| 634 | $debug_object->debugLog(2, "after match: " . ($check ? "true" : "false")); |
|
| 635 | } |
|
| @@ 642-646 (lines=5) @@ | ||
| 639 | foreach (explode(' ', $node->attr[$key]) as $k) { |
|
| 640 | // Without this, there were cases where leading, trailing, or double spaces lead to our comparing blanks - bad form. |
|
| 641 | if (!empty($k)) { |
|
| 642 | if ($lowercase) { |
|
| 643 | $check = $this->match($exp, strtolower($val), strtolower($k)); |
|
| 644 | } else { |
|
| 645 | $check = $this->match($exp, $val, $k); |
|
| 646 | } |
|
| 647 | if ($check) { |
|
| 648 | break; |
|
| 649 | } |
|