Fire requires fuel, oxygen and ignition (heat). Liquid fuels require external ignition. Batteries do not. But you also have to pump liquid fuels around and generally handle them more to make them do work.
Batteries are more dangerous on a fundamental/conceptual level because they have everything they need to release their energy all at once. So we build them with hard casings for the same reason we build large safety factors into pressurized gas containers so in practice it doesn't really matter.
Batteries and liquid fuels aren't really better or worse than each other from a "much safety or "won't somebody think of the children" point of view. They just require slightly different engineering considerations for an equivalent level of safety.
This is directed just as much (ore maybe even more) at the parent comment as it is at you.
Look up the definition of an explosion. Iām super excited about super capacitors - I think they are going to be required in order to make electric cars truly feasible - but the concerns around the safety of them should be dismissed just because they might hold up progress!
I'm dismissing these concerns not because they might hold up progress but because they're well withing what Donald Rumsfeld would call a "known known" of engineering difficulties.
And cars have come along way in the ability to protect the occupants. That same protection measures can be applied to the battery compartment if necessary (steal roll cage, elastic restraint system, air bags). Yes, these things need to be thought about, and yes we do have agencies such as the NTSB and insurance standards that will solve the problem.
That isn't to say gasoline isn't dangerous. However it isn't quite as dangerous as you seem to think.
There's been a few times I've driven by a car fire, and even from the opposite side of a divided 4-lane highway, the heat I felt was impressive.