Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

搜尋 Mozilla 技術支援網站

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

了解更多

Programming code is visible when viewing a page with Firefox, but not on other people's screens..

  • 7 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 lgould

more options

I've added some extra code to automatically show the correct language to visitors based on their location settings. This is working properly for the people who have checked it and they are only seeing the correct language, but the CODE is visible on the webpage when I check it on my own computer. I recognise it must be a Firefox setting on my computer, but can not determine which setting it is. Any help is appreciated.

I've added some extra code to automatically show the correct language to visitors based on their location settings. This is working properly for the people who have checked it and they are only seeing the correct language, but the CODE is visible on the webpage when I check it on my own computer. I recognise it must be a Firefox setting on my computer, but can not determine which setting it is. Any help is appreciated.

被選擇的解決方法

I don't see it on my computer. Can you update to Firefox 63 and test there? Disable all add-ons as well.

從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options

Please provide a public link (no password) that we can check out. No Personal Information Please !


In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see How do I create a screenshot of my problem?

Once you've done this, attach the saved screenshot file to your forum post by clicking the Browse... button below the Post your reply box. This will help us to visualize the problem.

Thank you!

more options

Sorry, I added a screenshot when I entered the question, but it must not have uploaded. Attached now.

more options

And the link?

more options
more options

選擇的解決方法

I don't see it on my computer. Can you update to Firefox 63 and test there? Disable all add-ons as well.

more options

Square brackets are not used for HTML tags. Probably your page code needs to be preprocessed by a server-based platform (for example, a scripting engine such as ASP, JSP or PHP) for those brackets to be interpreted properly. When you open a file directly using a file:// address, the preprocessor is bypassed and you do not get a true view of how the page will render. Instead, you see raw and/or incomplete code.

more options

Thanks Tyler!! I was running an old version. It kept doing an update, but always to an older version. Moving to Version 63 did it for me. Thanks!!!