Open bkdotcom opened 9 years ago
'.classa > .classb'
should be: 'descendant-or-self::*[contains(concat(" ",@class," ")," classa ")]/*[contains(concat(" ",@class," ")," classb ")]' edit: corrected on 2015-08-26
'descendant-or-self::*[contains(concat(" ",@class," ")," classa ")]/*[contains(concat(" ",@class," ")," classb ")]'
changing $selector = str_replace(']/*', ']', $selector); to $selector = str_replace(']/*[position', '][position', $selector); fixes the issue and passes regression testing
$selector = str_replace(']/*', ']', $selector);
$selector = str_replace(']/*[position', '][position', $selector);
my bad, should be 'descendant-or-self::*[contains(concat(" ",@class," ")," classa ")]/*[contains(concat(" ",@class," ")," classb ")]'
'.classa > .classb'
should be:
'descendant-or-self::*[contains(concat(" ",@class," ")," classa ")]/*[contains(concat(" ",@class," ")," classb ")]'
edit: corrected on 2015-08-26changing
$selector = str_replace(']/*', ']', $selector);
to$selector = str_replace(']/*[position', '][position', $selector);
fixes the issue and passes regression testing