[pmwiki-users] DOCTYPE suppression is that bad?

David Spitzley dspitzle at wash.k12.mi.us
Fri Jul 28 07:27:27 CDT 2006


Just curious, but where is the website?  With a couple of the Firefox
plug-ins I've got installed, it might not be too hard to figure out
what's broken and causing IE to freak out.


David

>>> "kirpi at kirpi.it" <kirpi at kirpi.it> 07/27/06 7:48 PM >>>
> Balu wrote:
> Perhaps use some "conditional comments" that can be used to give IE
> some special handling? (Just google for the phrase to learn about
it)

> Marc wrote:
> To fix your problem, first use the appropriate DOCTYPE - it's
> mandatory after all - then start fixing the Javascript.

Thank you, Balu and Marc.
Fixing the Javascript is far beyond my skill.
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):

     <!--[if IE]>
     <small>Using Internet Explorer might create problems.
     Please download and install
     <a href="http://www.mozilla.com/">Mozilla</a>: it will
     take just 3 minutes of your time.</small>
     <![endif]-->

     <![if !IE]>
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     <![endif]>

Thank you, again!
Luigi

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com 
http://host.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list