loyada / dollarx

Other
15 stars 1 forks source link

immediately-after/before does not work correctly when manipulated with a logical operation #52

Closed loyada closed 3 years ago

loyada commented 4 years ago

This is relatively rare, but still a bug. Root cause: Reversing the relation expects exact match - instead of looking only at the prefix. Example: div.immediatelyAfterSibling(span).or(input.after(label));

Expected: "[(self::div[preceding-sibling::[1]/self::span]) | (self::input[preceding::label])]" but: was "*[(self::div[null::span]) | (self::input[preceding::label])]"

loyada commented 3 years ago

solved