Feature detection (web development)
From Wikipedia, the free encyclopedia
This article is about the web development technique. For the neurological process, see feature detection (nervous system). For the computer vision technique, see feature detection (computer vision).
Feature detection (also feature testing) is a technique used in web development for handling differences between runtime environments (typically web browsers or user agents), by programmatically testing for clues that the environment may or may not offer certain functionality. This information is then used to make the application adapt in some way to suit the environment: to make use of certain APIs, or tailor for a better user experience.[1]
This article needs additional citations for verification. (March 2014) |
Its proponents claim it is more reliable and future-proof than other techniques like user agent sniffing and browser-specific CSS hacks.[1]