Javascript function definition/call difference between browsers
This question already has an answer here:
Firefox does not hoist function declarations outside of for blocks either. ECMA standard says it's okay. The documentation you linked to is not applicable only to if blocks, but for blocks as well.
