/** * jQuery "splendid textchange" plugin * http://benalpert.com/2013/06/18/a-near-perfect-oninput-shim-for-ie-8-and-9.html * * (c) 2013 Ben Alpert, released under the MIT license */ (function($) { var testNode = document.createElement("input"); var isInputSupported = "oninput" in testNode && (!("documentMode" in document) || document.documentMode > 9); var hasInputCapabilities = function(elem) { // The HTML5 spec lists many more types than `text` and `password` on // which the input event is triggered but none of them exist in IE 8 or // 9, so we don't check them here. // TODO: