Jonathan Hedley
Jonathan Hedley
Thanks - this is the same as #917 and #1037. See notes on the latter in particular. We will need to implement the idea on that to be able to...
I will leave it open as the closest #1037 is closed, and this description is clear.
Right, the Cleaner right now is designed to take HTML body content and clean that. I had been thinking of adding extra support to clean a complete Document (vs a...
Fixed with c3963d4bb19414d56f42986db96d62208309e748 Fun fact: I added `:has()` to jsoup 13 years and 1 day ago! I implemented it just as a descendant evaluator: aec561f3328980182f299e61eaae45420245141b. With browsers catching up in...
General nested `:has()` selectors do work - we have tests here: https://github.com/jhy/jsoup/blob/c3963d4bb19414d56f42986db96d62208309e748/src/test/java/org/jsoup/select/SelectorTest.java#L577-L594 I thought this might be related to #2137, but it doesn't seem to be. But, your selector doesn't...
Looking at it some more. I don't think it's specifically the nested has. The query can be simplified to: `div:has(>div + div)` which fails (yet works in browsers). Both `div:has(div...
This is an effective dupe of #2187
Actually, my reduction of the issue found the same as #2187, but the initial report is something different.
`div:has(div:has(span) + div:has(span))` works OK (now) -- without the `>` direct child of. The direct child of is not taking the appropriate (?) root.
OK, fixed! Thanks for the report. It wasn't the root being incorrect, it was re-use of the inflight Element Iterator that was trashing the match.