News for hackers. Stuff that matters.
Re:Firefox and IE's "View source" can be spoofed to show any... by jannes on Thursday September 08, 2011 @01:54PM (#2974907)
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:

  When you use document.write outside of a script tag embedded inline in
  the page [...]
What is "outside of a script tag embedded inline in the page" supposed to mean?
Re:Firefox and IE's "View source" can be spoofed to show any... by dave1010uk on Thursday September 08, 2011 @02:00PM (#2974935)
What that means (though is not how I would word it) is a document.write that is called asynchronously. The post uses an ajax request to do it but I've recreated it here [1] like this:

    setTimeout(function() {
      document.write('foo');
      document.close();
    }, 1);
[1] http://taskthere.com/viewsource/