Jump to content

view-source URI scheme

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 223.236.224.21 (talk) at 08:41, 7 October 2021 (orrect). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The view-source URI scheme is used by some web browsers to construct URIs that result in the browser displaying the source code of a web page or other web resource.[1]

For example, the URI view-source:http://example.com should show the source of the page located at http://example.com.

On 25 May 2011, the 'view-source' URI scheme was officially registered with IANA[2] per RFC 4395.

Browser support

Firefox and Internet Explorer both supported the scheme, but support was dropped from Internet Explorer in Windows XP SP2 due to security problems.[3] Firefox also suffered a similar security issue (by combining view-source and javascript URIs[4]), but still supported it in Firefox 1.5[5] after being fixed. In 2009 a new discovered bug was fixed in Firefox 3.0.9.

References

  1. ^ IETF Draft
  2. ^ Yevstifeyev, M. "'view-source' URI scheme registration template". Retrieved 17 July 2011.
  3. ^ "view-source Protocol". MSDN. Retrieved 2009-02-25.
  4. ^ mikx (2005-05-21). "Mozilla Firefox view-source:javascript url Code Execution Exploit". milw0rm. Archived from the original on 2007-08-14. Retrieved 2009-02-25.
  5. ^ jonathan (2005-11-30). "View Source Bug Fixed and a Tip". blogzilla. Retrieved 2009-02-25.