Feature detection (web development): Difference between revisions

Content deleted Content added
Carriearchdale (talk | contribs)
m clean up, typo(s) fixed: constrast → contrast using AWB
Undetectables: Fixed typo
Tags: Mobile edit Mobile app edit
Line 24:
==Undetectables==
 
Some browser features are considered ''undetectable'', because no clues are known to give sufficient confidence that a feature is supported. These are often because limited information available to the JavaScript environment in the browser; generally features must be exposed via the DOM in some way in order to be detetabledetectable using JavaScript.
 
When undetectables are encountered, it is common to turn to [[User agent#User agent sniffing|user agent sniffing]] as an alternative mechanism, or to employ [[defensive coding]] to minimise the impact if the feature turns out not to be supported.