|
Posted by Geoff Berrow on 04/29/07 10:15
Message-ID: <1177835633.197048.31470@u30g2000hsc.googlegroups.com> from
webrod contained the following:
>The fact that PHP is repeating a line is not a problem with HTML
>validation, because, if you are validating the HTML line (only 1),
>then even if you duplicate this line ten times, the validation will
>remain OK (maybe with some exceptions??).
Lots of exceptions
<?php if($something_is_true){ ?>
<div style='border:1px solid
red;padding:20px;margin:20px;text-align:center'>
<?php } ?>
<?php if($something_else_is_true){ ?>
<div style='border:1px solid
blue;padding:20px;margin:20px;text-align:center'>
some content
</div>
<?php } ?>
<?php if($something_is_true){ ?>
some more content
</div>
<?php } ?>
OK, you may /never/ code like this. But that's not the point. ASs far
as an automated tool is concerned that is perfectly valid code.
I can't see how you could possibly check the validity of the code
without parsing the php
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|