Closed
Bug 30396
Opened 25 years ago
Closed 25 years ago
Version number reporting (client sniffer)
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: janjaap, Assigned: vidur)
References
()
Details
this code reports the wrong version number:
if ((navigator.appName.indexOf('Netscape') != -1) &&
(navigator.appVersion.substr(0, 1) > 3)) {
document.write(' ');
}
else if ((navigator.appName.indexOf('Microsoft') != -1) &&
(navigator.appVersion.substr(0, 1) > 3)) {
document.write(' ');
}
else
{
document.write('Not a version 4 browser');
}
thanks
JanJaap
Comment 1•25 years ago
|
||
Guessing that the problem here is that 'Netscape' does not appear in
navigator.appName.indexOf since you must have been testing a Mozilla,
not a Netscape, browser.
janjaap@x-stream.nl, what version of mozilla were you trying?
Check the resources at http://sites.netscape.net/ekrock/answers.html#areyouready
-- a Nav5/IE5-ready client sniffer is available there.
Assignee: rickg → vidur
Component: HTML Element → DOM Level 0
QA Contact: petersen → desale
Summary: Version number reporting → Version number reporting (client sniffer)
Comment 2•25 years ago
|
||
That should be changed back soon.
*** This bug has been marked as a duplicate of 30602 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Comment 3•25 years ago
|
||
Is this a duplicate? Bug 30602 concerns the commercial Netscape build. This
concerns the Mozilla builds.
Comment 5•23 years ago
|
||
Mass removing self from CC list.
Comment 6•23 years ago
|
||
Now I feel sumb because I have to add back. Sorry for the spam.
You need to log in
before you can comment on or make changes to this bug.
Description
•