Chapter 3. Browsers


JavaScript is a programming language interpreted by browsers. In order to run your scripts, a browser must contain a JavaScript interpretera module that reads and interprets the code you wrote.

But every browser has its own JavaScript interpreter, and there are differences between them, especially where the DOM is concerned. These differences cause the dreaded browser incompatibilities.

If you're unfamiliar with browser incompatibilities, I advise you to skim through 7E, especially the Mouse Position section. Don't worry about the technical details yet; just marvel at the incredible number of differences between the browsers (especially Explorer vs. the others).

Pretty bad, huh? Fortunately, this set of incompatibilities is by far the worst still in existence, and you'll rarely have to wade through such minefields. Nonetheless, browser incompatibilities are a fact of life and will remain so, even though the situation has improved vastly since the turn of the millennium.

This chapter discusses a few good and bad strategies for dealing with browser incompatibilities, but it does not contain lists of specific problems. For that information, go to www.quirksmode.org and study the compatibility tables there.



ppk on JavaScript. Modern, Accessible, Unobtrusive JavaScript Explained by Means of Eight Real-World Example Scripts2006
ppk on JavaScript. Modern, Accessible, Unobtrusive JavaScript Explained by Means of Eight Real-World Example Scripts2006
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 116

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net