diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index e9e35a734..63dc62818 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -111,31 +111,6 @@ PDFJS.compatibilityChecked = true; }); })(); -// Provides `input.type = 'type'` runtime failure protection. -// Support: IE9,10. -(function checkInputTypeNumberAssign() { - if (!hasDOM) { - return; - } - var el = document.createElement('input'); - try { - el.type = 'number'; - } catch (ex) { - var inputProto = el.constructor.prototype; - var typeProperty = Object.getOwnPropertyDescriptor(inputProto, 'type'); - Object.defineProperty(inputProto, 'type', { - get() { - return typeProperty.get.call(this); - }, - set(value) { - typeProperty.set.call(this, value === 'number' ? 'text' : value); - }, - enumerable: true, - configurable: true, - }); - } -})(); - // Provides correct document.readyState value for legacy browsers. // Support: IE9,10. (function checkDocumentReadyState() {