Dog attacks woman as she strokes it