Unobtrusive JavaScript: Now it has come to this!

[quote=“felgall, post:41, topic:224661, full:true”]
With the exception of capturing browser statistics (where you know the results will not be completely accurate) scripts should never test the useragent value as a part of their processing - any script that does is using a technique that was obsolete in Netscape 2 when feature sensing was introduced.[/quote]

Yes indeed, feature detection is a much more reliable way of providing support for different browsers.
.
Perhaps more controversial than that, is to do no detection and allow less capable browsers to fail.

2 Likes