Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
view-source URI scheme
URI scheme on browsers
"View source" redirects here. For trying to edit a protected page on Wikipedia, see WP:View source.

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.

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

In the early Internet, the View Source technique helped people learn by example to create their own web pages.

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

We don't have any images related to view-source URI scheme yet.
We don't have any YouTube videos related to view-source URI scheme yet.
We don't have any PDF documents related to view-source URI scheme yet.
We don't have any Books related to view-source URI scheme yet.
We don't have any archived web articles related to view-source URI scheme yet.

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.4 Firefox also suffered a similar security issue (by combining view-source and JavaScript URIs5), but still supported it in Firefox 1.56 after being fixed. In 2009, a new discovered bug was fixed in Firefox 3.0.9.7

BrowserSupported?
Mozilla Firefoxsupported8
SeaMonkeysupported
Netscapesupported
Internet Explorer 4, 5 and 6supported
Internet Explorer 6, 7, and 8not supported after Windows XP SP2
Safari 3.2.1supported
Safari 5, 6not supported
Opera 7, 8, 9, 10, 11not supported
Opera 15 and upsupported
Google Chromesupported9
Websupported
HP webOSvia third-party app (Internalz Pro)10

References

  1. IETF Draft https://tools.ietf.org/html/draft-yevstifeyev-view-source-uri

  2. Sahlin, Doug; Snell, Claudia (2007-02-03). Building Web Sites All-in-One Desk Reference For Dummies. John Wiley & Sons. ISBN 978-0-470-12720-9. 978-0-470-12720-9

  3. Yevstifeyev, M. "'view-source' URI scheme registration template". Retrieved 17 July 2011. https://www.iana.org/assignments/uri-schemes/prov/view-source

  4. "view-source Protocol". MSDN. Retrieved 2009-02-25. http://msdn.microsoft.com/en-us/library/aa767742.aspx

  5. 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. https://web.archive.org/web/20070814075238/http://www.milw0rm.com/id.php?id=1007

  6. jonathan (2005-11-30). "View Source Bug Fixed and a Tip". blogzilla. Retrieved 2009-02-25. http://deftone.com/blogzilla/archives/view_source_bug_fixed_and_a_tip.html

  7. Fleischer, Gregory (April 21, 2009). "MFSA 2009-17: Same-origin violations when Adobe Flash loaded via view-source scheme". Mozilla. Retrieved 2009-04-22. https://www.mozilla.org/security/announce/2009/mfsa2009-17.html

  8. "View Source - Firefox Developer Tools". MDN. https://developer.mozilla.org/en-US/docs/Tools/View_source

  9. "Google Chrome's Full List of Special about: Pages". Lifehacker. 4 September 2008. https://lifehacker.com/5045164/google-chromes-full-list-of-special-about-pages

  10. Robitaille, Jason (2010-08-28). "Internalz 1.3 brings style with a dark theme and more". PreCentral. Archived from the original on 2011-05-12. Retrieved 2011-02-11. https://web.archive.org/web/20110512181830/http://www.precentral.net/internalz-1-3-brings-style-dark-theme-and-more