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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 01112017-cleanup
    • Component/s: None
    • Labels:
      None
    • Environment:
      Chrome, Safari
    • Last comment by Customer:
      true

      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.

        Attachments

          Activity

            People

            Assignee:
            yutaro.mori Yutaro Mori
            Reporter:
            ernie.hershey Ernie Hershey
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              8 years, 12 weeks, 3 days ago
              Date of 1st Reply: