Trident (layout engine)

From Wikipedia, the free encyclopedia

Trident (also known as MSHTML) is the name of the layout engine for the Microsoft Windows version of Internet Explorer. It was first introduced with the release of Internet Explorer version 4.0 in October 1997, has been steadily upgraded and remains in use today. For version 7 of Internet Explorer, Microsoft made significant changes to the Trident layout engine to improve compliance with web standards and add support for new technologies.

Contents

[edit] Use in software development

Trident was designed as a software component to allow software developers to easily add web browsing functionality to their own applications. It presents a COM interface for accessing and editing web pages in any COM-supported environment, like C++ and .NET. For instance, a web browser control can be added to a C++ program and Trident can then be used to access the page currently displayed in the web browser and retrieve element values. Events from the web browser control can also be captured. Trident functionality becomes available by connecting the file mshtml.dll to the software project.

[edit] Versions

Trident version Internet Explorer version Notes
Trident (MSHTML.dll version 4.0.x) IE4 Initial trident version
Trident II (MSHTML.dll version 5.0.x) IE5 improved CSS1.0 support and had sweeping changes in CSS2 rendering
Trident III (MSHTML.dll version 5.5.x) IE5.5 corrected issues with CSS handling
Trident IV (MSHTML.dll version 6.0.x) IE6 corrected the box model and added quirks mode with DTD switching
Trident V (MSHTML.dll version 7.0.x) IE7 fixed many CSS rendering issues and added partial PNG alpha support
Trident VI (MSHTML.dll version 8.0.x) IE8 first version to pass the Acid 2 test except for the white stripes [1]

[edit] Trident-based applications

All versions of Internet Explorer for Windows from 4.0 onwards use Trident, and it is also used by various other web browsers and software components (see Internet Explorer shells). In Windows 98, Windows Me, and Windows 2000, it is also used for the Windows file manager/shell, Windows Explorer. The Add/Remove Programs tool in Windows 2000 uses Trident to render the list of installed programs.

Some other Trident-based applications include:

[edit] Controversy

Although each version of IE has improved standards support, including the introduction of a "standards-compliant mode" in version 6, the core standards that are used to build web pages (HTML and CSS) are sometimes implemented in an incomplete and incorrect fashion. For example, there is no support for the <abbr> element which is part of the HTML 4.01 standard, and there are bugs in the implementation of float-margins for the CSS1 standard. There are also some CSS attributes missing from Trident, like min-height, etc.

[edit] Microsoft alternatives

Apart from Trident, Microsoft also has several other layout engines. One of them, known as Tasman, was used in Internet Explorer 5 for Mac (previous Internet Explorer for Mac used Trident or standard IE code). Development of Internet Explorer for Mac was halted in roughly 2003, but development of Tasman continued to a limited extent, and was later included in Office 2004 for Mac. Microsoft's new web design product, Expression Web does not use Internet Explorer's Trident engine, but rather its own engine which Microsoft claims is the most standards-compliant on the market today. [2]

[edit] See also

[edit] References

[edit] External links