You are here: doctype conditionals « HTML « IT news, forums, messages
doctype conditionals

Posted by osmanjaro on 07/19/07 01:50

Hi all,
On a recent experiment with getting ie6 to work I did something that
feels wrong, but works.
I know conditional comments work well for loading stylesheets and
javascript.
Why not doctypes? Its only ie6 that gets the transitional doctype,
everyone else gets strict.

<!-- Quirk on -->
<!--[if IE 6]>
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">
<![endif]-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
....

I'm sure this is bad. IE6 made me do it.
What do people here think about this?
--
i

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация