0

HTML5 introduces a wide variety of tools such as Geolocation. Many browsers support them, but some do not yet.

Should web developers rely on them to build professional applications for industry? The features are powerful, but not all browsers support these features.

What are some ways (perhaps Javascript libraries?) to reliably test for browser support for HTML5 features such as Geolocation?

Robert Harvey
  • 199,517

2 Answers2

6

Modernizr supports detection of many features in HTML5 capable browsers, including geolocation.

Robert Harvey
  • 199,517
1

http://caniuse.com/ is a good reference for browser support of specific features that you can use in deciding what is possible on the browsers that you need to support.

For specific features detection script is usually fairly easy to write, but there is no indicator of overall HTML5 support.

Another way to look at it is that you can use any feature you want as long as you don't have to support IE - the one major exception is local storage, as Mozilla and Webkit don't agree on how a database should work.

Tom Clarkson
  • 1,342
  • 10
  • 8