CSE Html Pro ver. 10.01 Browser function

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
Poul_Erik
Rank 0 - Newcomer
Posts: 7
Joined: Mon Dec 03, 2007 2:50 pm
Contact:

CSE Html Pro ver. 10.01 Browser function

Post by Poul_Erik »

Hi,
I use the Browser function in CSE Html Val. very often. I don't understand why it always use compatibility mode from IE? Can't I use the default IE mode?

I have installed IE9...

Thanks,
Poul Erik
Poul Erik Rasmussen
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: CSE Html Pro ver. 10.01 Browser function

Post by Albert Wiersch »

Hi Poul,

That was something I was wanting to look into - provide an option to switch modes... unfortunately I haven't been able to investigate it yet.

However, have you tried putting a line like this in your HTML files to make IE use the latest compatibility mode available?

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
I did a quick test and it seemed to switch the compatibility mode from 7 to 8 (IE8 is installed on my system but would be 9 with IE9 on your system).

Here is more information I found:
META Tags and Locking in Future Compatibility

Here's a sample document I used for some testing:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Testing IE Document Mode</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta name="generator" content="CSE HTML Validator Professional (http://www.htmlvalidator.com/)">

</head>

<body>
<p>Testing IE's "Compatibility Mode/Document Mode"!</p>
<script type="text/javascript">
alert('document.documentMode is '+document.documentMode);
</script>
</body>
</html>
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Poul_Erik
Rank 0 - Newcomer
Posts: 7
Joined: Mon Dec 03, 2007 2:50 pm
Contact:

Re: CSE Html Pro ver. 10.01 Browser function

Post by Poul_Erik »

Will you make an option to switch Compatibility Mode in CSE HTML Validator?

Hope you will,
Poul Erik
Poul Erik Rasmussen
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: CSE Html Pro ver. 10.01 Browser function

Post by Albert Wiersch »

Poul_Erik wrote:Will you make an option to switch Compatibility Mode in CSE HTML Validator?
Something like that is what I want to do, but unfortunately other issues are higher priority now so I'm not sure when I will be able to look into it further (but I do plan to).

Thank you.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply