Jump to content

View-source

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lomns (talk | contribs) at 23:39, 22 March 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The view-source protocol is a URI scheme used in HTML to create links which display the source code of a web page (usually in a popup window).

For example, this URL shows the source of the Wikipedia home page: view-source:http://www.wikipedia.org/

Browser Support

Firefox and Internet Explorer both supported the view-source protocol, but support was dropped from Internet Explorer in Windows XP SP2 due to security problems[1]. Firefox also suffered a similar security issue (by combining the view-source: and javascript: protocols[2]), but still supported the protocol in Firefox 1.5[3] after being fixed.

References

  1. ^ "view-source Protocol". MSDN. Retrieved 2009-02-25.
  2. ^ mikx (2005-05-21). "Mozilla Firefox view-source:javascript url Code Execution Exploit". milw0rm. Retrieved 2009-02-25.
  3. ^ jonathan (2005-11-30). "View Source Bug Fixed and a Tip". blogzilla. Retrieved 2009-02-25.
  4. ^ [1]