Code blocks on Stack Overflow (lines beginning with 4 whitespaces) with Safari v5.1.4 are empty/blank (even with the inspector, indicating it's populated via javascript). If I use another browser (i.e. Chrome), they have content.

Using the same browser (Safari v5.1.4) on another Stack Exchange site, say Server Fault, doesn't have the same problem.

Since Safari v5.1.4 was just released, it's very possible it could be a problem with the browser. But given the fact that two sites from Stack Exchange are showing different behaviour, I'd suspect the website at this point.

My browser is vanilla (no extensions/plug-ins).

Can others confirm this?!

When viewing the question NSregularExpression and password I get the following warning (but I don't believe it's related):

Resource interpreted as Image but transferred with MIME type text/plain.
  • 1
    Yes, this is the right place for bug reports :)
    – user154510
    Commented Mar 13, 2012 at 2:21
  • Any JavaScript errors in the Console tab? (As an aside, as apparently you're peeking into the DOM: it's not really populated using JavaScript, but apparently something breaks when Prettify kicks in? Safari 5.1.3 does not have any issue.)
    – Arjan
    Commented Mar 13, 2012 at 6:55
  • I can't reproduce this in Safari 5.1.4 build 7534.54.16 on Windows 7/64. What OS are you using?
    – balpha StaffMod
    Commented Mar 13, 2012 at 14:01
  • @balpha, on OSX. Can't give you the build number at the moment. Commented Mar 13, 2012 at 14:54
  • @balpha, I've just upgraded too. No issues for me on the latest OS X (10.7.3 Lion, build 11D50b), Safari 5.1.4 (7534.54.16). I've not rebooted yet (which, officially, is not required for this update either). Stack Overflow is at rev 2012.3.13.1634 while I'm writing this. No changes when I log out, nor when I refresh the cache. All seems fine on my Mac.
    – Arjan
    Commented Mar 13, 2012 at 21:40
  • @Arjan. I tried rebooting and it seemed to have resolved it!! Very weird. Commented Mar 14, 2012 at 0:38
  • @Arjan. Nevermind. The issue is back. I'll try to figure out what triggers it. Commented Mar 14, 2012 at 2:20
  • Can you confirm Alex's 32-bit mode problem?
    – Arjan
    Commented Mar 16, 2012 at 9:47
  • @Arjan, I was indeed in 32-bit mode (I also forget why). Code blocks appear, but I'll let this work for a day and see if it re-occurs. Thanks Commented Mar 16, 2012 at 12:54
  • @Arjan Same for me. Switching to 64-bit mode solves this problem — though it makes me unable to use some older plugins that have no 64-bit support… Commented Mar 17, 2012 at 9:15
  • 3
    (Safari 5.1.5 might fix this, but I have not updated yet.)
    – Arjan
    Commented Mar 28, 2012 at 20:15

3 Answers 3


I reported the same issue via the 'contact us' link at the bottom of Stack Overflow. I haven't gotten a response, but I imagine they are working on it. When you work on the cutting edge, expect blood! :)

I quit Safari and looked at its info window in the Finder. It was in 32-bit mode (I set it as 32-bit for some reason which escapes me at the present moment). I restarted Safari in 64-bit mode and it appears that this helped fix the code block issue. Can someone else try this out and see if they see the same fix?

The Safari 5.1.5 release notes state "Safari 5.1.5 contains a fix for an issue that could affect website usability when running Safari in 32-bit mode" so that hopefully fixes this for those who need 32-bit mode.

(Thanks to Macintouch readers for providing the inspiration to try out this mode change. This also appears to fix other issues with Safari 5.1.4.)

  • Any JavaScript errors in the Web Inspector's Console tab?
    – Arjan
    Commented Mar 13, 2012 at 7:00
  • 3
    Safari 5.1.4 is stable release, so I wouldn't call this "cutting edge"...
    – CharlesB
    Commented Mar 13, 2012 at 7:14
  • It looks like Apple made some major changes with the new JS engine. It's "cutting edge" in that sense, definitely. But to answer Arjan's question: no, there are no errors reported in the Console. Commented Mar 13, 2012 at 10:20
  • 6
    In the future, please just post bug reports like this here on meta. We like to be shamed publicly :)
    – balpha StaffMod
    Commented Mar 13, 2012 at 13:58
  • Yes, I can confirm your 32 bit mode problems. In that case, I very clearly see the code on page load, but disappear right away. (That solves this, @balpha, I guess.)
    – Arjan
    Commented Mar 16, 2012 at 9:42
  • Actually, the code disappears when the web socket for the notifications is opened. Until then, all is fine. I will fire up an old Mac that doesn't support 64-bit to start with. To be continued, @balpha.
    – Arjan
    Commented Mar 16, 2012 at 9:53
  • Bravo, fixed my problem!
    – Robusto
    Commented Mar 16, 2012 at 18:16
  • No issue in Safari 5.1.4 on a 32-bit 2006 Snow Leopard Mac (nor in some older version, which I did not correctly write down). I do not see web sockets being used in the Safari's Web Inspector's console log (like I do in Safari on Lion). Safari does support web sockets on 32 bit, but SE does not seem to use it? (On Chrome, WebSocket yields function WebSocket() { [native code] }, but in Safari it's WebSocketConstructor. However, that's the same on 64-bit, so I doubt that matters.) (ping @balpha, FYI.)
    – Arjan
    Commented Mar 16, 2012 at 20:18
  • Was running in 32-bit, Lion, I think because of Slingbox Player. Resetting Safar to run 64 bit worked for me.
    – user181619
    Commented Mar 19, 2012 at 19:03
  • Thank you for this. Never would have guessed in a hundred years. I don't even remember why I would have ever set 32-bit mode in the first place :).
    – Glyph
    Commented Mar 23, 2012 at 4:51

I could constantly reproduce the problem, even after re-launching Safari.

In the comments above, Arjan mentioned the exact same build numbers I had, mentioned he also hadn't rebooted and couldn't reproduce the issue. This made me try to reboot... and now it's resolved.

I feel somewhat sheepish now! Rebooting might sound obvious to some but from where I'm standing, having to reboot is the exception.

Edit: Premature celebration. The issue is back. I'll try to figure out how to better reproduce it.

  • 1
    "from where I'm standing, having to reboot is the exception." Don't feel bad. It's called being a Mac user. Commented Mar 14, 2012 at 5:14

Declining this but as it seems to be a quirk with Safari and not the site.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .