Why is the “http:” in this code NOT added by Genesis?
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
On one of our StudioPress child themes, we have this code:
<!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--><!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]>xxxx<![endif]--> is added via the Genesis Settings head() option, when the html5 template was not working in IE8.
<!--[if lt IE 9]>xxxx<![endif]--> appears to be inserted by Genesis here: genesis\lib\js\load-scripts.php
I am curious why the url is truncated, that is the http: is missing.
What is causing the URL to be truncated in such a way that results in IE8 not displaying the site correctly.
On another Genesis child theme, despite adding the IE8 specific script , the new html5 tags are not recognized by the browser.
I don’t follow your entire question, but I can provide a lead.
If memory serves, in Genesis 2, some parts of it were changed to use a protocol-less URL, thus no “http:” The idea behind this is well-intended, it’s to prevent security warnings on SSL (stronger security) sites. Server configurations do vary, obviously, and maybe yours does not like this change.
Hope that helps.
David Chu · Custom WordPress Developer – likes collaborating with Designers
I have this kind of issue with a child theme.
While the comment it is being printed in the wp head for all other browsers, when in IE8 and below, the conditional comment is nowhere in the document.
So, all html5 tags are not recognized by IE older, causing big issues in the website.
For the moment, I added the html5shiv.js script to the child theme with an extra function.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.