perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <>
Subject Re: Embperl2c rewriting my HTML
Date Mon, 25 Nov 2002 01:30:58 GMT
At 8:12 PM -0500 11/24/02, David Williams wrote:
><a href=><img src=/images/cstore.gif
><a href="http" ://><img src /images/cstore.gif
>which is un-renderable.

However it is in fact a perfect representation of what you had. 
According to the HTML spec, your href value ended at the colon after 
http.  Even if Embperl didn't rewrite the URL, it wouldn't properly 
escape any variables you put it in, because it's extremely invalid 
HTML.  You really need to quote those URLs if you want them to work 
properly.  Some browsers may be lenient about it, but I wouldn't want 
to gamble on it for all of them.

One of the big benefits of Embperl is it's ability to parse your HTML 
and take care of a lot of automatic things (filling in forms, looping 
on table rows...).  But that does mean that you have to make sure 
your HTML is correct so that it can parse it.

Kee Hinckley - Somewhere.Com, LLC

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message