Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Firefox IE9 chrome IE10
Hi,
If HTML page has multiple frames and each frames opens an HTML page and since each of this html pages has different Doctype, then how browser would decide the Mode.
 
My actual requirement is to keep my webpages in quirks mode but i have a frames where i make use to render third party UI controls which supports only Standard Modes. So i want to keep only that frame in a Std Mode(using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">)
 
as per my testing so far, even after changing doctype to Std mode, it is still behaving as quirks mode. The parent frame is still kept with doctype use to support quirk mode.
Posted 11-Apr-13 5:47am
Comments
Prasad Khandekar at 11-Apr-13 11:03am
   
Have you tried using <meta http-equiv="X-UA-Compatible" content="IE=Edge">. It will force browser to switch to Standard Mode.
devcode007 at 11-Apr-13 12:07pm
   
ok I will try this...meanwhile can you tell whether it switches to strict standard mode or Almost standard mode. I want browser to entertain legacy stuff as well as oppose to strict standard mode which i believe set things as per HTML5 strictly.
Prasad Khandekar at 11-Apr-13 15:07pm
   
I think you are better of putting the meta tags in all your pages where Standard Mode is desired. More information about various modes is available here (http://www.nczonline.net/blog/2010/01/19/internet-explorer-8-document-and-browser-modes/)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 490
1 Maciej Los 305
2 Richard MacCutchan 270
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,834
1 Sergey Alexandrovich Kryukov 7,477
2 DamithSL 5,689
3 Maciej Los 5,329
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100