Reply
Conditional Comments in IE8 Emulating IE7
Old 05-29-2008, 06:35 PM Conditional Comments in IE8 Emulating IE7
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 290
Name: Vicky
Location: Wales
Just a quick question,

Does the conditional comments not work in the new IE8, even when you emulate IE7?

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="stylesie.css" />
<![endif]-->

I can't get it to work whatsoever, i've even tried <!--[if IE 8]>
__________________
Portfolio: www.vkw91.co.uk
Techno Pup: www.technopup.co.uk

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
When You Register, These Ads Go Away!
Old 05-29-2008, 07:23 PM Re: Conditional Comments in IE8 Emulating IE7
vangogh's Avatar
Post Impressionist

Posts: 8,825
Name: Steven Bradley
Location: Boulder, Colorado
One thing I've noticed on my machine is that even if you have several versions of IE installed they all identify themselves as the same version. I think it's how things are recorded in the registry.

For example I have IE7 and IE6 installed. When I view something in IE6 the browser does respond like iE6, but it requires <!--[if IE7]> in order for the conditional to work.

Check to see how your IE is identifying itself. Just look under Help => About in the menu. My guess is both browsers are identifying themselves as the same version.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-30-2008, 12:04 PM Re: Conditional Comments in IE8 Emulating IE7
LadynRed's Avatar
Super Moderator

Posts: 6,555
Location: Tennessee
IE8 is still in BETA, so I don't see the point here. It's also stated that when IE 8 is finally released, it will be standards compliant, eliminating the need for conditional comments (at least we HOPE so!) to 'correct' IE's historical bad behavior.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 12:55 PM Re: Conditional Comments in IE8 Emulating IE7
wayfarer07's Avatar
$frontend->developer

Posts: 1,036
Name: Abel Mohler
Location: Asheville, North Carolina USA
@vangogh: You can remove the registry key that identifies the browser version, and then the standalone browsers will revert to internal methods to identify what it is. Here is a tutorial that I used once upon a time: http://www.positioniseverything.net/...s/multiIE.html

I have found, however, that having multiple IE browsers on one computer is unreliable, at best, and I now test on two computers.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 07:52 PM Re: Conditional Comments in IE8 Emulating IE7
vangogh's Avatar
Post Impressionist

Posts: 8,825
Name: Steven Bradley
Location: Boulder, Colorado
Thanks Abel. I figured IE was getting the info from the registry, but wasn't sure if it was something to mess with. The tutorial is bookmarked for the weekend.

I agree testing on multiple computers is best, but not it's not likely until I shell out for another computer. How unreliable to you find having multiple IEs is? What kind of things fail to work?
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-30-2008, 08:45 PM Re: Conditional Comments in IE8 Emulating IE7
wayfarer07's Avatar
$frontend->developer

Posts: 1,036
Name: Abel Mohler
Location: Asheville, North Carolina USA
Well, I found that the second browser (mine was a hacked version of IE6) was fragile when there was a complex site, causing it to break down in a way that didn't make sense. Although this only happened twice to me, it confused me a lot when I was trying to debug for IE6. I'm not sure what the problem was, but when it happened again I deleted the standalone and converted my laptop to an IE6 computer.

There is also a special .dll file that has to be added to the standalone folder to allow the application to react to cookies. I needed cookie functionality because I was working on a user-login based web application at the time, which relied on cookies. Maybe the .dll file made it unstable, it's hard for me to say because I don't know much about that.

It definitely was very handy for a while. I could go into any coffee shop with only a laptop and do all of my testing without using browsershot websites, which are all pretty slow it seems anyway.

I do all of my work from home now, so having two computers is normal for me. Like anything, when something is a hack it doesn't always perform as well, but sometimes it can be handy.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 09:16 PM Re: Conditional Comments in IE8 Emulating IE7
vangogh's Avatar
Post Impressionist

Posts: 8,825
Name: Steven Bradley
Location: Boulder, Colorado
Thanks for the info. I like having multiple browsers on the one computer. I mostly work from home, but it's just easier having everything on one machine.

I hadn't realized that about needing the .dll file to react to cookies. I guess it's something to look into. It probably won't be an issue for me, but good to know about nonetheless.

Eventually I'm hoping to have a few more computers around of various shapes, sizes, and OSs.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Conditional Comments in IE8 Emulating IE7
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.22094 seconds with 12 queries