internet-explorer-11

IE supports forEach(…) when invoked fromthe console but not when called from the code

旧时模样 提交于 2019-12-01 02:20:47
问题 I'm running this snippet the console. In IE it produces the output just as expected. Running the same in Cr and FF for reference confirms the congruence of behavior. ["a", "b"].forEach(function(element) { console.log(element); }); However, when running the following script, I'm getting errors telling me that the object hasn't forEach(...) declared on it. The issue occurs in IE but not in Cr nor FF. var menus = document.querySelectorAll("ul.application>li>a"); menus.forEach(function(element) {

Adding a function to Array.prototype in IE results in it being pushed in to every array as an element

落爺英雄遲暮 提交于 2019-12-01 01:22:41
问题 I have added the following polyfill to Array in the beginning of my project: if (!Array.prototype.find) { Array.prototype.find = function(predicate) { if (this === null) { throw new TypeError('Array.prototype.find called on null or undefined'); } if (typeof predicate !== 'function') { throw new TypeError('predicate must be a function'); } var list = Object(this); var length = list.length >>> 0; var thisArg = arguments[1]; var value; for (var i = 0; i < length; i++) { value = list[i]; if

IE cannot scroll while in fullscreen mode

 ̄綄美尐妖づ 提交于 2019-12-01 01:16:36
I have just found out that IE 11 cannot scroll when it is put into fullscreen mode by Fullscreen API. if (element.msRequestFullscreen) { element.msRequestFullscreen(); } Fullscreen API and scrolling works fine in Chrome and Firefox. When IE 11 is put into fullscreen mode by pressing F11 it works fine. I have tried to find documentation about this, but without luck. Has anyone else encountered this problem? Or knows what I might be doing wrong? if you want the entire page fullscreen the solution is to send "document.body" for IE11 and "document.documentElement" for Chrome and Firefox. function

Saving file on IE11 with FileSaver

点点圈 提交于 2019-11-30 22:44:16
I'm using FileSaver library ( https://github.com/eligrey/FileSaver.js ) and does not work on IE11, with other browsers I had no problem. The code is this: var file = new File(["content"], "sample.xml", { type: "application/xml;charset=utf-8" }); saveAs(file); I'm getting this error when the first instruction (new) executes: "the object does not accept this action" There's an open issue on git hub, but actually with no solution, I'm looking for a workaround that should work on IE11, like this: try { var file = new File([msg.d], "test.xml", { type: "application/xml;charset=utf-8" }); saveAs(file

Javascript: error 800a025e using range selector

谁说我不能喝 提交于 2019-11-30 22:09:05
问题 I'm executing these simple rows of javascript in latest ie 11, just to select all content of a div Here a screenshot from ie11 dev tool Like you can see, IE alter me saying: "unable to complete the operation due to error 800a025e". I'm not able to understand the nature, the source, of the problem, and no others stack overflow questions I read give me a clear answer. This is full code of my selectText jQuery "personal" extension jQuery.fn.selectText = function(){ var doc = document; var

Internet Explorer 11- issue with security certificate error prompt

岁酱吖の 提交于 2019-11-30 21:01:15
I am testing a website in IE11. It has mixed content (http and https). In previous versions, there is a prompt which asks which we should allow the content with security certificate error. However no such prompt is displayed in IE11 and the site breaks. I tried changing the security settings in Advanced Options but it was of no use. Pls advice.. This behavior is related to Zone that is set - Internet/Intranet/etc and corresponding Security Level You can change this by setting less secure Security Level ( not recommended ) or by customizing Display Mixed Content property You can do that by

IE 11 browser recognizes itself as Mozilla [duplicate]

ε祈祈猫儿з 提交于 2019-11-30 20:14:10
This question already has an answer here: Get browser name by jquery 3 answers I am working on MVC application, .net 4.5 framework, VS 2010. I have a piece of Javascript code that identifies which browser the application is running. If the browser is Firefox then a particular block of code will be executed if not another block code will get executed. With IE 11 I am having a weird problem. The browser (ie 11) recognizes itself as Mozilla. javascrip code : if ($.browser.mozilla) { if (location.pathname == "/Stats/Reports") { // This is for local env. $("#prntCss").attr("href", "../../../Content

Preserve 3d not working on ie11

谁说我不能喝 提交于 2019-11-30 19:48:13
问题 I'm trying to implement a flip on an image but its preserve 3d (or probably backface-visibility) is not working on ie11. This solution didn't work for me: -webkit-transform-style: preserve-3d not working Here is a pen for you to try stuff and also a fiddle: http://codepen.io/vandervals/pen/XbedKY?editors=110 .container { -ms-perspective: 1500px; perspective: 1500px; } .canvas { position: relative; width: 300px; -ms-transform-origin: 50% 50%; transform-origin: 50% 50% 0; transition: transform

Viewport for IE10 & 11 desktop, but not mobile

夙愿已清 提交于 2019-11-30 19:45:55
I build a lot of responsive sites. I'd like to support IE10 and IE11's snap modes, but I can't do it fully without breaking support for Windows Phone 8. This is the code I'm currently using, in my CSS: @media screen and (max-width:400px) { @-ms-viewport{ width: device-width; } } It works alright, but if IE10/11 isn't snapped to the smallest position possible, the site displays as zoomed out. If I get rid of the media query, it displays correctly in IE10/11 on desktops and tablets, but it displays as the desktop site in IE10 mobile on Windows Phone 8. Is there a way around this, or am I stuck

IE 11 error - Access is denied - XMLHttpRequest

梦想的初衷 提交于 2019-11-30 19:24:31
I'm having a peculiar error with IE11 and ajax. For nearly all the requests I make using the code below, everything is fine, yet when I try use in conjunction with a copy+paste method, it returns an Access is denied error. So to summarise This code works normally in most browsers for all functions I have written In IE 11 + Windows 8.1, it works in most cases, except when running a particular copy and paste function Interestingly, when using IE 11, but with a different Document mode such as 8, I still get the same error, even though it works natively in IE8 + Windows 7 The error is 'Access is