internet-explorer-11

How can I target only Internet Explorer 11 with JavaScript?

痴心易碎 提交于 2019-12-17 04:26:30
问题 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's feature detection. 回答1: The User-agent string for IE 11 is currently this one : Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko Windows 10 example: Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0) like Gecko Which means your can simply test, for versions 11.xx, var isIE11 =

How can I target only Internet Explorer 11 with JavaScript?

时间秒杀一切 提交于 2019-12-17 04:26:29
问题 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's feature detection. 回答1: The User-agent string for IE 11 is currently this one : Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko Windows 10 example: Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0) like Gecko Which means your can simply test, for versions 11.xx, var isIE11 =

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

狂风中的少年 提交于 2019-12-17 03:27:50
问题 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 normal comments. So any referenced file inside the conditional comment is not requested/loaded by the browser. Why does this happen? Is it a bug? If you think that this is indeed a bug that needs to be fixed, please go in and say that you too can reproduce this on the Microsoft bug report that is reported

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

做~自己de王妃 提交于 2019-12-17 03:27:00
问题 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 normal comments. So any referenced file inside the conditional comment is not requested/loaded by the browser. Why does this happen? Is it a bug? If you think that this is indeed a bug that needs to be fixed, please go in and say that you too can reproduce this on the Microsoft bug report that is reported

ToLocaleDateString() changes in IE11

风流意气都作罢 提交于 2019-12-16 21:28:38
问题 In IE 11, I'm getting funny results with ToLocaleDateString(). The string returned looks fine in the browser, e.g. "1/28/2014 11:00:46 AM", but then if I copy and paste that value into a plain text editor, it looks like this: "?1?/?28?/?2014 ?11?:?00?:?46? ?AM". Interestingly, if I paste the text into a Microsoft product, it looks fine... The issue is that if you try to use the value programmatically to create a date, it's invalid. You can test this by just opening up a console in IE11 and

How to detect IE11?

只谈情不闲聊 提交于 2019-12-16 20:02:53
问题 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; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); } return rv; } function checkVersion() { var msg = "You're not using Internet Explorer."; var ver = getInternetExplorerVersion(); if ( ver > -1 ) { msg = "You are using IE " + ver; } alert( msg ); } But IE11

Angular 2+: Multiple definitions of a property not allowed in strict mode in IE11

懵懂的女人 提交于 2019-12-14 03:48:27
问题 I have my pollyfills in and I'm getting this error from Internet Explorer 11 in my main.bundle.js. It's on line 9692, but looking at the compiled code, I'm not able to make any sense of it. Here it is: styles: ["\nng-select-custom >>> .caret {\n /* display: none; */\n}\nng-select-custom >>> .ui-select-match-text {\n white-space: normal;\n line-height: 21px;\n}\nng-select-custom >>> .ui-select-toggle {\n overflow: hidden;\n}\n"] Is this a common issue for Angular 2+? I'm not seeing any posts

angular 5 application is working on edge but failing on ie11

回眸只為那壹抹淺笑 提交于 2019-12-14 02:29:57
问题 My angular 5 application which is running on angular cli is not working on ie11. What makes me wonder is the application is fine on edge. I have my ployfills set for both ie and edge. On ie11 application is throwing 'ERROR TypeError: Object doesn't support property or method' errors. Please look at my ployfills.ts, tsConfig and angular-cli and let me know what is missing. I tried commenting web-animations polyfills but no luck. polyfill.ts /** * This file includes polyfills needed by Angular

Css transition not working

末鹿安然 提交于 2019-12-14 02:25:04
问题 I have a scenario where on button click transition should happen. These are the transitions which were applied. In chrome browser it is working good, but in IE11 when tried the transitions aren't getting applied. I have applied CSS like below: div{ width:100px; height:100px; background:red; transition-property: right, left; transition-duration: 2s; -webkit-transition-property: right, left; /* Safari */ -webkit-transition-duration: 2s; /* Safari */ -ms-transition-property: right, left; /*

css zoom not working in ie11

倖福魔咒の 提交于 2019-12-14 00:25:06
问题 I'm building an app using angular . It is supposed to run on tablets and touch-enabled devices. I want to give the user the ability to zoom/scale up the app , for those with bad eyesight and clumsy fingers. To do this I'm using this script, which is executed when the user clicks a zoom-button : Here is the code <!--code start --> $scope.zoomLevel+= 0.1; $('body').css({ zoom: $scope.zoomLevel }); This works perfectly in chrome, but does nothing at all in IE11 . I'm using twitter bootstrap,