microsoft-edge

Add “proposal-object-rest-spread” plugin to babel.config.js to fix Microsoft Edge error SCRIPT1028

北城余情 提交于 2019-12-24 00:48:34
问题 I need to add this Babel plugin to babel.config.js to get rid of the Microsoft Edge Browser error SCRIPT1028: Expected identifier, string or number I installed the latest packages and added them to package.json. Below is what I tried but it doesn't transform the code after running npm run build : babel.config.js require("@babel/core").transform("code", {}); module.exports = { presets: ["@vue/app"], plugins: ["@babel/plugin-proposal-object-rest-spread"] }; package.json { "name": "example",

Windows Phone: Missing blur event in IE or Edge when back button pressed

旧城冷巷雨未停 提交于 2019-12-23 22:15:24
问题 The following scenarios are relevant to Windows Phone devices (IE or Edge). Scenario 1: If an input element has the focus and the soft keyboard is up, pressing the hardware back key blurs the focused element and pops down the keyboard as it should. However, there is no corresponding blur event fired. Scenario 2: If an input element has the focus and the soft keyboard is up, tapping outside the input element blurs the focused element, pops down the keyboard and fires a blur event. Question: Is

Range and Caret position doesn't match

我的梦境 提交于 2019-12-23 20:12:38
问题 I noticed this problem in MS Edge, the caret position and range doesn't match up or wrong inside a content editable. $("#c").click(function(e) { var sel = window.getSelection(); var range = sel.getRangeAt(0); $("#res").get(0).textContent = "START_OFFSET:" + range.startOffset + "->" + range.startContainer.innerHTML; console.log("Range count: " + sel.rangeCount); }); <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> </head> <body> <div id="c"

Javascript in Edge only works with devtools open

断了今生、忘了曾经 提交于 2019-12-23 12:39:37
问题 The problem I have is that in MS edge, my imagemap functionality's only work partially. It is powered by the knockout FW. On bigger imagemaps, it doesn't registers the entire imagemap into the viewmodel. As a result all the hover effects and the on-click styling for the imagemap stops working. However this is only issue with big imagemaps, also noteworthy is that the part that is registered does have the on-click function triggered (just not the styling). The most remarkable problem with this

Public Key Encryption in Microsoft Edge

為{幸葍}努か 提交于 2019-12-23 10:59:22
问题 I have the following JavaScript code to implement public key encryption using the Web Cryptography API. It works for Firefox and Chrome but fails for Microsoft Edge. The error I am getting from Edge is "Could not complete the operation due to error 80700011." What have I missed? <script> var data = new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); var crypto = window.crypto || window.msCrypto; var cryptoSubtle = crypto.subtle; cryptoSubtle.generateKey( { name: "RSA-OAEP", modulusLength: 2048,

Getting Microsoft 10 Edge browser Mime Types php

耗尽温柔 提交于 2019-12-23 10:10:03
问题 When checking the file mime types of files being uploaded in Microsoft 10's Edge browser, I get this Mime Type for .doc files: application/octet-stream Apparently this indicates "arbitrary binary data": Do I need Content-Type: application/octet-stream for file download? On other browsers I get application/msword Is there a new way mime types are handled for .doc files for the Edge browser, and maybe other mime types I need to be aware of? Update: I was grabbing the mime type using php's $

Shadow DOM v1 CSS polyfill

被刻印的时光 ゝ 提交于 2019-12-23 10:07:09
问题 https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom This got me all excited I could write my own custom webpage from scratch without polymer. Only to find out css :host for example is not working in Edge and FireFox. I can deal without html import for now until w3c figured out what they want to do with es6 modules, but each browser having their own half implemented Shadow DOM version without css is pushing my buttons. So I still need a full polymer stack to have

Angular animation not working in IE edge

我怕爱的太早我们不能终老 提交于 2019-12-23 07:07:47
问题 I added an animation to my component in Angular. However the animation WORKS FINE in Chrome and Firefox, but in IE Edge the animation is NOT triggerd although the styles are applied correctly on state change, but just without specified animation. Does anyone have the same issue? Here is my code: animations: [ trigger('rowState', [ state('collapsed', style({ 'height': 0, 'overflow-y': 'hidden' })), state('expanded', style({ 'height': '*', 'overflow-y': 'hidden' })), transition('collapsed <=>

Open a PDF from Edge without opening redundant blank tabs

穿精又带淫゛_ 提交于 2019-12-23 04:50:15
问题 The page I'm working on lists documents. Each document is a clickable link. Clicking opens a PDF (which typically opens in a different tab, or even a different application, depending on the user's settings), then reloads the original tab so that an "unread" count on the page is updated and the link style is changed to indicate "read". HTML span surrounding the document details: <span class='btn-link' onclick='openReport(@orderNumber, @tableBodyId); return false;'> Javascript: function

How to remove Microsoft Edge's cache using PHP or Javascript?

China☆狼群 提交于 2019-12-22 18:45:54
问题 I've currently started on a project including AJAX, and I ran into a problem. When using Microsoft Edge (and Internet Explorer) it won't update data, unless I close the entire page and open it again, or if I open my PHP file, from which I send data through AJAX. Does anyone no how to solve this issue using PHP and/or Javascript? Thanks in advance 回答1: A "quick fix" would be to use the cache: false option of the $.ajax method, but this really isn't the right way to solve this problem if you