"B. By the light of the moon, I tripped over a rock" would be the only sentence with a dangling modifier, since in this case it is unclear what exactly is being modified, since the moon light and the tripping incident could be two, separate events in time.