Onions and garlic contain N-propyl disulfide. This compound damages the hemoglobin in your dog's red blood cells, causing them to clump into 'Heinz bodies'. These cells are then destroyed by the dog's own spleen, leading to life-threatening anemia. Unlike chocolate, this effect is cumulative and can take several days to become fully apparent.