internet-explorer-11

Debugging JavaScript in IE11

非 Y 不嫁゛ 提交于 2019-12-24 02:04:06
问题 The F12 tools look good, and I see controls for most of what I would like to use (Continue, Step In, Step Out). But the HTML app I want to debug runs before I can start the F12 tools. What I need is a Restart button, it would seem to me. Am I missing seeing this, or am I out of luck? By the way, I see the same problem in Chrome. 回答1: Open your Page. Press F12 to display the tools. Switch to the debugging tab. Add your breakpoints. Refresh by pressing F5 or Ctrl+F5 or Ctrl+R . 来源: https:/

Custom checkboxes don't display correctly on IE11 and Firefox

好久不见. 提交于 2019-12-24 01:01:30
问题 I made these custom checkboxes, they are green when they are checked and gray when they aren't : input[type=checkbox]{ width: 20px; height: 20px; margin: 0 3px; display: inline-block; position: relative; } input[type=checkbox]:checked:before{ background-color: #219741; display: inline-block; width: 100%; height: 100%; border: 0; } input[type=checkbox]:checked:after{ content: ""; } input[type=checkbox]:not(:checked):before{ background-color: #ddd; display: inline-block; width: 100%; height:

CSS Position Unset in IE11

为君一笑 提交于 2019-12-23 22:52:51
问题 I have a megamenu that is absolutely positioned, and as some of its parent elements need to have position:relative , I have to use position:unset on the direct parent. This works in Chrome and Firefox, however IE11 does not support unset or initial . I can't simply remove the relative positioning from all of the parent elements as that will break other things, but I have to have the megamenu absolutely positioned relative to the page (fixed position does not work). Is there an alternative to

Trying to draw SVG to canvas, why is my SVG XML getting truncated?

那年仲夏 提交于 2019-12-23 16:15:11
问题 All I really want to do is place my fancy dynamically created SVGs into a PDF, currently via jsPDF. addSVG doesn't work so I'm trying to convert them to PNG in order to try addImage instead. This is in IE11 (client requirement). If I do: var lsvg = d3.select("#nowhere2").node().parentNode.innerHTML; console.log(lsvg); Maybe a third of the SVG shows up in the console. Odder, it truncates right in the middle of things so no ending tags or whatever: <div id="nowhere2"><svg xmlns="http://www.w3

Why don't Base64 Embedded fonts work in IE11 if “font download” property is disabled?

对着背影说爱祢 提交于 2019-12-23 12:31:45
问题 So at face value, this makes sense -- if IE disables "font download," it shouldn't download, fine, I accept that. HOWEVER -- what about using base64 fonts? These are embedded directly in CSS / do not reference a physical file, therefore no font should need to be downloaded, right? At first I thought that maybe IE11 didn't like/support base64, but I can verify that it does work there when I use only a base64 font option. I wasn't able to find any specs on this, or much info on the breadth of

Appending element is not working in IE11

99封情书 提交于 2019-12-23 11:34:07
问题 In constructor I create an element var this.legendElement = this.compileLegend(); and than later I want to use it in event listener: var takeControl = function() { this.element.empty(); this.legendElement.appendTo(this.element); } legendElement is appended, but it is empty ! I don't understant why. In other browsers (tested firefox, chrome) it is working . Also when I print content of this.legendElement I see html code as expected. In other words console.log(this.legendElement); produces

detect IE11 without JavaScript in HTML/CSS [duplicate]

帅比萌擦擦* 提交于 2019-12-23 09:32:19
问题 This question already has answers here : How to write a CSS hack for IE 11? [duplicate] (8 answers) Closed 4 years ago . I have been using the following trick to make browser-specific HTML: <!--[if (IE)]> <div class= "ie"> <![endif]--> <!--[if !(IE)]><!--> <div class= "not_ie"> <!--<![endif]--> </div> This does not work with IE11. Any new tricks to use? I can detect it using JavaScript: Detecting IE11 using CSS Capability/Feature Detection or Object.hasOwnProperty.call(window, "ActiveXObject"

Download file in IE11 get error “'Uint8Array' is undefined”

六眼飞鱼酱① 提交于 2019-12-23 09:19:58
问题 I am creating a application in which I am downloading a file. For this I get response from java class in js and download this response.For this my java code is - @ApiOperation(value = "", notes = "") @Path("/getProjectJSONTODRAW/{implementation}") @GET @Timed public Response getProjectJSONTODRAW(@PathParam("implementation") String implementation) { File file = new File(path+File.separator+fileName); InputStream inputStream =null; String mimeType =null; if (!file.exists()) { String

Why does IE11 send 'pragma: no-cache' in request header for ajax requests?

拈花ヽ惹草 提交于 2019-12-23 09:13:50
问题 I am testing my web page on IE11. I am making some ajax calls and setting response headers as Cache-Control: private, max-age=21600; Though everytime making a request, IE11 sets Pragma:no-cache request header. Causing request to get served from origin, though it should have been present in cache.\ Why does IE do that? Is there any way in IE to ignore this header? Thanks. 回答1: I have tracked this down using Fiddler. It's a red herring . IE11 only sends the praga:no-cache header when the

Weird rendering behavior on IE11 + Angular 1.5.11

此生再无相见时 提交于 2019-12-23 08:55:01
问题 We're currently developing an application in Angular version 1.5.11. It has become quite big now (hundreds of controllers etc.), and we stumbled upon an issue in Internet Explorer 11: After some time (sometimes few minutes, sometimes few hours) the page starts to have rendering glitches - the letters are fading/disappearing/changing color. It also affects other tabs opened in the same window (screenshot from the Excel Online having the same issue). Also, there are no errors in console. Did