I am designing an HTML website within a company website and I am having serious pain with IE 8 which enters Quirks Mode. I am using several CSS and Javascripts to format the HTML.
I have Googled for solutions to move from Quirks Mode into Internet Explorer 8 standards mode, which involved adding the following lines:
<!DOCTYPE html>
at the beginning of my html<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
in the<head>
tag.
However, since my HTML is embedded within the company HTML, and the company HTML begins with this line:
<HTML xmlns:o="urn:schemas-microsoft-com:office:office" dir="ltr">
Internet Explorer automatically launches into Quirks Mode and rearranges all my formatting despite the previous solutions that I have used.
And since I do not have any access/control over the company HTML, I am unable to add the <!DOCTYPE html>
to the beginning of the company HTML.
For my circumstance, is there anything that I can do to force IE8 to not load the Quirks Mode? I have thought of writing a C# program that will force reload IE8 into standard mode, but I am unsure if it will be efficient.