Click here to Skip to main content
15,897,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
Prasad Khandekar 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 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900