Last active
December 21, 2015 19:09
-
-
Save jbalsas/6352511 to your computer and use it in GitHub Desktop.
Example of using Alloy html5 shiv to fix markup for <IE9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Workaround users could use to get aui-base-html5-shiv to make this work in IE < 9