Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2209

Javascript error in Chrome and Safari (at least) using docs URLs with anchor references in them

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Chrome, Safari

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 25 weeks, 4 days ago