Apparently you should at least avoid wearing shorts on planes. There's multiple reasons, including not sticking your skin where others people's skin have been stuck, but the most important to me is because of the slides in case of emergency.
If you wear shorts and for some reason the slides have to be used to exit the plane, you risk being burned.