[pmwiki-users] DOCTYPE suppression is that bad?

porneL mailinglist at pornel.net
Thu Jul 27 19:55:09 CDT 2006


On Fri, 28 Jul 2006 00:48:25 +0100, kirpi at kirpi.it <kirpi at kirpi.it> wrote:

> So, putting together your precious suggestions I opted to restore the
> original DOCTYPE for all browsers *but* IE. This way Mozilla,
> Opera,... users will get the right document and the working
> javascript, while IE users will get a working javascript and a
> DOCTYPE-less document, plus an invitation to download Mozilla. If
> something goes wrong for them, it will be their problem, after all
> it's them who insist on using IE although there are better browsers
> ready at hand...
> This is the code I inserted at the top of the template (adjusted to
> English here):

You don't need to use conditional comments. IE6 has problems reading  
doctype if there is XML declaration or comment before it, so:

<!-- stupid Explorer -->
<!DOCTYPE...

should be enough.


Also don't use <![if !IE]>. If you have to, use: <!--[if !IE]><x-->   
<!--><![endif]-->

-- 
regards, porneL




More information about the pmwiki-users mailing list