What I expected to happen was...:
Hostile mobs should try to escape the space between the trapdoors by jumping to attack the player, or passive mobs should try to run when they are damaged
What actually happened was...:
The mobs dont jump, and stay trapped on the confined space
Environment
OS: Windows 10 Pro
Java version: 1.8.0_201 64 bits
Duplicate of MC-50556