It is not that firefox does not support document.body. documentdiffers depending on which document you have. In HTML you have it document.body, because an HTML document will always have an element <BODY>. XUL does not <BODY>, therefore it is natural that a document has no property document.body.
The problem is that TinyMCE is highly dependent on the fact that the document is HTML. I do not know the code for TinyMCE, but I would suspect that it can be modified to support XUL.
source
share