[Vimperator] js TypeError: document.body has no properties!

liupeng liupeng at 18mail.cn
Sat Oct 13 00:35:14 PDT 2007


vimperator version: 0.5.2                                                                                                                                      i want to use document.body in .vimperatorrc, load .vimperatorrc no error
------------------                                                                                                                                             xxx = function() {
        ...                                                                                                                                                            ...document.body...
        ...                                                                                                                                                    }
------------------                                                                                                                                                                                                                                                                                                            :js xxx()
display the error msg:                                                                                                                                         "TypeError: document.body has no properties"                                                                                                                    
:js alert(document)                                                                                                                                                return "[object XULDocument]"                                                                                                                              :js alert(document.body)
    return "undefine"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.mozdev.org/pipermail/vimperator/attachments/20071013/39b9827f/attachment.bin 


More information about the Vimperator mailing list