diff --git a/bi/base.js b/bi/base.js index 610b6bf78..864689b66 100644 --- a/bi/base.js +++ b/bi/base.js @@ -200,6 +200,150 @@ } }));/** + * 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: