Spawner blocks can spawn entities mid-air, on top of glass, or even on rails. This works for many different ground-based mobs. While I believe this is WAI behavior, I could not find an explicit source to back that claim up. The 'spawning on rails' part of this issue is covered in ...