source: http://en.wikipedia.org/wiki/Quirks_mode



Most often, browsers determine which rendering mode to use based on the presence of a Document Type Declaration <http://en.wikipedia.org/wiki/Document_Type_Declaration> in the page; if a full DOCTYPE is present, the browser will use standards mode, and if it is absent the browser will use quirks mode. For example, a web page which began with the following DOCTYPE would trigger standards mode:

|<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd";>|

While this DOCTYPE (which does not contain either the version of HTML in use, or the URL <http://en.wikipedia.org/wiki/URL> of an HTML Document Type Definition <http://en.wikipedia.org/wiki/Document_Type_Definition>), would trigger quirks mode:

|<!DOCTPE html PUBLIC>|

Additionally, a web page which does not include a DOCTYPE at all will render in quirks mode.

One notable exception to this is Microsoft <http://en.wikipedia.org/wiki/Microsoft>'s Internet Explorer <http://en.wikipedia.org/wiki/Internet_Explorer> 6 browser, which will render a page in quirks mode if the DOCTYPE is preceded by an XML <http://en.wikipedia.org/wiki/XML> declaration, regardless of whether a full DOCTYPE is specified. Thus an XHTML <http://en.wikipedia.org/wiki/XHTML> page which begins with the following code would be rendered in quirks mode by IE 6:

|<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>|

;-)


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to