angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Angular crashes IE7 when JQuery is present (using a directive with isolate scope + ng-repeat)

Open jonbcard opened this issue 14 years ago • 7 comments

The specific case I've been able to consistently reproduce this problem with is:

  • JQuery is present (I've tested with 1.8.0 and 1.7.2)
  • A directive with isloate scope is used inside an ng-repeat.

The crash occurs when navigating away from the ng-view that has the directive. IE7 (or IE Tab emulating IE7) will crash every time. An initial JSFiddle showing the issue is here: http://jsfiddle.net/DJq9U/5/

This issue was produced with both Angular 1.0.1 and 1.1.0 on a Windows XP machine. Removing the presence of JQuery fixes the problem.

Edit: updated to show a slightly more simplified JSFiddle demonstrating the problem.

jonbcard avatar Sep 07 '12 17:09 jonbcard

The problem seems to happen in ngViewDirective.update() while calling element.html(template). Specifically IE7 seems to bomb out while JQuery is looping the old element nodes to clean them up/prevent memory leak. I have no idea why having vs. not having an isolate scope on the directive is making a difference to this..

jonbcard avatar Sep 07 '12 20:09 jonbcard

Ehi, I have the same issue here. I have been fighting to catch the issue I found in IE8 and below. I have finally found that jQuery is causing the issue. When I remove jQuery everything goes right.

I am trying to solve the issue. If you have any other information please let me know.

alessiosantocs avatar Oct 08 '13 16:10 alessiosantocs

I have the same issue too.

I am currently investigating and I found out that the issue sometimes happens in the removeAttribute call:

  // function fixCloneNodeIssues
  dest.removeAttribute( jQuery.expando );


  // function cleanData
  elem.removeAttribute( internalKey );

I am really clueless about this removeAttribute issue, if anyone has a hint, please let me know.

jbourassa avatar Nov 07 '13 21:11 jbourassa

No official support for IE7. Can you please close to help clean up some issues?

nosideeffects avatar Nov 18 '13 02:11 nosideeffects

nice way to solve issues @nosideeffects :(

alessiosantocs avatar Nov 18 '13 10:11 alessiosantocs

@alessiosantocs Haha. I am not intentionally trying to be unhelpful. As has been mentioned in other issues, if the community can provide a fix for this issue themselves that does not muddy the existing code to any significant extent, there is no reason it couldn't be merged.

However, the more pertinent problem is that Angular is in no way tested against IE7. I am certain many undiscovered things are broken for IE7, and more will likely break in the future for this same reason.

nosideeffects avatar Nov 18 '13 15:11 nosideeffects

obsolete

IgorMinar avatar Jan 05 '14 07:01 IgorMinar