Hi Meir,

On Fri, 22 Jul 2011 12:11:03 +0300
Meir Guttman <[email protected]> wrote:

> 
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On Behalf
> Of ynon perek
> > Sent: Friday, July 22, 2011 10:57 AM
> > To: Perl in Israel
> > Subject: Re: [Israel.pm] Next Tel Aviv Perl Mongers meeting - Call for
> Talks!
> > 
> > Hi
> > Being a bit late for the official as it was a long week - I have a ready
> > JavaScript intro talk (length 40 min, including history and key language
> > concepts) that we can use as a "surprise" talk.
> > 
> > Interested ?
> 
> Not only am I interested, but I would be very glad if it includes a
> reference to its relation to (or rather the lack thereof) Perl packages such
> as LWP and its subclass Mechanize. Why did their creators and maintainers
> refrain from integrating many free JavaScript engines into these?
> 

I'll answer that. First of all if you're interested in interacting with the
JavaScript on web pages, you can look at Perl solutions such as
http://metacpan.org/module/WWW::Selenium or
http://metacpan.org/module/Mozilla::Mechanize .

Now, the reason libwww-perl (LWP) or WWW::Mechanize don't integrate a
JavaScript engine inside is because:

1. Sometimes you don't need or want to have JS.

2. JS may incur a run time overhead.

3. Running such JavaScript may be insecure.

4. It is out of scope of such modules, which don't aim to be something like
Selenium.

5. It will add complexity to WWW::Mechanize and LWP.

6. In case of LWP, it is completely out of scope, since LWP is not aware of
HTML at all (it is just a library to interact with the Web).

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

Larry Wall applies a patch manually quicker than GNU patch.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to