
Originally Posted by
jhannawin
It is an interesting time.
Do you know http://www.modernizr.com/ ? It will make your sites parse well in older browsers and on other platforms. The JS library is constantly updated and as far as I know it is more targeted at making your sites render well in older browsers. As far as I know from the book I mentioned in the OP it is more efficient on this than the excellent jQuery library.
We know the various WP and Drupal plugins to solve backward compatibility problems with older browsers and other platforms like mobile devices. Now there may be a living JS library that takes care of this for us.
When Modernizr runs, you can for example test if your browser / platform supports geolocation like this:
Code:
if (Modernizr.geolocation) {
// go ahead and use the HTML5 geolocation API. It is supported
}
else {
// there is no support for the HTML5 geolocation.
}
View source and look at the head tag of the first link in my signature how I include the library. It should be included in the head.