|Stable release||5.82.0 (May 2, 2021)|
|License||GNU Lesser General Public License|
KHTML is a browser engine developed by the KDE project. It is the default engine of the Konqueror browser, but it has not been actively worked on since 2016. Moreover, KHTML will be discontinued for KDE Frameworks 6.
Built on the KParts framework and written in C++, KHTML had relatively good support for Web standards during its prime. Engines descended from KHTML are used by some of the world's most widely used browsers, among them Google Chrome, Safari, Opera, Vivaldi, and Microsoft Edge.
KHTML itself came into existence on November 4, 1998, as a fork of the khtmlw library, with some slight refactoring and the addition of Unicode support and changes to support the move to Qt 2. Waldo Bastian was among those who did the work of creating that early version of KHTML.
In the closing months of 1999 and first few months of 2000, Knoll did further work with Antti Koivisto and Dirk Mueller to add CSS support and to refine and stabilize the KHTML architecture, with most of that work being completed by March 2000. Among other things, those changes enabled KHTML to become the second browser after Internet Explorer to correctly support Hebrew and Arabic and languages written right-to-left—before Mozilla had such support.
KDE 2.0 was the first KDE release (on October 23, 2000) to include KHTML (as the rendering engine of the new Konqueror file and web browser, which replaced the monolithic KDE File Manager).
KSVG was first developed in 2001 by Nikolas Zimmermann and Rob Buis; however, by 2003, it was decided to fork the then-current KSVG implementation into two new projects: KDOM/KSVG2 (to improve the state of DOM rendering in KHTML underneath a more formidable SVG 1.0 render state) and Kcanvas (to abstract any rendering done within khtml/ksvg2 in a single shared library, with multiple backends for it, e.g., Cairo/Qt, etc.).
KSVG2 is also a part of WebKit.
KHTML is set to be removed in KDE Frameworks 6. It has not had active development since 2016, just the necessary maintenance to work with updates to Frameworks 5.
The following standards are supported by the KHTML engine:
Main article: WebKit § Origins
KHTML and KJS were adopted by Apple in 2002 for use in the Safari web browser. Apple publishes the source code for their fork of the KHTML engine, called WebKit. In 2013, Google began development on a fork of WebKit, called Blink.