Hello! We are having a problem with IE9 crashing and not recognizing parameters passed into a script tag. We would like to add the meta tag
If I add this meta above all script tags inside the head tag manually on my web page, the problem goes away. However, when I add the tag to the CM1 template meta-data screen, even though I put the meta tag first, CM1 places the tag after the script tags. How can we get this meta tag added before all of the script tags? Thanks!
Ahh, ok. I see you are forcing the browser, namely IE, to render the page in IE9 (for instance) as opposed to rendering in a compatibility mode.
In 2.7 you can edit the DocType declaration and you can insert extra tags into the head of the pages leveraging the “Additional Code” section, but you can’t force that code to be inserted at the beginning of the head.
My questions on this, though, is what behavior are you experiencing? And what mode is IE rendering the page in? Is it something where you need to set the DocType to HTML5 to avoid this issue?
When the meta tag is not in the right place, the Types variable, for example, is null in MyScript.js. When the meta tag is in the right place, the data is passed.
To set the doctype to html5, are you suggesting I should try:
The doctype declaration for HTML5 is actually just:
To set the doctype to HTML5 in CM1 2.7, all you would have to do is open up the template, hit Edit Meta-Data, and there you will find a new radio option to change your doctype to HTML5.
Is the browser crashing or is stuff just not loading on it? I notice in your script src that the script path was not closed with a quote and I just want to make sure I test the same scenario. I am able to keep the browsing loading properly but I get a blank page using what you have here.
I am just trying to determine if there is an alternative approach to adding the meta tag in to solve this for you.