-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Routing-Navigation on IE9 different to Chrome #7956
Comments
I also have tested this on version 1.3.0-beta.13 with not luck, also broken in there |
Hi, |
Hi I try to use the same angular doc for route on my IE9 under compatibility view and the first thing that I got is the indexof error on line 91 when I click on "Edit in Plunker", that just happens on IE9 when href is empty on an anchor Error HTML1113: Document mode restart from IE7 Standards to IE9 Standards |
Ok, routing it is completly broken on IE9 using compatibility view or not, please try to go to https://docs.angularjs.org/examples/example-$route-service/index-production.html with IE9CV then you may get this error SCRIPT5014: Array.prototype.slice: 'this' is not a JavaScript object Also try to go the same page https://docs.angularjs.org/examples/example-$route-service/index-production.html using IE9 not using compatibility view then you may see how the routing failed just clicking on the link path BTW this worked as expected on Chrome |
I have done the same test using 1.2.16 with the corresponding url and works perfectly as expected on IE9 https://code.angularjs.org/1.2.16/docs/examples/example-$route-service/ Same page for 1.2.17, 1.2.18 and 1.3.0 beta 13 are all broken |
Hi @tbosch, it is this enough for replication? |
at the time those commits were checked in, this particular example was verified to be working on old IE, but lets see |
it is true though, the 1.2.17 example is broken in IE9, and the 1.2.16 example is working. hm. |
my feeling is that the reason this isn't working here is because of the way relative urls are being resolved, but we had gone to some length to make sure that relative urls were being resolved basically correctly. It's hard for me to debug this one since I don't have a copy of IE9 handy, but somewhere this must have fallen apart. If you have IE9 on your local machine, it would be really helpful if you would do a bisect to find the specific sha which broke this, so that we can think about reverting or fixing it |
@caitp Back on the issue, I have quite busy for the last couple of week but I can now worked on this version again, the first thing that I did was to move to the latest version 1.2.19 and the issue still exist |
@caitp the first issue found in the code was on Line 9714 on angular.js Line 9714 var href = elm.attr('href') || elm.attr('xlink:href'); this will throw and error when href of an achor is empty This should be fixed since it is ok on chrome 35 |
@caitp Now the location issue when having a link like that |
@caitp Second scenario using '/' at the beginning 9711 if (LocationMode === LocationHashbangInHtml5Url) { |
@caitp Third and last scenario using '#' at the beginning "http://localhost:56274/ContainerManagement/#/ContainersByUnit#ContainersByUnit/1/749" which will never work att all 9711 if (LocationMode === LocationHashbangInHtml5Url) { |
@caitp Any idea when that may be fixed |
@caitp 1.2.20 have been release, is this issue fixed ? |
@caitp @btford @winsontam @dolymood @rodyhaddad @effbcross I believed that this issue it is also related with |
This is fixed. |
HI all
I am trying to migrate to version 1.2.18 from 1.2.16, implementing routing with .
So clicking /ContainerManagement/ContainersByUnit/1/749 will navgate to /ContainerManagement/#/ContainersByUnit/ContainersByUnit/1/749 on IE9 adding ContainersByUnit twice but the expected on chrome, if I change the link from /ContainerManagement/ContainersByUnit/1/749 to /ContainerManagement//1/749 the result is the expected on IE9 but failed in chrome navigating to /ContainerManagement//1/749
Help traped on version 1.2.16
The text was updated successfully, but these errors were encountered: