internet-explorer-11

ES6 Proxy Polyfill for IE11

这一生的挚爱 提交于 2019-12-30 01:36:38
问题 IE11 does not and will not implement ES2015 Proxy objects. Yet IE11's end of extended support is October 14, 2025. Is there any way to polyfill Proxy objects for IE11? All other browsers support Proxy already. If yes then we would all be able to use it in production today. If not then we'll have to wait almost a decade... Edit: I'm asking specifically for IE11 as I know IE to usually have IE specific features that I'm often not aware of. Edit2: I'm particularly interested in being able to

Can you detect “Tablet Mode” in Edge and IE11 using JavaScript on Windows 10?

让人想犯罪 __ 提交于 2019-12-29 00:39:14
问题 I am thinking of making my UI to dynamically change to a more touch-friendly layout when the user switches "Tablet Mode" on, and switch back to our "desktop" layout if they turn Tablet Mode off. That requires (1) detecting tablet mode in JavaScript (2) detecting the on/off change of tablet mode. I prefer pure JavaScript and DOM (not jQuery, Modernizr etc). Reason: We have a high density (desktop like) user interface, which we can't easily just change. I wish to add spacing to be more touch

IE11 clipping text

做~自己de王妃 提交于 2019-12-25 12:54:07
问题 On IE11 only, text clips on certain pages, the text is contained within a <section> with CSS like so. Note that this works in IE10 and below, Chrome and FF, it is only IE11 that has this issue. #rightpanel section { margin: 0 auto; max-width: 900px; } If you look at this photo, the text should run right to the edge of the blue box. Note that this highlighting is applied with the IE11 DOM highlighter. 回答1: This is often caused by a syntax error in CSS. For example see here: IE 11 clipping text

I get the error SCRIPT1003: Expected ':' in IE 11; (Java Script Code error)

℡╲_俬逩灬. 提交于 2019-12-25 11:51:30
问题 This particular snippet of JS code does not work on IE 11. I get the error SCRIPT1003: Expected ':' and it says it is missing on line that it's in bold. var $actions = application.service('$actions', [ function() { let _logout = function() { $('#logoutForm').submit(); } return { **Logout() {** _logout(); }, }; }]); Any ideas? Thank you 回答1: IE11 does not support shorthand method names. See the compatability part of the MDN. Use return { Logout: function() { _logout(); } }; (or stop supporting

I get the error SCRIPT1003: Expected ':' in IE 11; (Java Script Code error)

﹥>﹥吖頭↗ 提交于 2019-12-25 11:50:12
问题 This particular snippet of JS code does not work on IE 11. I get the error SCRIPT1003: Expected ':' and it says it is missing on line that it's in bold. var $actions = application.service('$actions', [ function() { let _logout = function() { $('#logoutForm').submit(); } return { **Logout() {** _logout(); }, }; }]); Any ideas? Thank you 回答1: IE11 does not support shorthand method names. See the compatability part of the MDN. Use return { Logout: function() { _logout(); } }; (or stop supporting

vbscript - Bring Internet Explorer Application window to front

浪尽此生 提交于 2019-12-25 09:10:14
问题 I have a script where I create an IE window through CreateObject("InternetExplorer.Application") . The problem is, whenever I run this script, it always opens behind whatever else might already be open on my machine. I want this IE window to open on TOP of everything else. It does not have to be "always on top", like the option in Task Manager, but it should at least initially open on top. After that, I don't care what happens. I have searched high and low and have been unable to find a way

Application opening in IE7 mode by default on IE11

僤鯓⒐⒋嵵緔 提交于 2019-12-25 06:58:25
问题 When I am opening my application deployed on server, the IE mode is getting set to default IE7 (I checked in developer tools). I need when I open, it should open as IE edge mode. This issue is not browser specific but code specific as all other apps are working fine as IE11 mode. I am also setting the compatibility mode: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> Do I need to make any other

Change IE COM object UserAgent

 ̄綄美尐妖づ 提交于 2019-12-25 04:09:08
问题 Regarding this thread, I need to change the UserAgent programatically (from a C# code) of a IE11 instance. I use automation (COM Internet Explorer Object): SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer() As IE instances do not run in-process, using urlmon´s "UrlMkSetSessionOption" does not change UA used by iexplore.exe On the other side, add-on of EricLawrence does not allow to set programatically the new UA. Any solution? 回答1: Eric has been very polite and he has showed me that

Setting Cookie for all browser tabs

最后都变了- 提交于 2019-12-25 04:00:40
问题 I want to set a cookie using javascript, which would be available for all the tabs in browser. I have used document.cookie = "tracker=ABC" Even I have tried to set the path also, but result remained same document.cookie = "tracker=ABC;path=/" However, this seems applicable only to the tab where it was set. This cookie is not visible to other tabs in the browser.. Also, I am not very clear with the path concept in cookies. Would be great if someone can tell me about it's use as a secondary

Which is the compatible version of IEDriverServer for IE11 and Selenium 3.13?

喜欢而已 提交于 2019-12-25 03:37:21
问题 I am automating tests with IE11 and Selenium 3.13 and I was testing different version of IEDriverServer but every version has a bug. I want a stable version to combine IEDriverServer with IE11 and Selenium 3.13 I'm using this code to launch the application: private static WebDriver setRemoteDriver(Map<String, Object> selConfig) { String browser = System.getProperty("browser", selConfig.get("browser").toString()); capabilities = new DesiredCapabilities(); capabilities.setJavascriptEnabled(true