]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revert "Add information about IE 11 compatibility."
authorXhmikosR <xhmikosr@gmail.com>
Sat, 16 Mar 2019 17:14:33 +0000 (19:14 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 17 Mar 2019 23:11:05 +0000 (01:11 +0200)
This reverts commit 1da5b9f76a05feae2663316247937aabda91d487.

site/content/docs/4.3/getting-started/javascript.md

index 3781dbbbcea08658c6262f3f71f0ef6be9875556..45d6d6d35d30756d22dd73477dee2fd8b9f7683f 100644 (file)
@@ -220,40 +220,3 @@ $('#yourTooltip').tooltip({
   }
 })
 {{< /highlight >}}
-
-## Compatibility with IE 11
-
-Bootstrap v5 isn't designed to work with Internet Explorer 11, but you can add the following polyfills to make it work:
-
-{{< highlight html >}}
-<!-- Polyfill.io will load polyfills your browser needs -->
-<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js"></script>
-<script>
-  // Fix preventDefault for IE
-  (function () {
-    var workingDefaultPrevented = (function () {
-      var e = document.createEvent('CustomEvent')
-      e.initEvent('Bootstrap', true, true)
-      e.preventDefault()
-      return e.defaultPrevented
-    })()
-
-    if (!workingDefaultPrevented) {
-      var origPreventDefault = Event.prototype.preventDefault
-      Event.prototype.preventDefault = function () {
-        if (!this.cancelable) {
-          return
-        }
-
-        origPreventDefault.call(this)
-        Object.defineProperty(this, 'defaultPrevented', {
-          get: function () {
-            return true
-          },
-          configurable: true
-        })
-      }
-    }
-  })()
-</script>
-{{< /highlight >}}