Details: Open ancestor details elements when setfocus event is triggered inside

Fixes #6393