In which sentence are the italicized words a dangling modifier?
A. Gazing at the night sky, the young woman made a wish on a star.
B. Not knowing the danger, the soldiers marched into the trap.
C. Resting on the sea bottom, the old trunk held many coins.
D. Arriving ten minutes late, the store was closed for the night.