diff --git a/addons/web/static/src/legacy/js/core/misc.js b/addons/web/static/src/legacy/js/core/misc.js index e0a957779a8..c2ef65dbf43 100644 --- a/addons/web/static/src/legacy/js/core/misc.js +++ b/addons/web/static/src/legacy/js/core/misc.js @@ -92,25 +92,6 @@ export function unblockUI() { return $.unblockUI.apply($, arguments); } - -// In Internet Explorer, document doesn't have the contains method, so we make a -// polyfill for the method in order to be compatible. -if (!document.contains) { - document.contains = function contains (node) { - if (!(0 in arguments)) { - throw new TypeError('1 argument is required'); - } - - do { - if (this === node) { - return true; - } - } while (node = node && node.parentNode); - - return false; - }; -} - export default { blockUI: blockUI, unblockUI: unblockUI,