comparison vendor/symfony/dom-crawler/Crawler.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
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");