The Democratic Party snatching defeat from the jaws of victory.