[cgiapp] Re: HTML::FillInForm maintanence, patch idea

Lyle webmaster at cosmicperl.com
Fri Feb 6 14:10:30 EST 2009


Mark Stosberg wrote:
> I have some interest in a pure-perl FillInForm to support a more
> portable Titanium distribution. The trick there is finding a suitable
> replacement for HTML::Parser. 
>   

I haven't had much luck with this. The only pure-perl HTML parser is 
HTML::TagParser. It works very differently to HTML::Parser and has no 
methods to re-create the page based on changes you make. I contacted the 
author about this, he said he has no plans to add that feature but would 
consider patches. I had an idea about how I might to able to do it, 
emailed him asking what he thought and haven't heard back for over a week :/

HTML::TagParser currently parses it's way through the HTML extracting 
everything out into DOM style objects. My idea was to modify the lexer 
so that it stored the start and end point of each tag. That way when the 
DOM objects were changed they could be re-made into HTML and swapped 
back into the original. Whether that's the best idea or not I don't know :/

However I have made some good progress on my YAML based form creation 
module, which negates the need for HTML::FillInForm. Hopefully I'll have 
some distributable code soon.


Lyle



More information about the cgiapp mailing list