View source shows not only HTML but also external JS and displays it in an unorganized format, how come?
Whenever I use the view source feature, the pane does not only show the HTML, but it also pastes in all Javascripts which are in an external file. On top of that all the indents are gone making it pretty much unreadable.
I have this issue with every single site I try to view the source of. I turned of and uninstalled all add-ons. Started up in safe mode. But nothing seems to work. I had this in firefox 3.6 and upgraded to 4 hoping it would solve it but it doesn't.
Όλες οι απαντήσεις (5)
Επιλεγμένη λύση
That's strange. How about trying to reset all your view_source preferences to their defaults.
Open about:config (type or paste about:config to the address bar and press Enter)
In the filter box, type or paste view_s
When the preferences are displayed, right-click and Reset the ones that appear in bold to return them to their defaults.
Any luck?
Edit: Oops, for Mac, read "right-click" as whatever you usually do to call up a context menu.
Τροποποιήθηκε στις
Thanks for your reply, I did what you and said and the only thing that was not default was wrap_long_lines, so I made that default again.
It seems to have worked after I reloaded the view source panel. Let's hope it stays like that.
Because before (after I posted) I figured out that when refreshing the view source panel it would show the proper content. But when closing the view source panel and opening it again it was the weird output again. But now it seems to stay the correct output.
Some websites pack JavaScripts as one long long without line breaks for load optimization, so you may not have noticed it if you did not wrap long lines previously. You can look at the scroll bar thumb to get an indication of the longest line.
The sites I'm checking are coded by me or one of my colleagues. So it's definitely not how the code is supposed to be looking. After starting up the computer again today the problem has returned. But somehow I have the same problem with Safari and Chrome...
If you have the problem in three different browsers, it suggests something "upstream" or shared at the system level, since each has a separate cache and Safari/Chrome use Webkit, not Gecko, as their rendering engine.
Is it possible that all the source views use a font which has become corrupted? In Firefox you could test that theory by changing your Monospace font here:
Edit > Preferences > Content > (Fonts & Colors section) Advanced button
If that doesn't help, do you browse through a proxy server either on your Mac, your network, or out on the internet? Sometimes a security scanner has an embedded proxy server.