Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

100 votes
18 answers
109k views

Detecting IE version using CSS Capability/Feature Detection

IE10+ no longer supports browser detection tags to identify a browser. For detecting IE10 I am using JavaScript and a capability-testing technique to detect certain ms prefixed styles are defined such ...
dano's user avatar
  • 5,630
198 votes
13 answers
124k views

Text in a flex container doesn't wrap in IE11

Consider the following snippet: .parent { display: flex; flex-direction: column; width: 400px; border: 1px solid red; align-items: center; } .child { border: 1px solid blue; }...
Misha Moroshko's user avatar
217 votes
16 answers
233k views

How to detect IE11?

When I want to detect IE I use this code: function getInternetExplorerVersion() { var rv = -1; if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; ...
user avatar
98 votes
5 answers
131k views

IE11 Document mode defaults to IE7. How to reset?

My Internet Explorer 11 on my Windows 8.1 Surface tablet defaults to document mode 7, causing a lot of websites to render wrongly. When I open the Developer tools, it states that it defaults to ...
jim's user avatar
  • 1,143
151 votes
12 answers
200k views

Internet Explorer 11 detection

I know IE 11 has different user agent string than all other IE Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko I have tried to detect IE 11 with answer specified for this question' ...
Miqdad Ali's user avatar
  • 6,137
38 votes
6 answers
95k views

VBScript support in Internet Explorer 11

I tried the following HTML page with two scripts: <html> … <body> <script type="text/javascript"> alert ('Javascript'); </script> <script type="text/...
Ensayo's user avatar
  • 389
110 votes
8 answers
42k views

Why doesn't Internet Explorer 11 honour conditional comments even when emulating Internet Explorer 8 document mode?

I'm using the new Internet Explorer 11 developer tools to switch the document mode to "8", but conditional comments are still ignored, that is, they are not properly parsed and behave like ...
thasmo's user avatar
  • 9,638
85 votes
2 answers
172k views

How to support promises in Internet Explorer 11?

I have a simple code that runs perfectly on every browser except for the Internet Explorer 11. How can I make it work on all browsers? Codepen 'use strict'; let promise = new Promise((resolve, reject)...
Billy Logan's user avatar
  • 2,500
103 votes
10 answers
164k views

Internet Explorer 11 disable "display intranet sites in compatibility view" via meta tag not working

I have been working on an intranet website for over 6 months were I have been using the below html5 doctype and edge compatibility meta tag to force Internet Explorer to not emulate an older browser ...
Pricey's user avatar
  • 5,879
60 votes
7 answers
86k views

How can I target only Internet Explorer 11 with JavaScript?

What's the least error-prone way to target just IE11 with JavaScript? Note: This should really only be done for analytics or informing the user what browser they're using. For everything else, there'...
dave1010's user avatar
  • 15.3k
35 votes
2 answers
45k views

Template literals syntax is not working in IE11

The back-tick character is not recognized as a Valid Character in IE11 when using the "use strict" directive while it works in other browsers, such as Chrome. What is the interpretation of this ...
usefulBee's user avatar
  • 9,568
77 votes
1 answer
127k views

Support for ES6 in Internet Explorer 11

According to this page http://kangax.github.io/compat-table/es6/, ES6 features are not implemented in IE 11. Does IE 11 have a plan for implementing them one day or can I forget about it? Is there a ...
ling's user avatar
  • 9,863
24 votes
9 answers
46k views

'WebForm_DoPostBackWithOptions' is undefined in IE11 Preview

IE11 is coming. I just installed the developer preview version. However, if I run some of my web application and I got the error WebForm_DoPostBackWithOptions is undefined. The error popped up when I ...
user2376512's user avatar
66 votes
8 answers
204k views

How to set IE11 Document mode to edge as default?

I have Internet Explorer installed on my computer but needed to test compatibility mode of IE 7. After changing the document mode to IE 7, it set it as default and now I can't change it. The default ...
Pomster's user avatar
  • 15k
45 votes
1 answer
58k views

Flex auto margin not working in IE10/11

I have a complex layout where I center various elements vertically and horizontally with flexbox. The last element then has margin-right:auto; applied to push the elements left (and negate centering ...
Michael's user avatar
  • 1,762

15 30 50 per page
1
2 3 4 5
12