A beta release of Opera 11.60, which was made available this week, includes a number of significant improvements to the browser’s HTML rendering engine. It also brings a visual overhaul to the built-in e-mail client and a few other nice cosmetic improvements.
Over the past two years, the developers behind Opera have taken major steps to modernize their Web browser and restore its competitiveness. The changes are broad in scope and have touched many different layers of the application.
Unlike XML, where structural validity is extremely important, HTML tends to be loose and highly forgiving. Very few pages on the Web strictly conform with standards. As such, HTML renderers need to be programmed to gracefully handle malformed markup—such as cases where tags are missing or nested unevenly. The manner in which aberrant HTML should be interpreted isn’t always intuitively obvious, however. Poor markup can sometimes create situations where the intention of the author is ambiguous. This can lead to inconsistent parsing behavior between browsers.
HTML5 is the first version of the standard to comprehensively define explicit parsing rules, even in edge cases that relate to malformed markup. The more specific parsing rules will help to improve interoperability between browsers by ensuring that the document object model (DOM) is assembled with consistent and uniform structure when markup is bad.
All of the major browser vendors have been working on new parser implementations that comply with the HTML5 standard. Apple began developing an HTML5 parser in WebKit last year and deployed it to end users in Safari 5.1 earlier this year. Google shipped it in Chrome 7 a few months after it was implemented in WebKit. Mozilla made an experimental HTML5 parser available behind an about:config option in Firefox 3.6, and finally stabilized it earlier this year for Gecko 2, which was incorporated in Firefox 4. Microsoft announced in July that it has also started working on an HTML5 parser, which it expects to ship in Internet Explorer 10.
Opera first unveiled its HTML5-compatible parser in February, which it released an experimental build. The company had taken the opportunity to greatly overhaul its aging parser implementation, which had become a bit cluttered with complex legacy code. The new parser, which is codenamed Ragnarok, is finally integrated in Opera 11.60. The new parser is said to be slightly more memory intensive, but the increased footprint is offset by optimizations elsewhere in the browser.
In addition to the developer-centric features we have discussed in this article, Opera 11.60 also brought some user interface refinements, major improvements to the browser’s e-mail client, and some Lion compatibility enhancements such as support for full-screen mode. We will take a closer look at the browser’s user-facing enhancements when version 11.60 is officially released.
Source Ars Technica