├── .gitignore ├── index.php ├── component.json ├── .editorconfig ├── libs ├── rAF.min.js ├── jquery.onfontresize.min.js ├── jquery.ba-resize.min.js ├── modernizr-2.0.6.min.js └── jquery-1.6.2.min.js ├── dist ├── placeholder_polyfill.min.css ├── placeholder_polyfill.jquery.min.js └── placeholder_polyfill.jquery.min.combo.js ├── web ├── template.html ├── version-history.html └── readme.html ├── LICENSE-MIT ├── docs ├── demo.css ├── demo.js ├── index-modernizr.html ├── index.html ├── index-chromeish.html ├── index-force.html ├── index-get-set.html ├── index-invisible-to-screenreaders.html └── index-rerun.html ├── bower.json ├── package.json ├── src ├── placeholder_polyfill.css └── placeholder_polyfill.jquery.js ├── version-history.markdown ├── Gruntfile.js ├── readme.markdown └── LICENSE-GPL /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | node_modules 3 | 4 | /npm-debug.log -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HTML5-placeholder-polyfill", 3 | "version": "2.1.0", 4 | "main": "['/dist/placeholder_polyfill.jquery.min.combo.js','/dist/placeholder_polyfill.min.css']", 5 | "dependencies": { 6 | "jquery": "<=1.8" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | ; This file is for unifying the coding style for different editors and IDEs. 2 | ; More information at http://EditorConfig.org 3 | 4 | root = true ; top-most EditorConfig file 5 | 6 | [*] ; Global settings across all file types 7 | end_of_line = LF ; Unix-style newlines 8 | indent_style = space ; space indentation instead of tabs 9 | indent_size = 4 ; intend using 4 spaces 10 | -------------------------------------------------------------------------------- /libs/rAF.min.js: -------------------------------------------------------------------------------- 1 | // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 2 | // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating 3 | // https://gist.github.com/1579671 4 | 5 | // requestAnimationFrame polyfill by Erik Möller 6 | // fixes from Paul Irish and Tino Zijdel 7 | (function(){var b=0;var c=["ms","moz","webkit","o"];for(var a=0;a 2 | 3 | 4 | HTML5 placeholder polyfill 5 | 6 | 7 | 8 | 9 | 10 | 11 | <%=content%> 12 | 13 | 14 | Fork me on GitHub 15 | 16 | 20 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /libs/jquery.onfontresize.min.js: -------------------------------------------------------------------------------- 1 | /** * Copyright (c) 2008 Tom Deater (http://www.tomdeater.com) 2 | * Licensed under the MIT License: 3 | * http://www.opensource.org/licenses/mit-license.php 4 | * Updated by Dirk Ginader: 2013-03-31 5 | */ 6 | jQuery.onFontResize=function(e){return e(document).ready(function(){var t=e("