Hello,
I've been just investigating IE conditional comments - hiding things from
non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide
code from IE/Win browsers.
I found <![if ..]> in the original MSDN documentation, but this is (although
it is working) unfortunately non-validating gibberish.
So I fooled around trying to find a way to make it valid. And voila:
<!--[if IE]><![if !IE]><![endif]-->
<p>IE/Win ignores this</p>
<!--[if IE]><![endif]><![endif]-->
Seems like IE has some very strange nesting rules that make a programmers
heart scream in agony...
Did I found something new, or is this common knowledge?
A complete test page can be found at:
(warning: DSL connected host with dynamic IP, might be offline once in a
while)
Greetings to you all!
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
I've been just investigating IE conditional comments - hiding things from
non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide
code from IE/Win browsers.
I found <![if ..]> in the original MSDN documentation, but this is (although
it is working) unfortunately non-validating gibberish.
So I fooled around trying to find a way to make it valid. And voila:
<!--[if IE]><![if !IE]><![endif]-->
<p>IE/Win ignores this</p>
<!--[if IE]><![endif]><![endif]-->
Seems like IE has some very strange nesting rules that make a programmers
heart scream in agony...
Did I found something new, or is this common knowledge?
A complete test page can be found at:
(warning: DSL connected host with dynamic IP, might be offline once in a
while)
Greetings to you all!
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Comment