JsFormValidatorBundle
JsFormValidatorBundle copied to clipboard
not working in IE8
The lib fails on removeListener.call(this, eventName, arguments.callee, false); with error Invalid procedure call or argument. Any chance this get fixed ?
Sorry, but I do not work with Symfony now, so waiting for PR from you or somebody else.
I don't have time to provide a PR, but for future reference here is what I did to make it work with IE8:
- add a polyfill for add/removeEventListener ( cf https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener )
- add a polyfill for HTMLElement:
(function () {
if ('HTMLElement' in window) {
return;
}
window.HTMLElement = window.Element;
})();
Thanks.