[cgiapp] [Fwd: Re: ValidateRM not PP]

Michael Peters mpeters at plusthree.com
Mon Jan 26 09:11:17 EST 2009


Lyle wrote:

>>   + Javascript code which has HTML in strings (very common in DHTML apps)
> 
> Does the current parser pick that up? I don't think HTML::Parser 
> executes any JavaScript.

No, I'm saying that your simple regex approach whould change the JS code on the page, which is *not* 
what people would want.

>>   + HTML comments?
>>   + targetting specific forms?
>>
>> Dealing with HTML requires a parser. Anything else won't make people 
>> happy.
> 
> I see. But there isn't a Pure Perl parser available, and for those that 
> really can't get HTML::Parser on their cheap shared hosting, isn't a 
> regexp that works most/some of the time better than nothing?

If it were me, the answer would be no. A minor template change could break your application in 
mysterious ways. I'd rather not have an HTML::FillInForm replacement than one that works sometimes 
and not others.

-- 
Michael Peters
Plus Three, LP



More information about the cgiapp mailing list