Closed Bug 90746 Opened 24 years ago Closed 24 years ago

jvc.com - Browser sniffer not quite good enough

Categories

(Tech Evangelism Graveyard :: English US, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kbriscoe, Assigned: doronr)

References

()

Details

(Whiteboard: [JAVASCRIPT][aok])

JVC's web page uses a very nice browser sniffing script which correctly identifies Netscape 6, but fails to identify Mozilla. Considering future embedded/Linux deals will likely use Mozilla over Netscape, it'd be helpful if the site considers Mozilla to be Netscape 6. Script (http://www.jvc.com/includes/js/bwsrDetect.js) below: var ns4 = (document.layers)? 1 : 0 ; var ie = (document.all)? 1 : 0 ; var usr = navigator.userAgent var objns6 = (usr.indexOf('Netscape6')!=-1)? 1 : 0 ; var ns6 = ((document.getElementById)&&(objns6))? 1 : 0 ; var isMac = (navigator.userAgent.indexOf('Mac')!=-1) ; var brsr = (navigator.appName.indexOf("Netscape")!=-1) ;
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [JAVASCRIPT]
All Evangelism Bugs are now in the Product Tech Evangelism. See bug 86997 for details.
Component: Evangelism → US English
Product: Browser → Tech Evangelism
Version: other → unspecified
Priority: -- → P2
Summary: Browser sniffer not quite good enough → jvc.com - Browser sniffer not quite good enough
Maybe it's time for another letter--this page is still broken. Maybe we can include a reference to this bug number and mention that we have an example of correctly-working code here that they can use: http://www.jvc.com/includes/js/bwsrDetect.js (corrected) -------------------------------------------- var ns4 = (document.layers)? 1 : 0 ; var ie = (document.all)? 1 : 0 ; var usr = navigator.userAgent var ns6 = ((document.getElementById)&&(!ie))? 1 : 0 ; var isMac = (navigator.userAgent.indexOf('Mac')!=-1) ; var brsr = (navigator.appName.indexOf("Netscape")!=-1) ; With this code, any W3C DOM-compliant browser (including, but not limited to, Mozilla) is considered the same as Netscape 6 for the purposes of their web site.
well, they should support all DOM browsers, and we support the standards
Whiteboard: [JAVASCRIPT] → [JAVASCRIPT][aok]
Mass reassign of all tech-evangelism us general bugs assigned to bc to doron except bc's P1 bugs. You may search for this mass reassign (it is 305 bugs) by searching for the keyword 'greeneggsandham'
Assignee: bclary → doronr
works perfect now.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.