html icon indicating copy to clipboard operation
html copied to clipboard

Don't throw on not-matching elements in visitPseudoClassSelector

Open TheCarpetMerchant opened this issue 2 years ago • 0 comments

This is for #223. I personally do not wish to have an exception thrown because of a simple typo in an html selector, that seems wildly excessive. The selector wouldn't be able to be used anyway. While silently ignoring errors is not great, in this case it is the better option for me in practice. This PR is here moreso to raise awareness on the issue then anything else ; ideas on how to handle this by giving more leverage over the matching process to devs are welcome.

TheCarpetMerchant avatar Oct 03 '23 19:10 TheCarpetMerchant