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

liupeng liupeng at 18mail.cn
Sat Oct 13 03:19:56 PDT 2007


use "content.document.body"
my question resolved, thank you 
On Sat, Oct 13, 2007 at 07:21:25PM +1000, Doug Kearns wrote:
> On 10/13/07, liupeng <liupeng at 18mail.cn> wrote:
> 
> <snip>
> 
> > :js alert(document)                                                                                                                                                return "[object XULDocument]"                                                                                                                              :js alert(document.body)
> >     return "undefine"
> 
> That's correct. XUL documents have no body property - you probably
> want content.document.
> 
> :echo document
> :echo content.document
> 
> What is it that you are trying to do?
> 
> Regards,
> Doug
> _______________________________________________
> Vimperator mailing list
> Vimperator at mozdev.org
> http://www.mozdev.org/mailman/listinfo/vimperator
> 
-------------- 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/7003f474/attachment.bin 


More information about the Vimperator mailing list