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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None
    • None
    • Chrome, Safari

    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

            yutaro.mori Yutaro Mori
            ernie.hershey@mongodb.com Ernie Hershey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 14 weeks, 6 days ago