Gas from a
battery can and does fall down and out in a open engine bay,but to put one close to a heat or pos point of ignition ie spark or flame is madness never mind no gas dropout or a
battery box with a cover.
It's far worse than that,
battery gas is a mixture of hydrogen H2 and oxygen O2 in the perfect explosive combination. The hydrogen (the explosive bit) is far lighter than air, actually the least dense gas there is, and rises. There's enough room inside the
battery for the explosive mixture to blow it to bits, doesn't take much, acid all over the place if it is a wet cell, which can and does happen. Even if that doesn't happen, just an accumulation of hydrogen in say a locker could be a disaster, it unfortunately has an extreme range of explosive limits, meaning almost any concentration can be ignited by the tiniest spark.
People have blown them up simply by connecting jump leads in the incorrect sequence, causing a spark at a terminal, usually right next to a vent. Trying to crank with a low starter
battery, or a full one but the engine won't start for another reason, or charge up a flat one, or hit it with a powerful jump starter, is a classic way to induce gassing, Never ever disconnect a charger before you have first un-plugged it.
I want to electrolyze water to get oxygen and hydrogen. I want to mix them in a regular balloon and ignite it. How much hydrogen would you need in a 2:1 ratio with air for it to be dangerous? Is this
chemistry.stackexchange.com
It must be treated with extreme respect, preferably the batteries in a locker with vent tubes to the outside.
Even a supposedly non-gassing gel or AGM can gas if say the charger or alternator malfunctions. That's why they all have vent holes, even the "sealed or valve-regulated" types. Under the bonnet they are OK, that's basically into fresh air so pointless adding a tube, but as soon as you put them inside the van (in my case under the drivers seat) you have to think carefully about how to do it safely.
I would always try to arrange vent tubes to the outside. Sadly there's no provision for these on my current van, the manufacturer seemed oblivious to this genuine hazard, which I find shocking. I hope to correct that oversight sooner rather than later.
As for putting one in a locker alongside a Chinese diesel heater, that seems like madness to me.