Skip to content

Instantly share code, notes, and snippets.

@dcmoore-gd
Last active December 10, 2015 21:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcmoore-gd/4497922 to your computer and use it in GitHub Desktop.
Save dcmoore-gd/4497922 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>TEST</title>
<script type="text/javascript" src="https://raw.github.com/aFarkas/webshim/master/tests/dist/jquery.js"></script>
<script type="text/javascript" src="https://raw.github.com/aFarkas/webshim/master/src/extras/modernizr-custom.js"></script>
<!-- Master and 1.9.3 show the error -->
<!-- <script type="text/javascript" src="https://raw.github.com/aFarkas/webshim/master/src/polyfiller.js"></script> -->
<script type="text/javascript" src="https://raw.github.com/aFarkas/webshim/1.9.3/src/polyfiller.js"></script>
<!-- 1.9.2 doesn't give an error -->
<!-- <script type="text/javascript" src="https://raw.github.com/aFarkas/webshim/1.9.2/src/polyfiller.js"></script> -->
<script type="text/javascript">
$.webshims.validityMessages['en'] = {
valueMissing: "Required"
};
$.webshims.polyfill('forms');
</script>
</head>
<body>
<form><input required></form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment