MSIE 8 Compatibility View

  • Thread starter davee123
  • Start date
In summary: It's actually a table of holidays. So the first column shows the date of the holiday, and the next few columns give the details for where the holiday applies to (country X, market Y, etc). The first column's cells often have a multiple rowspan-- that is, a particular date's holiday is applicable to multiple countries and multiple markets.However, we wanted to make the rows collapsible so that it can show a single holiday compacted to a single row. Solution? Make a Javascript function that toggles the visibility and display of a row. But in MSIE 8, what's happening is that the rowspan is getting us into trouble.
  • #1
davee123
672
4
MSIE 8 "Compatibility View"

Ok, I have a webpage. Looks fine in Firefox, MSIE 7, etc. But MSIE 8 barfs it into a horrible mess.

BUT! It shows me a button called "Compatibility View" that magically fixes the problem.

... That's great and all, but I'm not about to go telling our clients to click their "Compatibility View" button to fix the problem. How can I tell what MSIE 8 is doing in "Compatibility View" mode? Is there a way to highlight in the HTML/CSS/JS source code what it thinks is the problem for compatibility?

DaveE
 
Computer science news on Phys.org
  • #2


Give a link to the page and I'll check it out. You could add the "X-UA-Compatible" header to force compatibility mode, but you should really find out what is the problem and fix it.
 
  • #3


Greg Bernhardt said:
Give a link to the page and I'll check it out. You could add the "X-UA-Compatible" header to force compatibility mode, but you should really find out what is the problem and fix it.

Unfortunately, I can't give out the URL, since it's only for paying customers of our company, but I do think I've found the issue:

I have a table with multiple rows. It's actually a table of holidays. So the first column shows the date of the holiday, and the next few columns give the details for where the holiday applies to (country X, market Y, etc). The first column's cells often have a multiple rowspan-- that is, a particular date's holiday is applicable to multiple countries and multiple markets.

However, we wanted to make the rows collapsible so that it can show a single holiday compacted to a single row. Solution? Make a Javascript function that toggles the visibility and display of a row. Great! Works in MSIE 6, 7, Firefox, Opera, and Chrome.

But in MSIE 8, what's happening is that the rowspan is getting us into trouble. That first cell shouldn't get hidden, even though it's displaying across the hidden row. In all the other browsers, when you hide a row (probably when you set the display property to "none"?), the first cell's rowspan gets adjusted automatically. In MSIE 8, it does NOT get adjusted, and it decides to re-render the table, forcing that first cell's rowspan down so that the cell gets displayed in subsequent rows.

So, the next solution will be to do the rowspan adjustment in JavaScript. BUT, we'll have to turn it off for all the OTHER browsers, since I expect it will cause problems in other browsers (including MSIE 6 and 7). So it'll have to ONLY go in for MSIE 8.

And given that this seems to work in EVERY other browser, I'm of the mind to think that it's a bug in MSIE 8 rather than a compatibility issue. Granted, it could be that not doing the automatic adjustment is a FEATURE, not a bug, since it gives more control over the table layout, but if so, I would hope that there would be some sort of CSS flag to trigger it, rather than being the default action, which is now in contrast to how it's been done everywhere else. Some CSS flag like "span-adjust: auto;" or something. But I haven't seen any mention of anything like that.

DaveE
 

What is "MSIE 8 Compatibility View"?

"MSIE 8 Compatibility View" is a feature in Internet Explorer 8 that allows users to view websites as if they were using an earlier version of Internet Explorer. This is meant to help older websites display properly on newer browsers.

When should I use "MSIE 8 Compatibility View"?

You should use "MSIE 8 Compatibility View" when a website is not displaying properly on Internet Explorer 8. This is usually because the website was designed for an older version of Internet Explorer and may not be compatible with the newer version.

How do I turn on "MSIE 8 Compatibility View"?

To turn on "MSIE 8 Compatibility View", click on the Tools menu in Internet Explorer 8 and select "Compatibility View". You can also click on the broken page icon in the address bar to turn on Compatibility View for the current website.

Can I use "MSIE 8 Compatibility View" for all websites?

No, "MSIE 8 Compatibility View" should only be used for websites that are not displaying properly on Internet Explorer 8. Using Compatibility View for all websites can cause display issues and should be avoided.

Is "MSIE 8 Compatibility View" available in newer versions of Internet Explorer?

No, "MSIE 8 Compatibility View" is only available in Internet Explorer 8. Newer versions of Internet Explorer have different compatibility features, such as Enterprise Mode, which allows users to view websites as if they were using an earlier version of Internet Explorer.

Similar threads

  • Computing and Technology
Replies
3
Views
1K
  • Programming and Computer Science
Replies
12
Views
2K
  • Computing and Technology
Replies
15
Views
4K
  • Computing and Technology
Replies
1
Views
2K
  • Computing and Technology
Replies
14
Views
2K
  • Computing and Technology
Replies
1
Views
7K
  • Programming and Computer Science
Replies
4
Views
5K
  • Feedback and Announcements
Replies
2
Views
3K
  • Astronomy and Astrophysics
Replies
2
Views
3K
  • Programming and Computer Science
Replies
15
Views
6K
Back
Top