Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/dom-crawler/Crawler.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
966 private function relativize($xpath) | 966 private function relativize($xpath) |
967 { | 967 { |
968 $expressions = []; | 968 $expressions = []; |
969 | 969 |
970 // An expression which will never match to replace expressions which cannot match in the crawler | 970 // An expression which will never match to replace expressions which cannot match in the crawler |
971 // We cannot simply drop | 971 // We cannot drop |
972 $nonMatchingExpression = 'a[name() = "b"]'; | 972 $nonMatchingExpression = 'a[name() = "b"]'; |
973 | 973 |
974 $xpathLen = \strlen($xpath); | 974 $xpathLen = \strlen($xpath); |
975 $openedBrackets = 0; | 975 $openedBrackets = 0; |
976 $startPosition = strspn($xpath, " \t\n\r\0\x0B"); | 976 $startPosition = strspn($xpath, " \t\n\r\0\x0B"); |