搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Codeblocks not rendering correctly, instead showing up as lists of [object Object], [object Object],...

  • 8 回覆
  • 0 有這個問題
  • 13 次檢視
  • 最近回覆由 cor-el

more options

How do I fix the code block rendering issue?

How do I fix the code block rendering issue?
附加的畫面擷圖

所有回覆 (8)

more options

Can you provide an example of a site where that occurs and what should appear instead of what does appear?

more options

The same issue is reported in the thread linked below.

https://support.mozilla.org/en-US/questions/1404953

more options

Did you also ask this at github site forum about this as well?

more options

Works for see, so it is possible that you have a content blocking extension that blocks JavaScript.

If you use extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) that can block content (Adblock Plus, NoScript, DuckDuckGo PE, Disconnect, Ghostery, Privacy Badger, uBlock Origin) always make sure such extensions do not block content.

Firefox shows a purple shield instead of a gray shield at the left end of the location/address bar in case Enhanced Tracking Protection is blocking content.

  • click the shield icon for more detail and possibly disable the protection

You can check the Web Console for relevant-looking messages about blocked content.


You can try these steps in case of issues with webpages:

You can reload webpage(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • hold down the Shift key and left-click the Reload button
  • press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • press "Command + Shift + R" (Mac)

Clear the Cache and remove the Cookies for websites that cause problems via the "3-bar" Firefox menu button (Settings).

"Remove the Cookies" for websites that cause problems:

  • Settings -> Privacy & Security
    Cookies and Site Data: "Manage Data"

"Clear the Cache":

  • Settings -> Privacy & Security
    Cookies and Site Data -> Clear Data -> [X] Cached Web Content -> Clear

Start Firefox in Troubleshoot Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or if userChrome.css/userContent.css is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
  • do NOT click the "Refresh Firefox" button on the Troubleshoot Mode start window
more options

If you are still having trouble with this, do you have the Merlin extension? Disabling it fixed this issue for me and another user who posted the same problem. A pity really :( Good luck!

more options

Yes, this user has the Merlin extension.