Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Quirks mode with Doctype

Tags:

html

doctype

I have a page which needs to be rendered in Quirks mode for the page to be loaded properly. The problem is that the page uses valid XHTML and thus has a doctype. This forces the page to render in Standards mode in all browsers. Is there any workaround/hack that can force Quirks mode eventhough I have a doctype?

like image 446
Ameer Avatar asked Mar 08 '10 23:03

Ameer


People also ask

What role does the DOCTYPE play with these modes?

The only purpose of <! DOCTYPE html> is to activate full standards mode. Older versions of HTML standard DOCTYPEs provided additional meaning, but no browser ever used the DOCTYPE for anything other than switching between quirks mode and standards mode.

What is DOCTYPE on my wifi?

DOCTYPE> declaration lets an Internet browser know a page HTML version or document type.

What is the difference between standard mode and quirk mode What role does the DOCTYPE play with these modes?

To maintain compatibility with the greatest possible number of web pages, modern web browsers are generally developed with multiple rendering modes: in "standards mode" pages are rendered according to the HTML and CSS specifications, while in "quirks mode" attempts are made to emulate the behavior of older browsers.


1 Answers

I also have a page that must live in the 90s along with all the memory leaks that come with IE in quirks mode, this is the DOCTYPE we use.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
like image 200
Alex Nolasco Avatar answered Oct 17 '22 01:10

Alex Nolasco