Closed richja closed 6 years ago
Hi there, Thank you for the Pull Request. Looks good, just a couple small things:
The CSS selectors each match two buttons. For both likes and dislikes, there is a "clicked" and an "unclicked" button (one of which is hidden). If you change the CSS class for the buttons to like-button-renderer-dislike-button-unclicked
and like-button-renderer-like-button-unclicked
respectively it should be fine.
Use the .text()
method instead of .html()
so the result is in plain text and we don't get bit by potential HTML entities.
Cheers
Good points, Philip, edited. Cheers.
Great, thank you!
To resolve #2 my first PR, hope that's ok