It would be nice to have an anchor that is contained in a tab activate that tab. My specific use case is having a tab in position 2 for comments. After a user submits the comment form the fragment '#comment-$cid' is added to the URL. Ideally the tab that contains this fragment should be activated.
I have attached a patch that is working for me to accomplish this but I'm not 100% convinced it's a be all end all solution. Either way, wanted to get a discussion going on this.