IE 9 Conditional Comment

Is there something different about IE 9 with regard to conditional comments? I can’t get mine to work.

<!--[if IE 9]>
	<link rel="stylesheet" type="text/css" media="screen" href="/css/ie9.css"/>
<![endif]-->

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

what about the leading slash on /css/ie9.css ?? if the css folder is the
same level as the html file, then no slash, right? and if above the current
folder then two dots first, as …/css/ie9.css ???


Ernie Simpson

On Tue, Oct 23, 2012 at 9:29 PM, Todd email@hidden wrote:

Is there something different about IE 9 with regard to conditional
comments? I can’t get mine to work.

<!--[if IE 9]>
        <link rel="stylesheet" type="text/css" media="screen"
href="/css/ie9.css"/>
<![endif]-->

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The thing is if I target IE8 or 7 using the same syntax it works. I’ll try your suggestion.

Thanks

On Oct 23, 2012, at 9:32 PM, Ernie Simpson email@hidden wrote:

what about the leading slash on /css/ie9.css ?? if the css folder is the
same level as the html file, then no slash, right? and if above the current
folder then two dots first, as …/css/ie9.css ???


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m probably wrong… the leading slash seems to be something called a
“root-relative” path and should be the equivalent of calling a document at
the same level.

Is there a problem at the css file? Maybe it’s the css code’s not working?
Me just guessing.


Ernie Simpson

On Tue, Oct 23, 2012 at 11:58 PM, Todd email@hidden wrote:

The thing is if I target IE8 or 7 using the same syntax it works. I’ll try
your suggestion.

Thanks

On Oct 23, 2012, at 9:32 PM, Ernie Simpson email@hidden wrote:

what about the leading slash on /css/ie9.css ?? if the css folder is the
same level as the html file, then no slash, right? and if above the
current
folder then two dots first, as …/css/ie9.css ???


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A reasonable guess and one that I considered but even the most basic of CSS doesn’t work. It seems I’m not alone in this as I’ve found many others who have had problems with v9 and CC. Curious.

Todd

On Oct 23, 2012, at 11:41 PM, Ernie Simpson email@hidden wrote:

I’m probably wrong… the leading slash seems to be something called a
“root-relative” path and should be the equivalent of calling a document at
the same level.

Is there a problem at the css file? Maybe it’s the css code’s not working?
Me just guessing.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What about if gt IE 8??


Ernie Simpson

On Oct 24, 2012, at 12:44 AM, Todd email@hidden wrote:

A reasonable guess and one that I considered but even the most basic of CSS doesn’t work. It seems I’m not alone in this as I’ve found many others who have had problems with v9 and CC. Curious.

Todd

On Oct 23, 2012, at 11:41 PM, Ernie Simpson email@hidden wrote:

I’m probably wrong… the leading slash seems to be something called a
“root-relative” path and should be the equivalent of calling a document at
the same level.

Is there a problem at the css file? Maybe it’s the css code’s not working?
Me just guessing.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Todd,
This thread on Stack Overflow may help;

It looks like IE 9 contains a bug (who would have thought it?) where conditional comments with no leading space are ignored. It appears you can either add the space or set the content type of the page and the comment should work again.
Regards,
Tim.

On 24 Oct 2012, at 02:29, Todd wrote:

Is there something different about IE 9 with regard to conditional comments?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That stackoverflow post is misleading, see the Answer (and my comment
in the Question.) It appears that the one who asked the question failed
to add the ! - in the <![endif]–>, which in turn explains why adding
the space helps …

I am not able to replicate the problem.

I would suggest that Todd sends us a link to a page which demoes the
problem that he experience.

Leif H Silli

Tim Plumb, Wed, 24 Oct 2012 08:49:21 +0100:

Hi Todd,
This thread on Stack Overflow may help;

It looks like IE 9 contains a bug (who would have thought it?) where
conditional comments with no leading space are ignored. It appears
you can either add the space or set the content type of the page and
the comment should work again.
Regards,
Tim.

On 24 Oct 2012, at 02:29, Todd wrote:

Is there something different about IE 9 with regard to conditional
comments?


FreewayActions.com - Freeware and commercial Actions for Freeway
Express & Pro - http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Leif & Tim,

I also found that post yesterday and Leif is correct, though I tried just to be sure. No luck. I’ll put an example online when I have a moment.

Thanks to you both.

On Oct 24, 2012, at 7:34 AM, Leif H Silli email@hidden wrote:

That stackoverflow post is misleading, see the Answer (and my comment
in the Question.) It appears that the one who asked the question failed
to add the ! - in the <![endif]–>, which in turn explains why adding
the space helps …


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The only way (I think) I can replicate this is if I press the
Compatibility View button in IE9.

The effect of the compatibility view button can be replicated with the
F12 Developer Tools: Just select Browser Mode IE9 Compatibility View.

As much as I understand, a Web page cannot force the Compatibility View

  • this has to be done by the user. So if you have the F12 Developer
    tools installed, have you verified that this is not something only you,
    the developer, see?

Leif H Silli

Todd, Wed, 24 Oct 2012 09:48:02 -0500:

Hi Leif & Tim,

I also found that post yesterday and Leif is correct, though I tried
just to be sure. No luck. I’ll put an example online when I have a
moment.

Thanks to you both.

On Oct 24, 2012, at 7:34 AM, Leif H Silli email@hidden wrote:

That stackoverflow post is misleading, see the Answer (and my comment
in the Question.) It appears that the one who asked the question failed
to add the ! - in the <![endif]–>, which in turn explains why adding
the space helps …


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think I figured it out. Turns out it was my CSS syntax. The same CSS that works fine in IE7 and 8 CC didn’t work in 9 so it was a simple fix.

Thanks,

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options