diff options
| author | XhmikosR <[email protected]> | 2019-03-16 19:14:33 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-18 01:11:05 +0200 |
| commit | bcf76ef5f0d6305bb8aa7a83ae7fdc45256f7f08 (patch) | |
| tree | 7557157642a52d90228b94576b8a8542cacea6bd | |
| parent | 15d242d21ad67fa5b762eb5bdfbcdfb68b9bcce1 (diff) | |
| download | bootstrap-bcf76ef5f0d6305bb8aa7a83ae7fdc45256f7f08.tar.xz bootstrap-bcf76ef5f0d6305bb8aa7a83ae7fdc45256f7f08.zip | |
Revert "Add information about IE 11 compatibility."
This reverts commit 1da5b9f76a05feae2663316247937aabda91d487.
| -rw-r--r-- | site/content/docs/4.3/getting-started/javascript.md | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/site/content/docs/4.3/getting-started/javascript.md b/site/content/docs/4.3/getting-started/javascript.md index 3781dbbbc..45d6d6d35 100644 --- a/site/content/docs/4.3/getting-started/javascript.md +++ b/site/content/docs/4.3/getting-started/javascript.md @@ -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 >}} |
