View-source
Appearance
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.
- Mozilla Firefox - supported
- a Mozilla Firefox extension called View Source Choice add more option to the behavior.[4]
- Netscape - supported
- Internet Explorer 4, 5, and 6 - support
- Internet Explorer 6, and Internet Explorer 7 - not supported after Windows XP SP2
- Safari 3.2.1 - supported
- Opera 7, 8, 9 - not supported
- Google Chrome - supported
References
- ^ "view-source Protocol". MSDN. Retrieved 2009-02-25.
- ^ mikx (2005-05-21). "Mozilla Firefox view-source:javascript url Code Execution Exploit". milw0rm. Retrieved 2009-02-25.
- ^ jonathan (2005-11-30). "View Source Bug Fixed and a Tip". blogzilla. Retrieved 2009-02-25.
- ^ [1]