TracBrowser, when re-expanding a folder after a collapse, restore the exact expanded/collapsed state of the entries of that folder as it was before the collapse.
This was indeed a bit trickier to do than the initial approach done in [5338]: we now store the folder ids as <tr> ids and use a user-defined node property to store the list of the ids of the rows corresponding to the folder's entries (`_entries`).