Which sentence is CORRECT and does not contain a dangling modifier?

Responses
A Slipping on the ice, the sidewalk had no traction.Slipping on the ice, the sidewalk had no traction.
B Mustering all his courage, he slowly opened the door.Mustering all his courage, he slowly opened the door.
C Driving down the street, the dog was hit by the truck.Driving down the street, the dog was hit by the truck.
D Studying all weekend, the television was never turned on.

B Mustering all his courage, he slowly opened the door.

This sentence is correct and does not contain a dangling modifier. The phrase "Mustering all his courage" correctly modifies "he," indicating that it was he who mustered courage before opening the door.