Some stuff I have read over the years...
Sharks attacked shipwreck survivors that had lost their pants and (shoes?) compared to fully clothed survivors.
The shark bag may work.. you are basically in a black garbage bag. Helps to contain any blood or scent you may be giving off in the water and masks your flailing limbs.
I would pack a large black garbage bag and keep my pants on.