Strict XHTML > > I had to specifically mention CHECKED="CHECKED" in the if > statement to make > > it work. > > Simply by saying CHECKED alone (though a valid html > attribute) does not seem > > to work.
XHTML requires that you don't use empty attributes (They call it "attribute minimization". If you don't like this you have to use HTML 4.01 in the header of your document): http://www.w3.org/TR/xhtml1/#h-4.5 And it requires lower-case HTML tags also ;-) http://www.w3.org/TR/xhtml1/#h-4.2 As a funny sidenote: The W3C found it neccessary to mention in their compatibility guildline, to state that some browsers have problems with boolean attributes: http://www.w3.org/TR/xhtml1/#C_10 I'd suggest checking your HTML with their free checker: http://validator.w3.org/ Or if you want to do it the Perl-Way (e.g. in automated test scripts): http://search.cpan.org/~petdance/HTML-Tidy-1.04/lib/HTML/Tidy.pm This might save you lots of trouble. On the other hand it's always a good idea to compare how different browsers behave. Regards, Sebastian ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users