SelectorParseException
when calling Element#cssSelector()
#1966
Labels
SelectorParseException
when calling Element#cssSelector()
#1966
Hi,
My team have encountered this crash trying to blindly call
Element#cssSelector()
on elements.The signature is:
To reproduce this, run the following test case:
The class
gb-u-mb+
is causing the crash, and removing it from the HTML avoids the crash. I suppose the + character is invalid for a CSS class? In which case, this might not really be a bug and we'll just have to handle the runtime exception in our application.The HTML comes from the web page in the attached archive:
Transfer news live & West Ham in Europa Conference League final - Live - BBC Sport.html.zip
(Reproduced in JSoup 1.15.4)
The text was updated successfully, but these errors were encountered: