Question #N1282

Which of the following sentences demonstrates correct punctuation?
A. The dog, wagging its tail, ran to greet its owner.
B. The dog wagging its tail, ran to greet its owner.
C. The dog wagging its tail ran to greet its owner.
D. The dog wagging its tail ran, to greet its owner.