Skip Menu |

This queue is for tickets about the JE CPAN distribution.

Report information
The Basics
Id: 50473
Status: resolved
Priority: 0/
Queue: JE

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.038
Fixed in: (no value)



Subject: Error: Can't locate object method "ownerDocument" via package "JE::Object::Proxy::Array"
I tried to load jQuery 1.3.2, and I got the following the error: Error: Can't locate object method "ownerDocument" via package "JE::Object: Error: Can't locate object method "ownerDocument" via package "JE::Object::Proxy::Array" at my_www_scripter/lib/perl5/HTML/DOM/Node.pm line 239. TypeError: The object's 'ready' property (undefined) is not a function at file:///home/mark/Desktop/jquery/jquery-1.3.2.min.js, line 12. TypeError: The object's 'ready' property (undefined) is not a function at file:///home/mark/Desktop/jquery/print_center.html, line 49. ### The script involved was minimal: my $w = WWW::Scripter->new; $w->use_plugin('WWW::Scripter::Plugin::Ajax'); my $r = $w->get("file://$Bin/print_center.html"); The HTML file tag contained a <script> tag to load jQuery. These kind of issues make me wonder how hard it would be to get the SpiderMonkey plugin working...
On Tue Oct 13 21:29:36 2009, MARKSTOS wrote: Show quoted text
> I tried to load jQuery 1.3.2
I have limited Internet access. Could you attach a zip/tarball of jQuery to this ticket? Show quoted text
> These kind of issues make me wonder how hard it would be to get the > SpiderMonkey plugin working...
I tried at the end of last year, using JavaScript.pm. I ended up with pages and pages of workarounds for JS.pm’s limitations (and bugs). The result worked for my purposes, but SpiderMonkey sent page-long memory leak reports to STDERR each time I ran my script. I also had to write a 2-line patch for JS.pm, as well, but it only half-fixed the problem I ran into, so I never got around to submitting it.... Eventually I gave up.
Subject: Re: [rt.cpan.org #50473] Error: Can't locate object method "ownerDocument" via package "JE::Object::Proxy::Array"
Date: Mon, 19 Oct 2009 10:27:31 -0400
To: bug-JE [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
On Sat, 17 Oct 2009 01:10:20 -0400 "Father Chrysostomos via RT" <bug-JE@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=50473 > > > On Tue Oct 13 21:29:36 2009, MARKSTOS wrote:
> > I tried to load jQuery 1.3.2
> > I have limited Internet access. Could you attach a zip/tarball of jQuery to this ticket?
Here is a direct link. It is 55k "minified": http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js Show quoted text
> > These kind of issues make me wonder how hard it would be to get the > > SpiderMonkey plugin working...
> > I tried at the end of last year, using JavaScript.pm. I ended up with pages and pages of > workarounds for JS.pm’s limitations (and bugs). The result worked for my purposes, but > SpiderMonkey sent page-long memory leak reports to STDERR each time I ran my script. I also > had to write a 2-line patch for JS.pm, as well, but it only half-fixed the problem I ran into, so I > never got around to submitting it.... Eventually I gave up.
Good to know. I have since decided to focus on using Selenium for automated JavaScript testing. I the idea of Mechanize+JavaScript still appeals to me, but I like that with Selenium we can test against several real world browsers, even if it's a pain to have a desktop box dedicated to just running Selenium tests. I continue to think Mechanize + JavaScript will be useful for other kinds of cases. Mark
On Mon Oct 19 10:27:50 2009, mark@summersault.com wrote: Show quoted text
> On Sat, 17 Oct 2009 01:10:20 -0400 > "Father Chrysostomos via RT" <bug-JE@rt.cpan.org> wrote: >
> > I have limited Internet access. Could you attach a zip/tarball of
> jQuery to this ticket? > > Here is a direct link. It is 55k "minified": > > http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js
I mean I have limited web access. googlecode.com is not in the list of sites I can get to. Is there an rsync or FTP server?
Show quoted text
> I mean I have limited web access. googlecode.com is not in the list of > sites I can get to. Is there > an rsync or FTP server?
I see. In that case I have attached the uncompressed version, which will be easier to read, but has a larger file size. Mark
Download jquery-1.3.2.js
application/javascript 117.9k

Message body not shown because it is not plain text.

On Tue Oct 13 21:29:36 2009, MARKSTOS wrote: Show quoted text
> I tried to load jQuery 1.3.2, and I got the following the error: > > Error: Can't locate object method "ownerDocument" via package > "JE::Object: > Error: Can't locate object method "ownerDocument" via package > "JE::Object::Proxy::Array" at my_www_scripter/lib/perl5/HTML/DOM/Node.pm > line 239. > TypeError: The object's 'ready' property (undefined) is not a function > at file:///home/mark/Desktop/jquery/jquery-1.3.2.min.js, line 12. > TypeError: The object's 'ready' property (undefined) is not a function > at file:///home/mark/Desktop/jquery/print_center.html, line 49.
JE’s proxy objects were leaking out for all array- or hash-like objects. I’ve fixed this with version 0.041.