You can also do Solution 1 without JavaScript by using a CSS pseudo selector on the anchor tag:
tr {
position: relative;
}
a:before {
content: "";
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;
}
https://codepen.io/stevesunderland/pen/oNrVQrp