]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove Internet Explorer leftovers
authorXhmikosR <xhmikosr@gmail.com>
Mon, 9 Mar 2020 13:37:46 +0000 (15:37 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 18 Mar 2020 18:59:27 +0000 (20:59 +0200)
34 files changed:
.github/ISSUE_TEMPLATE/bug.md
.github/ISSUE_TEMPLATE/bug_report.md
build/vnu-jar.js
js/tests/unit/modal.spec.js
scss/_card.scss
scss/forms/_form-control.scss
scss/forms/_form-file.scss
scss/forms/_form-select.scss
site/content/docs/4.3/examples/album/index.html
site/content/docs/4.3/examples/blog/index.html
site/content/docs/4.3/examples/carousel/index.html
site/content/docs/4.3/examples/cover/index.html
site/content/docs/4.3/examples/dashboard/index.html
site/content/docs/4.3/examples/floating-labels/floating-labels.css
site/content/docs/4.3/examples/navbar-fixed/index.html
site/content/docs/4.3/examples/navbar-static/index.html
site/content/docs/4.3/examples/navbars/index.html
site/content/docs/4.3/examples/offcanvas/index.html
site/content/docs/4.3/examples/starter-template/index.html
site/content/docs/4.3/examples/sticky-footer-navbar/index.html
site/content/docs/4.3/examples/sticky-footer/index.html
site/content/docs/4.3/forms/form-control.md
site/content/docs/4.3/getting-started/browsers-devices.md
site/content/docs/4.3/getting-started/javascript.md
site/content/docs/4.3/getting-started/theming.md
site/content/docs/4.3/helpers/position.md
site/content/docs/4.3/layout/grid.md
site/content/docs/4.3/migration.md
site/content/docs/4.3/utilities/flex.md
site/layouts/_default/404.html
site/layouts/_default/docs.html
site/layouts/_default/single.html
site/layouts/partials/callout-warning-input-support.md
site/layouts/partials/home/masthead.html

index 8971d44adbccf3ad9a14dda6d3ee0ba9e741ef2d..1f2a890b12ad610dd67bd7ff9e793d2d9da284d2 100644 (file)
@@ -6,6 +6,6 @@ Before opening:
 
 Bug reports must include:
 
-- Operating system and version (Windows, macOS, Android, iOS, Win10 Mobile)
-- Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
+- Operating system and version (Windows, macOS, Android, iOS)
+- Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser)
 - [Reduced test case](https://css-tricks.com/reduced-test-cases/) and suggested fix using [CodePen](https://codepen.io/) or [JS Bin](https://jsbin.com/)
index 2d77bb50ef9ee59ce71f7467203a3790b091b6e5..083fa137e54982535de1f26bfb3ae7692a2b3c6b 100644 (file)
@@ -12,6 +12,6 @@ Before opening:
 
 Bug reports must include:
 
-- Operating system and version (Windows, macOS, Android, iOS, Win10 Mobile)
-- Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
+- Operating system and version (Windows, macOS, Android, iOS)
+- Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser)
 - [Reduced test case](https://css-tricks.com/reduced-test-cases/) and suggested fix using [CodePen](https://codepen.io/) or [JS Bin](https://jsbin.com/)
index 4018873f8dcddc53b5ed1a191e5e4c447f1de8bb..674cdb44305f3f2014e1ed4874c5018877def7eb 100644 (file)
@@ -37,10 +37,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
     'The “month” input type is not supported in all browsers.*',
     'The “color” input type is not supported in all browsers.*',
     'The “datetime-local” input type is not supported in all browsers.*',
-    'The “time” input type is not supported in all browsers.*',
-    // IE11 doesn't recognize <main> / give the element an implicit "main" landmark.
-    // Explicit role="main" is redundant for other modern browsers, but still valid.
-    'The “main” role is unnecessary for element “main”.'
+    'The “time” input type is not supported in all browsers.*'
   ].join('|')
 
   const args = [
index b4923ab3f41b6d1e307afdfc7d339359e813e11f..62d0835ee935fc99f0b00d090ad40a139f3baea7 100644 (file)
@@ -653,7 +653,6 @@ describe('Modal', () => {
     it('should enforce focus', done => {
       fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog" /></div>'
 
-      const isIE11 = Boolean(window.MSInputMethodContext) && Boolean(document.documentMode)
       const modalEl = fixtureEl.querySelector('.modal')
       const modal = new Modal(modalEl)
 
@@ -668,11 +667,6 @@ describe('Modal', () => {
       modalEl.addEventListener('shown.bs.modal', () => {
         expect(modal._enforceFocus).toHaveBeenCalled()
 
-        if (isIE11) {
-          done()
-          return
-        }
-
         spyOn(modal._element, 'focus')
 
         document.addEventListener('focusin', focusInListener)
index 132f79e1ebf5e975a3022adb6afca3ab3728b91e..db2da9e4abcc3ca8525a08cbaa80a80750007f5b 100644 (file)
@@ -36,9 +36,6 @@
   // Enable `flex-grow: 1` for decks and groups so that card blocks take up
   // as much space as possible, ensuring footers are aligned to the bottom.
   flex: 1 1 auto;
-  // Workaround for the image size bug in IE
-  // See: https://github.com/twbs/bootstrap/pull/28855
-  min-height: 1px;
   padding: $card-spacer-y $card-spacer-x;
   color: $card-color;
 }
index 5d1c1b692214d50100e3aa16bd7a37bdbb82b064..fb3142333e35168e0c3e74ea7d71f15d65415275 100644 (file)
   @include box-shadow($input-box-shadow);
   @include transition($input-transition);
 
-  // Unstyle the caret on `<select>`s in IE10+.
-  &::-ms-expand {
-    background-color: transparent;
-    border: 0;
-  }
-
   // Customize the `:focus` state to imitate native WebKit styles.
   &:focus {
     color: $input-focus-color;
index 500591cab47606f18449f048bf1ccc4520ff88b0..8e9c6c4438fd3f305a8411e77ad956592e5c1e58 100644 (file)
   margin: 0;
   opacity: 0;
 
-  // Separate rules for :focus and :focus-within as IE doesn't support the latter, and
-  // thus ignores the entire ruleset. See https://github.com/twbs/bootstrap/pull/29036.
-  &:focus ~ .form-file-label {
-    border-color: $form-file-focus-border-color;
-    box-shadow: $form-file-focus-box-shadow;
-  }
-
   &:focus-within ~ .form-file-label {
     border-color: $form-file-focus-border-color;
     box-shadow: $form-file-focus-box-shadow;
index fa3206881078d3e96b5d60995ccf1ae4438f8b1a..84fb88354db71f89417999b0f98b9f41508025cf 100644 (file)
     border-color: $form-select-disabled-border-color;
   }
 
-  // Hides the default caret in IE11
-  &::-ms-expand {
-    display: none;
-  }
-
   // Remove outline from select box in FF
   &:-moz-focusring {
     color: transparent;
index 05e80a03280a823854448ea126583e18cbe4b737..5219acbbac23e2b73b9309eb4ec5029497dedcfe 100644 (file)
@@ -35,7 +35,7 @@ title: Album example
   </div>
 </header>
 
-<main role="main">
+<main>
 
   <section class="py-5 text-center container">
     <div class="row py-lg-5">
index 4baee1942d853c5032bb69c977f5007f84f7c53e..be78013508693745f0617bbf01a34a1110d9b645 100644 (file)
@@ -82,7 +82,7 @@ include_js: false
   </div>
 </div>
 
-<main role="main" class="container">
+<main class="container">
   <div class="row">
     <div class="col-md-8 blog-main">
       <h3 class="pb-4 mb-4 font-italic border-bottom">
index 2e824c4e070c9777ec29b2d4aa8dfecb4950fc37..e5b9f46494253b3ef2d4c29fe561dcfbbc99f5e4 100644 (file)
@@ -33,7 +33,7 @@ extra_css:
   </nav>
 </header>
 
-<main role="main">
+<main>
 
   <div id="myCarousel" class="carousel slide" data-ride="carousel">
     <ol class="carousel-indicators">
index cce84690b4df04f28901a03b5362510977cf3b6f..ea5b0b13adb9283823b6ba0f09477618bc9e23f0 100644 (file)
@@ -20,7 +20,7 @@ include_js: false
     </div>
   </header>
 
-  <main role="main" class="px-3">
+  <main class="px-3">
     <h1>Cover your page.</h1>
     <p class="lead">Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.</p>
     <p class="lead">
index 6e549e6de751a8757d07b81552d0fa162a561647..adfb5a9a9d3c6dec8b193989dbb0ad7873d4ace7 100644 (file)
@@ -102,7 +102,7 @@ extra_js:
       </div>
     </nav>
 
-    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
+    <main class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
       <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
         <h1 class="h2">Dashboard</h1>
         <div class="btn-toolbar mb-2 mb-md-0">
index d6398b2576951247baea0c30f4cff13567793a1c..b9c5d7cdc131692bbde309f66f0dd649e7d5c76e 100644 (file)
@@ -86,14 +86,3 @@ body {
     color: #777;
   }
 }
-
-/* Fallback for IE
--------------------------------------------------- */
-@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
-  .form-label-group > label {
-    display: none;
-  }
-  .form-label-group input:-ms-input-placeholder {
-    color: #777;
-  }
-}
index 3822356456bc1579eb6602b3109c46f03641cff8..d6404f29323ac366fc444baf86a56ee075967a72 100644 (file)
@@ -31,7 +31,7 @@ extra_css:
   </div>
 </nav>
 
-<main role="main" class="container">
+<main class="container">
   <div class="bg-light p-5 rounded">
     <h1>Navbar example</h1>
     <p class="lead">This example is a quick exercise to illustrate how fixed to top navbar works. As you scroll, it will remain fixed to the top of your browser’s viewport.</p>
index 4043587f78cf80b02e843249a9a6d910334e23b3..0b6c4d273d8ebd11f32b94ff863220f52eed1d58 100644 (file)
@@ -31,7 +31,7 @@ extra_css:
   </div>
 </nav>
 
-<main role="main" class="container">
+<main class="container">
   <div class="bg-light p-5 rounded">
     <h1>Navbar example</h1>
     <p class="lead">This example is a quick exercise to illustrate how the top-aligned navbar works. As you scroll, this navbar remains in its original position and moves with the rest of the page.</p>
index ad2649cc3469f810c34ca474db96f44e18dcb785..47c23aa793c854fb65a7e810afe6f24a3173c2be 100644 (file)
@@ -365,7 +365,7 @@ extra_css:
     </div>
   </nav>
 
-  <main role="main">
+  <main>
     <div class="bg-light p-5 rounded">
       <div class="col-sm-8 mx-auto">
         <h1>Navbar examples</h1>
index bb26ffc581033f940185f9be9029127e3e78cca1..4a8501e3a02241daf973297f881e20760549d9ae 100644 (file)
@@ -63,7 +63,7 @@ body_class: "bg-light"
   </nav>
 </div>
 
-<main role="main" class="container">
+<main class="container">
   <div class="d-flex align-items-center p-3 my-3 text-white-50 bg-purple rounded shadow-sm">
     <img class="mr-3" src="/docs/{{< param docs_version >}}/assets/brand/bootstrap-outline.svg" alt="" width="48" height="48">
     <div class="lh-1">
index 91701691fe68db8a279bb62e4eadf6b78d08a0a6..0a6ea6291c5b023891d11ebf9a02fb75c205f4a8 100644 (file)
@@ -40,7 +40,7 @@ extra_css:
   </div>
 </nav>
 
-<main role="main" class="container">
+<main class="container">
 
   <div class="starter-template text-center py-5 px-3">
     <h1>Bootstrap starter template</h1>
index 6620c69411d82e358b6c32a26497b24f369c59ad..4203772d731418cf3b6da0c53268b492d63a2edd 100644 (file)
@@ -37,7 +37,7 @@ body_class: "d-flex flex-column h-100"
 </header>
 
 <!-- Begin page content -->
-<main role="main" class="flex-shrink-0">
+<main class="flex-shrink-0">
   <div class="container">
     <h1 class="mt-5">Sticky footer with fixed navbar</h1>
     <p class="lead">Pin a footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added with <code class="small">padding-top: 60px;</code> on the <code class="small">main &gt; .container</code>.</p>
index 3e52a62e3cdd504c9c74c818506c0588346094d4..7a6e127cd6219c1a6e496879aeda0aac75e570bd 100644 (file)
@@ -9,7 +9,7 @@ include_js: false
 ---
 
 <!-- Begin page content -->
-<main role="main" class="flex-shrink-0">
+<main class="flex-shrink-0">
   <div class="container">
     <h1 class="mt-5">Sticky footer</h1>
     <p class="lead">Pin a footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
index 30b569edf14bf1b2694e69712ba86f0e3c3a4b9e..060af37ff4f6bff9a320051d8327a86d7704ea01 100644 (file)
@@ -78,8 +78,6 @@ If you want to have `<input readonly>` elements in your form styled as plain tex
 
 ## Color
 
-Keep in mind color inputs are [not supported in IE](https://caniuse.com/#feat=input-color).
-
 {{< example >}}
 <form>
   <label for="exampleColorInput">Color picker</label>
index 0b84930cb68f87d89226dc9d6a8b97f8baa5aaa2..b6600db0ed5d8abcfac885dde2f1b8dda771c3d4 100644 (file)
@@ -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">&mdash;</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">&mdash;</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
 
index f02ea5bc7b7b64867b32dd7d371a089b4e7ab0af..3c5eecf360e0a6bf02f5321a3d4a729d509657ee 100644 (file)
@@ -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 >}}
index ad028b7923d5e7d79b11986a93e3f57ce7720007..dcaa593f104cb9fbaffacfc6ea87584d511b92c9 100644 (file)
@@ -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
 
index c44002ae97ef5d294a3346010c4f714550eff495..ef7ab0dfc3a1c0d824ee1c875ae649aaf9b0ee37 100644 (file)
@@ -26,8 +26,6 @@ Position an element at the bottom of the viewport, from edge to edge. Be sure yo
 
 Position an element at the top of the viewport, from edge to edge, but only after you scroll past it. The `.sticky-top` utility uses CSS's `position: sticky`, which isn't fully supported in all browsers.
 
-**IE11 and IE10 will render `position: sticky` as `position: relative`.** As such, we wrap the styles in a `@supports` query, limiting the stickiness to only browsers that can render it properly.
-
 {{< highlight html >}}
 <div class="sticky-top">...</div>
 {{< /highlight >}}
index 82ee25f1f69980aca3932e50292fdce6bf4082b7..cba764b3ea7e88b0ee0eed2ab096a36226442883 100644 (file)
@@ -520,7 +520,7 @@ In practice, here's how it looks. Note you can continue to use this with all oth
 
 ## Alignment
 
-Use flexbox alignment utilities to vertically and horizontally align columns. **Internet Explorer 10-11 do not support vertical alignment of flex items when the flex container has a `min-height` as shown below.** [See Flexbugs #3 for more details.](https://github.com/philipwalton/flexbugs#flexbug-3)
+Use flexbox alignment utilities to vertically and horizontally align columns.
 
 ### Vertical alignment
 
index 91d4bf20cccd553bc813c99bbef684bf9c5397cc..7c0541c00bdc32b177e14b2c8beab14af970b34b 100644 (file)
@@ -11,7 +11,7 @@ toc: true
 
 See the browser and devices page for details on what is currently supported in Bootstrap 5. Since v4, here's what's changed to our browser support:
 
-- Dropped support for Internet Explorer NN
+- Dropped support for Internet Explorer 10 and 11
 - Dropped support for Firefox NN - MM
 - Dropped support for Safari NN
 - Dropped support for iOS Safari NN
index 9ce4f27c5dc8c8f10589ac8df9e82dc59bca7fb0..58043a47aa36020005305a240a022b03d9e44a51 100644 (file)
@@ -296,8 +296,6 @@ Responsive variations also exist for `flex-grow` and `flex-shrink`.
 
 Flexbox can do some pretty awesome things when you mix flex alignments with auto margins. Shown below are three examples of controlling flex items via auto margins: default (no auto margin), pushing two items to the right (`.mr-auto`), and pushing two items to the left (`.ml-auto`).
 
-**Unfortunately, IE10 and IE11 do not properly support auto margins on flex items whose parent has a non-default `justify-content` value.** [See this StackOverflow answer](https://stackoverflow.com/a/37535548) for more details.
-
 {{< example >}}
 <div class="d-flex bd-highlight mb-3">
   <div class="p-2 bd-highlight">Flex item</div>
index fc0890087a9a2ecb94b633f58428d8ae6ad0b59c..744865cd4f63f06f76a60fb8b10a6f7bc0adb49e 100644 (file)
@@ -8,7 +8,7 @@
 
     {{ partial "docs-navbar" . }}
 
-    <main class="my-auto p-5" id="content" role="main">
+    <main class="my-auto p-5" id="content">
       {{ .Content }}
     </main>
 
index c47c0af7f72b680c4f130f375bf2901a311d4486..b1efb6b132bdd67f1116782776cf43d506657d32 100644 (file)
@@ -15,7 +15,7 @@
           {{ partial "docs-sidebar" . }}
         </div>
 
-        <main class="col-md-9 py-md-3 pl-md-5 bd-content" role="main">
+        <main class="col-md-9 py-md-3 pl-md-5 bd-content">
           <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
           <p class="bd-lead">{{ .Page.Params.Description | markdownify }}</p>
           {{ partial "ads" . }}
index 09631ac19e914918c08e0751d9855e89a678b159..02972c3dda024db8bdf2c33a25676cfbaefa7944 100644 (file)
@@ -19,7 +19,7 @@
       </div>
     </header>
 
-    <main class="bd-content py-5" id="content" role="main">
+    <main class="bd-content py-5" id="content">
       <div class="container">
         {{ .Content }}
       </div>
index 7c76995ed3a10b0b49971cff1128732ab33e8591..b6e140e9c8235c6caf1a327c63388a3c5a2dc9ad 100644 (file)
@@ -1,3 +1,3 @@
 ##### Date & color input support
 
-Keep in mind date inputs are [not fully supported](https://caniuse.com/#feat=input-datetime) by IE and Safari. Color inputs also [lack support](https://caniuse.com/#feat=input-color) on IE.
+Keep in mind date inputs are [not fully supported](https://caniuse.com/#feat=input-datetime) by all browsers, namely Safari.
index 0cc05723fe39a3c3aa2242689c17711e76fced72..42897a720d89c3c87fd6d43dbe2b5c9a498a3bf1 100644 (file)
@@ -1,4 +1,4 @@
-<main class="bd-masthead mb-3 mb-md-5 border-bottom" id="content" role="main">
+<main class="bd-masthead mb-3 mb-md-5 border-bottom" id="content">
   <div class="container">
     <div class="row">
       <div class="col-6 mx-auto col-md-4 order-md-2 col-lg-5">