fixes #4, resolve selected TR by iterating over parentNode