PDA

View Full Version : [FIXED] Ext.ieVersion reported as 0 in IE 11



mankz
16 Dec 2013, 6:50 PM
...

Gary Schlosberg
16 Dec 2013, 7:18 PM
Thanks for the report. Looks like we have a ticket on this one already: EXTJSIV-11659. Seems to related to the new 'trident' identifier in the user agent. I've increased the priority on the bug ticket.

CptS
8 Jan 2014, 12:16 AM
This is the reason that CORS no longer works in IE11. ExtJS is attempting to create a XdrInstance if ieVersion is less than or equal 9.

if ((options.cors || me.cors) && Ext.isIE && Ext.ieVersion <= 9) {
xhr = me.getXdrInstance();
me.isXdr = true;
} else {
xhr = me.getXhrInstance();
}

When can I expect a solution here?

For now, I use the following workaround:

if(Ext.isIE && Object.hasOwnProperty.call(window, "ActiveXObject") && !window.ActiveXObject) {
Ext.ieVersion = 11;
}

Gary Schlosberg
8 Jan 2014, 8:43 AM
Looks like this was fixed in 4.2.2.

CptS
8 Jan 2014, 9:54 PM
I have tried it with version 4.2.2.1144 in IE 11.0.9600.16476 and it does not work.
With the nightly build 20140108 it also does not work: https://fiddle.sencha.com/#fiddle/2hf

Gary Schlosberg
9 Jan 2014, 10:36 AM
I see it and am following up about the ieVersion. The part that was previously updated was this:



isIE11 = isIE && ((check(/trident\/7\.0/) && docMode != 7 && docMode != 8 && docMode != 9 && docMode != 10) || docMode == 11),

CptS
9 Jan 2014, 10:39 PM
I have the updated fiddle:

'isVersion: ' + Ext.ieVersion + '<br/>is IE 11? ' + Ext.isIE11

And the output looks like this:

isVersion: 0
is IE 11? true

The Ext.isIE11 works, but Ext.ieVersion is 0.

anton.dimitrov
23 Jan 2014, 5:07 AM
This bug is definitely not fixed in the night builds so I don't know why it was marked as fixed !?Can we expect a fix to go to the next release? It is not that difficult to fix after all , right ?
Here is a sample fix that should work :

ieVersion = version(isIE, /msie (\d+\.\d+)/) || docMode || 0,

The version() function fails because the user agent is not msie but trident

Gary Schlosberg
23 Jan 2014, 11:59 AM
I noted on the bug ticket last week that the ieVersion issue is still being reported incorrectly, so I expect this will be resolved soon.

benjamineberle
2 Nov 2014, 10:34 PM
Still not fixed in Ext 4.2.3