Support » Plugin: Toolbox » [Plugin: Toolbox] Bug: html5shiv is out of date

  • The version of html5shiv used in the toolbox theme is out of date and has a nasty bug that shows up in IE7. Paragraphs within blocks that have padding and background-color set do not display properly. The following code demonstrates the problem:

    <!DOCTYPE html>
    <script src="" type="text/javascript"></script>
            padding:10px; background-color:yellow;
    		<p>first line<br/>
                    second line</p>

    The current version of html5shiv can downloaded from Remy Sharp or from

    <!--[if lt IE 9]>
    <script src=""></script>

    and works properly.

    Please update the theme to fix this and the missing display:block issue.

Viewing 1 replies (of 1 total)
  • Peter here seems to be including the code snippet above to indicate where to get the latest version of the HTML5 shim, and as such, it’s almost correct. But as an example of how to actually include html5shim into your pages, it’s a really bad idea, that has unfortunately propagated widely.

    That link is pulling it from a *source code repository*. This is a bad idea on so many levels I can’t recount them all, but this site does a good job:

    But perhaps this will be enough to deter you: Loading it from there will make your page load *very slowly*. In fact, I first noticed it because a webcomic I follow was loading painfully slowly, waiting on this. The page uses WP; I’m still trying to figure out for the author where this link is coming from.

    The current html5shiv WP plugin looks like it does it almost right, by including the javascript code directly in the plugin. However, it could be improved by using minify to make the code smaller.

    But that’s a minor point. I’m just posting this to help stop the further spread of this bad idea.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Toolbox] Bug: html5shiv is out of date’ is closed to new replies.