Dogs develop hemolytic anemia if they eat enough onions. I don't think that it matters too much whether the onions are cooked or not. The quantity of onions required is high enough that dogs can generally tolerate small doses of onions without any problem and moderate amounts of onion without clinically apparent disease, even though there may be measurable changes on lab test results. Cats are probably a little more sensitive to onion toxicity than dogs are. I can't find an exact quantity of onions required to cause toxicity problems in dogs, but there are several case reports of onion toxicity and they involve whole onions or sizable portions of chopped onions (like a cup or more). I think that feeding dogs meat that has been cooked with onions is pretty safe but you might want to avoid giving them the broth from around something like pot-roast if there were a lot of onions used in the cooking, just to be safe.
Large amounts of garlic will produce similar toxicity problems in both dogs and cats. I think that the amount required is not likely to be eaten by a cat but there are probably a few dogs who would lap up a container of spilled garlic.
Among common foods, the only other significant toxicity that I can think of are recent reports of toxicity from eating grapes and raisins that have been reported in dogs.
Mike Richards, DVM
11/15/2001
Source: Toxins (Poisons) That Effect Dogs ~
http://www.vetinfo4dogs.com/dtoxin.html#Onion%20and%20G...%20dogs%20and%20cats**********
In the last five years, more and more toxicity studies are being conducted on garlic and all seem to indicate that it, too, can pose serious health risks when fed to cats and dogs. A 2003 study on Grape and Raisin Toxicity in Dogs, published in the Australian Veterinary Journal begins, “The list of commonly available human foods toxic to dogs continues to grow. Grapes and raisins can be added to onions, garlic, chocolate, and macadamia nuts as posing dangers when ingested in excessive quantities.” [1] Unfortunately, no one knows what constitutes “excessive quantities.” In an article on Onion and Garlic Toxicity in Dogs and Cats, Jennifer Prince, DVM states: “Garlic and onion are used as flavor enhancers in food. Since the toxic amount is unknown, it is recommended not to add it to your pet's food. These ingredients can cause Heinz body anemia, resulting in a breakdown of the red blood cells and anemia.” [2] Although the exact toxic dose is not known, studies unanimously agree that foods containing garlic should not be fed to dogs. -
http://www.petsbynature.com/Garlic.htm