Error Upgrading to HTML5

Community Forums Forums General Discussion Error Upgrading to HTML5

This topic is: not resolved

Tagged: ,

This topic contains 2 replies, has 3 voices, and was last updated by  fwThink 9 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60620

    Josh Fialkoff
    Participant
    Post count: 22

    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]-->
    

    The first <!--[if lt IE 9]>xxxx<![endif]--> is added via the Genesis Settings head() option, when the html5 template was not working in IE8.

    The second <!--[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.

    • This topic was modified 1 year, 1 month ago by  Josh Fialkoff.
    • This topic was modified 1 year, 1 month ago by  Josh Fialkoff.
    http://goo.gl/WqyFm0
    #60624

    David Chu
    Participant
    Post count: 1374

    Hi,
    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.
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #85475

    fwThink
    Member
    Post count: 1

    *Genesis 2.0.2v.
    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.