Gecko's "Almost Standards" Mode

  • Revision slug: Gecko's_"Almost_Standards"_Mode
  • Revision title: Gecko's "Almost Standards" Mode
  • Revision id: 60437
  • Created:
  • Creator: Mcaruso
  • Is current revision? No
  • Comment Changed link to "Mozilla's Quirks Mode"

Revision Content

As of Mozilla 1.0.1 and 1.1 beta, there is a new rendering mode referred to as "almost standards" mode. This is added to the long-standing "quirks" and "standards" modes.

"Almost standards" rendering mode is exactly the same as "standards" mode in all details save one: the layout of images inside table cells is handled as they are in Gecko's "quirks" mode, which is fairly consistent with other browsers, such as Internet Explorer. This means that sliced-images-in-tables layouts are less likely to fall apart in Gecko-based browsers based on the rendering engine found in Mozilla 1.0.1 or later when in either "quirks" or "almost standards" mode. (See the DevEdge article "Images, Tables, and Mysterious Gaps" for a detailed explanation of how such layouts are treated in "standards" mode.)

Other than this one difference, "almost standards" and "standards" modes are exactly the same in terms of layout and other behaviors.

Triggering "Almost Standards"

The DOCTYPEs that will trigger "almost standards" mode are those which contain:

  • The public identifier "-//W3C//DTD XHTML 1.0 Transitional//EN"
  • The public identifier "-//W3C//DTD XHTML 1.0 Frameset//EN"
  • The public identifier "-//W3C//DTD HTML 4.01 Transitional//EN", with a system identifier
  • The public identifier "-//W3C//DTD HTML 4.01 Frameset//EN", with a system identifier
  • The IBM system DOCTYPE "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"

A complete DOCTYPE contains a public identifier and a system identifier. In discussions of DOCTYPEs, many people will refer to a DOCTYPE as being "with URI" or "without URI." The URI is the system identifier. For example, consider the following DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
			"http://www.w3.org/TR/REC-html40/strict.dtd">

The parts are as follows:

  • Public Identifier: "-//W3C//DTD HTML 4.0//EN"
  • System Identifier: "http://www.w3.org/TR/REC-html40/strict.dtd"

Thus any HTML 4.01 Transitional or Frameset DOCTYPE with a URI (system identifier) will trigger "almost standards" mode, as will any XHTML 1.0 Transitional or Frameset DOCTYPE, with or without the URI. Authors outside of IBM do not need to worry about the custom DOCTYPE that will also trigger "almost standards" mode.

Recommendations

  • For authors who are attempting to migrate to validated markup using either HTML 4.01 or XHTML 1.0, and who are still using image-in-table design concepts, make sure to use a DOCTYPE that will trigger "almost standards" mode.

Also On Devmo

Related Links

Translations

Original Document Information

  • Author(s): Eric A. Meyer, Netscape Communications
  • Last Updated Date: Published 08 Nov 2002
  • Copyright Information: Copyright © 2001-2003 Netscape. All rights reserved.
  • Note: This reprinted article was originally part of the DevEdge site.

Revision Source

<p>As of Mozilla 1.0.1 and 1.1 beta, there is a new rendering mode referred to as "almost standards" mode. This is added to the long-standing "<a href="en/Mozilla's_Quirks_Mode">quirks</a>" and "standards" modes.
</p><p>"Almost standards" rendering mode is exactly the same as "standards" mode in all details save one: the layout of images inside table cells is handled as they are in Gecko's "quirks" mode, which is fairly consistent with other browsers, such as Internet Explorer. This means that sliced-images-in-tables layouts are less likely to fall apart in Gecko-based browsers based on the rendering engine found in Mozilla 1.0.1 or later when in either "quirks" or "almost standards" mode. (See the DevEdge article "<a href="en/Images%2c_Tables%2c_and_Mysterious_Gaps">Images, Tables, and Mysterious Gaps</a>" for a detailed explanation of how such layouts are treated in "standards" mode.)
</p><p>Other than this one difference, "almost standards" and "standards" modes are exactly the same in terms of layout and other behaviors.
</p>
<h3 name="Triggering_.22Almost_Standards.22"> Triggering "Almost Standards" </h3>
<p>The DOCTYPEs that will trigger "almost standards" mode are those which contain:
</p>
<ul><li> The public identifier "<code>-//W3C//DTD XHTML 1.0 Transitional//EN</code>"
</li><li> The public identifier "<code>-//W3C//DTD XHTML 1.0 Frameset//EN</code>"
</li><li> The public identifier "<code>-//W3C//DTD HTML 4.01 Transitional//EN</code>", with a system identifier
</li><li> The public identifier "<code>-//W3C//DTD HTML 4.01 Frameset//EN</code>", with a system identifier
</li><li> The IBM system DOCTYPE "<code><span class="plain">http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd</span></code>"
</li></ul>
<p>A complete DOCTYPE contains a public identifier and a system identifier. In discussions of DOCTYPEs, many people will refer to a DOCTYPE as being "with URI" or "without URI." The URI is the system identifier. For example, consider the following DOCTYPE:
</p>
<pre>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
			"http://www.w3.org/TR/REC-html40/strict.dtd"&gt;</pre>
<p>The parts are as follows:
</p>
<ul><li> Public Identifier: "<code>-//W3C//DTD HTML 4.0//EN</code>"
</li><li> System Identifier: "<code><span class="plain">http://www.w3.org/TR/REC-html40/strict.dtd</span></code>"
</li></ul>
<p>Thus any HTML 4.01 Transitional or Frameset DOCTYPE with a URI (system identifier) will trigger "almost standards" mode, as will any XHTML 1.0 Transitional or Frameset DOCTYPE, with or without the URI. Authors outside of IBM do not need to worry about the custom DOCTYPE that will also trigger "almost standards" mode.
</p>
<h3 name="Recommendations"> Recommendations </h3>
<ul><li> For authors who are attempting to migrate to validated markup using either HTML 4.01 or XHTML 1.0, and who are still using image-in-table design concepts, make sure to use a DOCTYPE that will trigger "almost standards" mode.
</li></ul>
<h3 name="Also_On_Devmo"> Also On Devmo </h3>
<ul><li> <a href="en/Images%2c_Tables%2c_and_Mysterious_Gaps">Images, Tables, and Mysterious Gaps</a>
</li></ul>
<h3 name="Related_Links"> Related Links </h3>
<ul><li> <a class="external" href="http://www.mozilla.org/docs/web-developer/quirks/doctypes.html">Mozilla's DOCTYPE Sniffing</a>
</li><li> <a href="en/Mozilla's_Quirks_Mode">Mozilla's Quirks Mode</a>
</li></ul>
<h3 name="Translations"> Translations </h3>
<ul><li> Deutsch: <a class="external" href="http://www.ltrebing.de/interessen/www/devedge-almost-standards/">Geckos Beinahe-Standard-Modus</a>
</li></ul>
<div class="originaldocinfo">
<h3 name="Original_Document_Information"> Original Document Information </h3>
<ul><li> Author(s): Eric A. Meyer, Netscape Communications
</li><li> Last Updated Date: Published 08 Nov 2002
</li><li> Copyright Information: Copyright © 2001-2003 Netscape. All rights reserved.
</li><li> Note: This reprinted article was originally part of the DevEdge site.
</li></ul>
</div>
Revert to this revision