PDA

View Full Version : Ext.History problems in IE8 with Browser Mode: IE8 / Document Mode: IE8 Standards



bgallie
12 Feb 2011, 11:34 AM
Ext version tested:

Ext 3.1 rev 1
Ext 3.3 rev 1

Adapter used:

ext

css used:

N/A

Browser versions tested against:

IE8

Operating System:

Vista

Description:

When using IE8 and your are not in quirks mode, the Ext.History mechanism breaks. Pressing the back button toggles between the last 2 history tokens. For example, navigating from A -> B -> C -> D, then pressing the back button repeatedly goes from D -> C -> D -> C -> ..., instead of going from D -> C -> B -> A.

If IE8 is running in quirks mode or in compatibility mode, it works.

Test Case:

N/A

Steps to reproduce the problem:

Go to the Ext-JS history demo using IE8
(http://dev.sencha.com/deploy/dev/examples/history/history.html#tab1:subtab1).
Use the developer tool to document mode from "Quirks Mode" to Internet Explorer 8 standards.
Click on the various tabs to generate history.
Use the browser back button to go back in history.

The result that was expected:

The browser steps back in history to the starting point.

The result that occurs instead:

The browser toggles between the last two history events.

Screenshot or Video:

none

Debugging already done:

History.js uses an iFrame to handle history events when using an IE broswer. It should use the history form when using IE8 (when IE8 is not in quirks mode).

Possible fix:

replace occurrences of (Ext.isIE) with (Ext.isIE && !(Ext.isIE8 && Ext.isStrict)) in History.js