-
Notifications
You must be signed in to change notification settings - Fork 27.5k
AngularJs (all versions) breaks on IE11 in document mode ie=8 #4137
Comments
Would this be related to #4119? |
When I tried this in IE10, it initially told me that the website was trying to run an ActiveX control. When I clicked allow then it all worked fine. |
Thank you for your response. In IE10 I got the same behaviour. But IE11 doesn't work at all. |
OK, so the problem is that in angular.forEach: https://github.com/angular/angular.js/blob/master/src/Angular.js#L140 |
Thank you for your answer! Instead of I didn't find this change in your fix #3331? |
Hmm, yes, the trouble is that |
The error is within the angularInit function, which is using foreach to iterate over the list of dom elements returned from element.querySelectorAll() Also, the consoleLog needs to check for typeof logFn === "function". IE8 throws an error on the check for console.log.apply, and IE7-8 returns typeof "object" for methods on the console object. |
I had the same issue but was solved when I used ngularJS v1.2.14. |
I tried this with 1.2.14 and 1.3.0 in IE with and without setting X-UA-Compatible. |
Same issue here. 1.2.0, with X-UA-Compatible we get the error mentioned. Without X-UA-Compatible it does not render the page and we get no console logs. |
Perhaps you might like to put together a PR with the fix suggested in #4137 (comment) ? |
just add below tag inside your head, it works like charm. IE=11 is the version of IE.
|
This worked for me and saved my deadline! Additionally, IE11 refused to fetch libraries that it didn't "trust" such as
So i just copied them local. Off to the races! Thanks Mr. Irony! |
Also running into this problem myself. |
Instead of obj.hasOwnProperty(key) |
Hello, |
@mohitqservice This is for AngularJS (Angular1) |
@petebacondarwin I am facing an issue with 'data-content' attribute ONLY in IE(just tried IE11). |
@CoolSuplex - you problem does not seem related to this issue. Please open a new issue with a full reproduction of the problem if you feel it is a bug in AngularJS. |
In an Angular app, how do I put ps: I am learning to code. Thank you. |
Hi, you should put the meta tag in the main html file inside the head tag |
I am using angular cli/angular 5 in my app and it run in IE browser but there are some css/bootstrap that are not following with, like my navbar, some colors that described as default color for buttons: var(); etc. They are not showing. Anyone has solution for this? |
Hi, |
The only fix that I found is to update tsconfig.json file. Change to "target": "es3" from whatever you have in your tsconfig.json. |
Hello,
due to restrictions with legacy applications, my angularjs app is loaded in an iframe. The surrounding website has the document mode ie=8.
<meta http-equiv="X-UA-Compatible" content="IE=8" />
So every website that is loaded within the iframe is also rendered in the ie8 documentmode.
Unfortunately Angular Js doesn't work in Internet Explorer 11 with the document mode ie=8 as described above.
I made a very simple example (see below) where this problem also occurs. It's based on an example of angularjs.org.
If you change the document mode e. g. to
<meta http-equiv="X-UA-Compatible" content="IE=9" />
the example works.This problem seams to appear in all angularjs versions. I tried 1.0.3, 1.0.8, 1.1.5 and 1.2.0-rc.2.
I hope you can help me.
Best regards
Bernd Hartmann
Sorry for the code here, but I didn't get the document mode run in an jsfiddle or Plunker.
1.) ie11testappframe.html
2.) ie11testapp.html
The text was updated successfully, but these errors were encountered: