You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Michael Stevens <mi...@iii.co.uk> on 2001/08/29 11:31:27 UTC
weird error with 2.0b3
Hi.
I've got this file:
<html>
<head><title>foo</title></head>
<body>
<h1>foo</h1>
<!-- <a href="/someurl"><img src="/somefile" border=0 width=361
height=191"></a> -->
<form method="post" action="get">
<INPUT TYPE="hidden" NAME="it" VALUE="ukin">
</form>
<hr>
</body>
</html>
Which when served to the browser is sent
as:
<html>
<head><title>foo</title></head>
<body>
<h1>foo</h1>
<!-- <a href="/someurl"><img src="/somefile" border=0 width=361
height=191"></a> -->
<form method="post" action="get">
<INPUT TYPE="" NAME="it" VALUE="ukin">
</form>
<hr>
</body>
</html>
>
This shows the input field as a real text entry field
on the screen, and has the spurious > on the end.
I know the HTML in the comment is dodgy, but I expected it
to be ignore as it's in a comment...
Michael
http://www.iii.co.uk
Interactive Investor International is a leading UK Internet personal
finance service that provides individuals with the capability to identify,
compare, monitor and buy online a number of financial products and services.
Interactive Investor Trading Limited, a subsidiary of Interactive Investor
International plc, is regulated by the SFA.
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: weird error with 2.0b3
Posted by Gerald Richter <ri...@ecos.de>.
>
> I know the HTML in the comment is dodgy, but I expected it
> to be ignore as it's in a comment...
>
The html comment is parsed nevertheless because it can contain Perl blocks,
which has to be executed.
Change the html comment to an Embperl comment ( [# ... #] ) and everything
should be fine.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org