The new weekly build, released last Friday, contains one interesting innovation: the developers have added a mechanism to the browser code to avoid display errors on some websites. In particular, the problem was that many web developers in the old-fashioned way still use the outdated JavaScript
document.all method, which appeared with the light hand of the authors of Internet Explorer 4 back in 1997. In fact, just one year after the appearance of this method,
the DOM1 specifications developed by the W3C consortium presented more advanced options in the form
document.getElementById and
document.getElementsByTagName , which made document.all obsolete, but some web developers persist in using the anachronisms of the world Javascript
This practice led to various misunderstandings between the website and the Opera browser and, as a result, to the incorrect display of pages. This happened because the website, having found support for
document.all in the guest browser, used the code intended for IE, with all the regular errors and corrections inherent to this browser. But Opera does not contain these errors, so the display of the page was incorrect. The new weekly build adds a mechanism to hide the fact that the browser supports the JavaScript
document.all method and get the correct page code from the website. Opera Software developers warn that this feature is a test one and ask
to report all the problems that have arisen as a result of its addition to the Opera browser.
Message from the Desktop TeamArticle by Hallward Stein , a JavaScript expert working for Opera Software.
')
News source