Reputation:
I work for a private company writing web apps. Most of the web apps were written prior to me and require users browsers' to be in compatibility mode (IE8-10).
For my IE10 users, I'd like to start implementing HTML5 features. Given an application that's in compatibility mode and uses frames/framesets, is there a way I can run in compatibility mode for most of the application but escape a frame and have that run using HTML5? Should I not being using frames to achieve this? Would an iframe work?
The HTML5 frame I'm referring to does work, but only when the browser (IE10) is in standards mode.
Thanks.
Upvotes: 1
Views: 971
Reputation: 168853
is there a way I can run in compatibility mode for most of the application but escape a frame and have that run using HTML5?
No, you cannot. A frame will always inherit the parent page's document mode.
Should I not being using frames to achieve this? Would an iframe work?
Ideally you shouldn't be using old-style frames for anything; they've been considered obsolete for a very long time. That's probably outside the scope of this answer though.
But no, switching to an iframe won't make any difference in this context.
Your only options are:
Given those options, I expect you will probably give up and go with option (2) as the easy way out. Or (3) if you really need the new browser features.
But I'd encourage you to consider option (1). It is often a lot less work than you'd think to convert a site to work in newer modes. Do you know what the exact issues are that are holding it back?
Upvotes: 1