User:Mabdul/quriks-old
From Wikipedia, the free encyclopedia
[edit] DOCTYPE sniffing
The way that the engines determine standards mode, quirks mode, or almost standards mode.
| Trident | Tasman | Gecko | WebKit | KHTML | Presto | iCab | |||
|---|---|---|---|---|---|---|---|---|---|
| XHTML 1.1 | |||||||||
| Strict | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | Standards | ? | Standards | Standards | Standards | Standards | ? | |
| XHTML 1.0 | |||||||||
| Strict | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | Standards | ? | Standards | Standards | Standards | Standards | ? | |
| Transitional | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | Standards | ? | Almost | Standards | Standards | Standards | ? | |
| Frameset | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> | Standards | ? | Almost | ? | Standards | Standards | ? | |
| HTML 4.01 | |||||||||
| Strict | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | Standards | ? | Standards | Standards | Standards | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | Standards | ? | Standards | Standards | Standards | Standards | ? | ||
| Transitional | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | Standards | Standards | Almost | Standards | Standards | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | Quirks | Quirks | Quirks | Quirks | Quirks | Quirks | ? | ||
| Frameset | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | Standards | ? | Almost | ? | Standards | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> | Quirks | ? | Quirks | ? | Quirks | Quirks | ? | ||
| HTML 4.0 | |||||||||
| Strict | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | Standards | Standards | Standards | ? | Standards | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> | Standards | Quirks | Standards | Standards | Standards | Standards | ? | ||
| Transitional | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | Standards | ? | Quirks | ? | Quirks | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | Quirks | ? | Quirks | ? | Quirks | Quirks | ? | ||
| Frameset | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd"> | Standards | ? | Quirks | ? | Quirks | Standards | ? | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> | Quirks | ? | Quirks | ? | Quirks | Quirks | ? | ||
[edit] General DOCTYPE sniffing notes
- Quirks mode — Emulates non-standard behaviors in Navigator 4 and MSIE. Generally used in HTML without DOCTYPE and HTML 3 or below. The amount of emulation differs between the layout engines, e.g. Gecko and Presto use the standardized W3C box layout model even in quirks mode. Thus the results are quite unpredictable in this mode.
- Standards mode — Follows W3C's recommendations.
[edit] Gecko DOCTYPE sniffing notes
- Almost standards mode — Implements the vertical sizing of table cells traditionally and not rigorously according to the CSS2 specification. Almost standards mode was created after 1.0 and 1.1alpha, but before 1.0.1 and 1.1beta. This mode is, however, similar to the standard modes of Trident, Presto and WebKit. Before almost standards mode was created these DOCTYPEs triggered standards mode.

