{"id":870,"date":"2008-02-05T22:59:26","date_gmt":"2008-02-06T06:59:26","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/2008\/02\/05\/conditional-commenting-using-multiple-ie-on-vmware\/"},"modified":"2008-02-05T22:59:26","modified_gmt":"2008-02-06T06:59:26","slug":"conditional-commenting-using-multiple-ie-on-vmware","status":"publish","type":"post","link":"https:\/\/www.wiredatom.com\/blog\/2008\/02\/05\/conditional-commenting-using-multiple-ie-on-vmware\/","title":{"rendered":"Conditional Commenting Using Multiple IE on VMWare"},"content":{"rendered":"<p>As most web developers know, testing for Internet Explorer is a necessary evil that comes with the job. Fortunately a few tools has made the process easy:<\/p>\n<p>1. VMWare to run Windows XP with (and Vista if necessary; but yuck!);<br \/>\n2. <a href=\"http:\/\/tredosoft.com\/Multiple_IE\" target=\"_blank\">Multiple IE<\/a> app;<br \/>\n3. <a href=\"http:\/\/perishablepress.com\/press\/2006\/09\/04\/fun-with-downlevel-conditional-comments\/\" target=\"_blank\">Conditional commenting<\/a> using alternate stylesheets if push comes to shove (coding to standards is easy for all other browsers but IE; this is when you don&#8217;t want to alter your &#8220;standardized&#8221; stylesheet just for IE fixes; kudos to Microsoft for making this possible);<\/p>\n<p>But #3 failed me today, and I had to find out why the hard way &#8212; Internet Explorers installed via Multiple IE will always default to the latest version of the IE installed (<a href=\"http:\/\/css-tricks.com\/internet-explorer-testing-done-right\/#comment-713\" target=\"_blank\">credit<\/a>). Meaning, if you have IE6 and IE7 installed, even IE6 will always declare itself as IE7 when it comes to conditional comments (but not in browser agent, thankfully). After applying the simple registry hack (oh, the good old Windows registry, you&#8230;) and a quick reboot, everything worked as expected.<\/p>\n<p>Here&#8217;s the hack (in case the link provided above disappears for some reason):<\/p>\n<blockquote><p>\n&#8230; by removing the \u00e2\u20ac\u0153IE\u00e2\u20ac\u009d key in the registry subkey<\/p>\n<div class=\"codecolorer-container text railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">[HKLM\\SOFTWARE\\Microsoft\\Internet Explorer\\Version Vector]<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>, Internet Explore defaulted to respecting conditional comments based on the version number prebuilt in the program.\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>As most web developers know, testing for Internet Explorer is a necessary evil that comes with the job. Fortunately a few tools has made the process easy: 1. VMWare to run Windows XP with (and Vista if necessary; but yuck!); 2. Multiple IE app; 3. Conditional commenting using alternate stylesheets if push comes to shove &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/2008\/02\/05\/conditional-commenting-using-multiple-ie-on-vmware\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Conditional Commenting Using Multiple IE on VMWare&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10,15],"tags":[],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-geek-stuff","category-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p54IqZ-e2","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}