Firefox and IE's "View source" can be spoofed to show anything
I believe Chrome shows the original source because when you View Source, it requests the page again. This complicates debugging Ajax requests (and also Get and Post requests).
Firefox and IE show the "current" source, which is liable to be replaced as shown by dave1010uk.
Type the following into the Chrome Dev Tools console, then the Firebug console:
Chrome shows boolean, firefox shows undefined.testBool = true; document.write(''); typeof testBool;
Since the site seems to be down, you can read the article (no images unfortunately) in Google's Cache[1].
[1]: https://webcache.googleusercontent.com/search?q=cache:http:/...
Thankfully, curl can't be tricked in such a manner.
I'd have a more substantial comment, I hope, if the site was loading.
Older Internet Explorer and Firefox versions displayed the source that was downloaded, not the one generated/modified by scripts. It makes so much more sense, especially since there was always an option to view the generated source (by using JavaScript for an example) but I don't see how you can access the downloaded source at all if View Source is replaced by View Generated Source. Hm, actually one could use FireBug and watch Net response I suppose, but that's inconvenient.
Hmm, I can't reproduce what he claims by only looking at the cached version without images and source code.
I especially don't understand this part:
What is "outside of a script tag embedded inline in the page" supposed to mean?When you use document.write outside of a script tag embedded inline in the page [...]
In my opinion, "View source" should be a text log of everything the server sent to the client. Why would you ever want anything different?
One of the many reasons why I recommend using NoScript. http://noscript.net/
What's with the out of date Flash popup? Running Chrome beta channel here with Flash built in.
Opera 11.51 won't even try show the source for me. It's definitely interesting.
Tried in Firefox 6... spoof works. Tried in Firefox 3.6... could see full source, script and all.
Actually, chrome downloads the source again when you choose "view source". You can see the "modded" source with ctrl/cmd+shift+I.