[pmwiki-users] DOCTYPE suppression is that bad?
Kathryn Andersen
kat_lists at katspace.homelinux.org
Thu Jul 27 19:17:37 CDT 2006
On Fri, Jul 28, 2006 at 01:48:25AM +0200, 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):
>
> <!--[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]>
You should probably have that the other way around, since the DOCTYPE
needs to be the first thing in the document.
I'm also not sure how the non-IE browsers would react to statements such
as
<![if !IE]>
Kathryn Andersen
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the pmwiki-users
mailing list