JRS: In article <>, dated Fri, 1 Oct 2004
01:52:52, seen in news:comp.lang.javascript, Lee
<> posted :
>lawrence said:
>>
>>How is it possible that the question "How do I detect which browser
>>the user has" is missing from this FAQ:
>>
>>http://www.faqts.com/knowledge_base/index.phtml/fid/125
>>
>>and is only here on this with a link to old information that suggests
>>use of "navigator":
>>
>>
>>http://developer.irt.org/script/43.htm
>
>Because it's generally a bad idea to try to guess which browser
>the user has. That's rarely useful information.
> ...
That's an invalid refutation.
"How do I detect which browser the user has" *is*, in those or
sufficiently similar words, a frequently-enough asked question;
therefore, there should be a subject line in Sec. 4 that manifestly
corresponds - and the OP's wording seems as good as any (except that
"has" should be "is using"; consider "which browser does LRN have?").
Compare Section 4.1, "How do I protect my javascript code?".
The answer *should* include something on browser detection, since the
identity claim of the browser may be of legitimate interest whatever the
browser might be.
IMHO, a browser claiming to be FrogSpawn v.19 has a valid claim
to be treated as such; a user is entitled to the consequences of
his choices (note that, using feature detection, a page can be
made to show "You claim to be using FrogSpawn v.19; since method
'window.tadPole' does not exist, that is a manifest
terminological inexactitude.").
It's only nasty commercial sites that insist on ignoring such
statements in order to force their content through.
But the answer should include a paragraph on the merits of feature
detection, with perhaps a link to more detail, perhaps in the Notes.
IMHO, the FAQ should include a complete list of the Notes, linking.
I now see the Subject of 4.26 - it is too specific.
Sec 4.12 "Why does parseInt('09') give an error?" should cite 4.21, with
a statement that parseInt is used too often.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.