Tabs + Details: Open ancestor tabpanels and details elements when setfocus event is triggered inside

Fixes #6393