How do you get JS to validate?
Am more or less positive my JS used to validate now the following won't even pass
why? because the validator wants &&
if(1==1 && 2==2)
Any ideas how even that script can be validated.
The doc type is transitional.
in a separate folder worked a treat. That'll be why my other sites have validated and this one never, silly mistake.
Either that, or you must escape every '<' and '&' character as < and &. But then it won't work if you serve it as HTML, which is the case for 99.9999% of all 'XHTML' pages.
Originally Posted by felgall