> </table
> no error is thrown up and the output is all the
> html except that which would have come out of the buggy if statement. 
EmbPerl does not validate html.
I once heard that the reason that Natscape was so bloated, was because
that it tries to render these things correctly. i.e. anticipate bad 
html syntax.

you could use LWP (Lib-www) and a html validator found here www.w3.org
to procativaly test the output of your dynamic pages.

Jeff

On Mon, May 14, 2001 at 02:18:49PM +0100, Matthew Freake wrote:
> This isn't so much a bug in embperl 2, as it is a lack of an expected error
> message
> 
> I have the following script:
> 
> <html>
> <head>
> </head>
> <body>
> [-
>       $table_type=2;
> -]
> 
> [$ if ($table_type == 1) $]
> <table>
> <tr><td>One kind of table</td></tr>
> </table
> [$ else $]
> <table>
> <tr><td>Another kind of table</td></tr>
> </table>
> [$ endif $]
> </body>
> </html>
> 
> NOTE the missing close angle bracket on the first </table> tag !
> 
> When this page is displayed, no error is thrown up and the output is all the
> html except that which would have come out of the buggy if statement. 
> 
> Thanks
> 
> 
> Matt Freake
> 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Thanks, 
Jeff

--------------------------------------------------
| When you are feelin' really down,              |
| read the Book of Job, and see                  |
| what that sombitch had to go through!          |
|                      -- Forrest Gump           |
|                      -- Winston Groom          |
--------------------------------------------------
| Jeff Sheffield                                 |
| [EMAIL PROTECTED]                                 |
| AIM=JeffShef ICQ=4340529 Yahoo=jeff_sheffield  |
| NowDocs http://www.nowdocs.com (day gig)       |
--------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to