[DOCS-2209] Javascript error in Chrome and Safari (at least) using docs URLs with anchor references in them Created: 07/Nov/13  Updated: 11/Jan/17  Resolved: 07/Nov/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Ernie Hershey Assignee: Yutaro Mori
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Chrome, Safari


Attachments: PNG File Screenshot 2013-11-07 13.28.50.png    
Participants:
Days since reply: 10 years, 14 weeks, 6 days ago

 Description   

If I visit this URL, I get an error in my browser JavaScript error console:

http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings

Chrome:

Uncaught TypeError: Cannot read property 'mozilla' of undefined doctools.js:157
Documentation.fixFirefoxAnchorBug doctools.js:157
Documentation.init doctools.js:100
(anonymous function) doctools.js:234
fire jquery.js:3048
self.fireWith jquery.js:3160
jQuery.extend.ready jquery.js:433
completed jquery.js:104

Safari:

[Warning] Invalid CSS property declaration at: * (mongodb-docs.css, line 434)
[Error] TypeError: 'undefined' is not an object (evaluating '$.browser.mozilla')
	fixFirefoxAnchorBug (doctools.js, line 157)
	init (doctools.js, line 100)
	(anonymous function) (doctools.js, line 234)
	fire (jquery.js, line 3048)
	fireWith (jquery.js, line 3160)
	ready (jquery.js, line 433)
	completed (jquery.js, line 104)

I first noticed this because the version dropdown next to "MongoDB Manual" doesn't get updated to display other versions.



 Comments   
Comment by Yutaro Mori [ 07/Nov/13 ]

Thanks for the pointing it out. Browser detection is a bad idea so I'll take this logic out.

Generated at Thu Feb 08 07:42:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.