Jump to content

View-source

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Rjwilmsi (talk | contribs) at 15:50, 8 September 2009 (cite tempate date fixes using AWB). 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. In 2009 a new discovered bug was fixed in Firefox 3.0.9.[4]

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. ^ Fleischer, Gregory (April 21, 2009). "MFSA 2009-17: Same-origin violations when Adobe Flash loaded via view-source: scheme". Mozilla. Retrieved 2009-04-22.
  5. ^ mackers (2008-03-24). "View Source Choice". Mozilla Add-ons. Retrieved 2009-04-22. {{cite web}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)