Unfortunately there is a longstanding Gecko bug which affects dynamic JS-generated content rendered into IFRAMEs. Basically, they don't work, even though I think (I'm clearly no web standards expert) the DOM 1 spec says they should. I would love to be proven wrong, if anyone else knows otherwise.
When in doubt, do it. It’s much easier to apologize than to get permission.
— Grace Murray Hopper