mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Remove Internet Explorer leftovers
This commit is contained in:
@@ -8,7 +8,7 @@ toc: true
|
||||
|
||||
## Supported browsers
|
||||
|
||||
Bootstrap supports the **latest, stable releases** of all major browsers and platforms. On Windows, **we support Internet Explorer 11 / Microsoft Edge**.
|
||||
Bootstrap supports the **latest, stable releases** of all major browsers and platforms. On Windows, **we support Microsoft Edge**.
|
||||
|
||||
Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API, are not explicitly supported. However, Bootstrap should (in most cases) display and function correctly in these browsers as well. More specific support information is provided below.
|
||||
|
||||
@@ -64,7 +64,6 @@ Similarly, the latest versions of most desktop browsers are supported.
|
||||
<th></th>
|
||||
<th>Chrome</th>
|
||||
<th>Firefox</th>
|
||||
<th>Internet Explorer</th>
|
||||
<th>Microsoft Edge</th>
|
||||
<th>Opera</th>
|
||||
<th>Safari</th>
|
||||
@@ -75,7 +74,6 @@ Similarly, the latest versions of most desktop browsers are supported.
|
||||
<th scope="row">Mac</th>
|
||||
<td>Supported</td>
|
||||
<td>Supported</td>
|
||||
<td class="text-muted">—</td>
|
||||
<td>Supported</td>
|
||||
<td>Supported</td>
|
||||
<td>Supported</td>
|
||||
@@ -84,7 +82,6 @@ Similarly, the latest versions of most desktop browsers are supported.
|
||||
<th scope="row">Windows</th>
|
||||
<td>Supported</td>
|
||||
<td>Supported</td>
|
||||
<td>IE11 only</td>
|
||||
<td>Supported</td>
|
||||
<td>Supported</td>
|
||||
<td class="text-muted">—</td>
|
||||
@@ -94,11 +91,11 @@ Similarly, the latest versions of most desktop browsers are supported.
|
||||
|
||||
For Firefox, in addition to the latest normal stable release, we also support the latest [Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/organizations/#faq) version of Firefox.
|
||||
|
||||
Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, Firefox for Linux, and Internet Explorer 9, though they are not officially supported.
|
||||
Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, and Firefox for Linux, though they are not officially supported.
|
||||
|
||||
## Internet Explorer
|
||||
|
||||
Internet Explorer 11 is supported; IE10 and down is not. Please be aware that some CSS3 properties and HTML5 elements are not fully supported in Internet Explorer, or require prefixed properties for full functionality. Visit [Can I use...](https://caniuse.com/) for details on browser support of CSS3 and HTML5 features. **If you require IE10 support, use Bootstrap 4.**
|
||||
Internet Explorer is not supported. **If you require Internet Explorer support, please use Bootstrap v4.**
|
||||
|
||||
## Modals and dropdowns on mobile
|
||||
|
||||
|
||||
@@ -227,40 +227,3 @@ var tooltip = new bootstrap.Tooltip(yourTooltipEl, {
|
||||
}
|
||||
})
|
||||
{{< /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 >}}
|
||||
|
||||
@@ -221,7 +221,7 @@ You can also specify a base color with our color map functions:
|
||||
|
||||
#### Escape SVG
|
||||
|
||||
We use the `escape-svg` function to escape the `<`, `>` and `#` characters for SVG background images. These characters need to be escaped to properly render the background images in IE.
|
||||
We use the `escape-svg` function to escape the `<`, `>` and `#` characters for SVG background images.
|
||||
|
||||
#### Add and Subtract functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user