Skip to content

Instantly share code, notes, and snippets.

@jbalsas
Last active December 21, 2015 19:09
Show Gist options
  • Save jbalsas/6352511 to your computer and use it in GitHub Desktop.
Save jbalsas/6352511 to your computer and use it in GitHub Desktop.
Example of using Alloy html5 shiv to fix markup for <IE9
<html>
<head>
<title>AUI HTML5 shiv Test</title>
<script src="http://cdn.alloyui.com/2.0.0pr6/aui/aui-min.js"></script>
<script src="http://cdn.alloyui.com/2.0.0pr6/aui-base-html5-shiv/aui-base-html5-shiv.js"></script>
<script type="text/javascript">
YUI.Env.core.push('aui-base-html5-shiv');
new YUI().html5shiv();
</script>
<style type="text/css">
nav {
background-color: #ff00ff;
display: block;
}
</style>
</head>
<body>
<nav>
<a href="http://www.alloyui.com">Hello IE8 from Alloy!</a>
</nav>
</body>
</html>
@jbalsas
Copy link
Author

jbalsas commented Aug 27, 2013

Workaround users could use to get aui-base-html5-shiv to make this work in IE < 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment