As i am loading this polyfill with requirejs, in any tag script in DOM, i faced the following problem in chrome: The polifyll was just apearing when clicking in the inputs. So i saw the supportsDateInput() method and fixed how the currentScript is captured from DOM. I think that currentScript is null in some cases that you are inside a normal script tag, without src attribute. Btw, thantks for this nice polyfill!
As i am loading this polyfill with requirejs, in any tag script in DOM, i faced the following problem in chrome: The polifyll was just apearing when clicking in the inputs. So i saw the supportsDateInput() method and fixed how the currentScript is captured from DOM. I think that currentScript is null in some cases that you are inside a normal script tag, without src attribute. Btw, thantks for this nice polyfill!