Today I made some notes about Quirksmode's page on cross-browser compatibility via Object detection.
Initially he says that it's better to not rely on JS that detects a particular browser. He recommends against branching code based on detecting the browser type or version; and rather testing for the functionality that is necessary to run the script. In practice, this means testing for objects.
Scroll to the bottom of the page for a discussion of which objects for which it has historically been most important to test.
Continue reading "Reading Quirksmode on assuring JavaScript compatibility across browsers" »