View-source URI scheme: Difference between revisions

Content deleted Content added
m Reverted edit by 2409:40E4:2B:FDD1:FCB1:46FF:FE0D:C82A (talk) to last version by 217.180.35.9
 
(131 intermediate revisions by 94 users not shown)
Line 1:
{{Short description|URI scheme on browsers}}
{{selfref|{{redirect|View source|trying to edit a protected page on Wikipedia|WP:View source}}}}
{{primary sources|date=October 2012}}
{{lowercase title}}
The '''view-source''' [[URI scheme]] is used by some browsers to construct [[Uniform Resource Locator|URLs]] that refer to a source display for a given resource.<ref>[https://tools.ietf.org/html/draft-yevstifeyev-view-source-uri IETF Draft]</ref>
The '''view-source''' [[Uniform Resource Identifier#Syntax|URI scheme]] is used by some [[Web browser|web browsers]] to construct [[Uniform Resource Identifier|URI]]s that result in the browser displaying the [[source code]] of a [[web page]] or other [[web resource]].<ref>{{Cite report |url=https://datatracker.ietf.org/doc/draft-yevstifeyev-view-source-uri/ |title=The 'view-source' URI Scheme |last=Yevstifeyev |first=Mykyta |date=2011-04-23 |publisher=Internet Engineering Task Force |issue=draft-yevstifeyev-view-source-uri-01}}</ref>
 
For example, this [[Uniform Resourcethe Identifier|URI]] would'''<code>view-source:<nowiki>https://example.com</nowiki></code>''' should show the source of the page located at <code>[httphttps://www.example.com httphttps://www.example.com]:</code>.
'''<nowiki>view-source:http://www.example.com</nowiki>'''
 
In the early Internet, the View Source technique helped people learn by example to create their own web pages.<ref>{{Cite book |last1=Sahlin |first1=Doug |url=https://books.google.com/books?id=cfDRYLDyKcoC&dq=%22view+source%22&pg=PA161 |title=Building Web Sites All-in-One Desk Reference For Dummies |last2=Snell |first2=Claudia |date=2007-02-03 |publisher=John Wiley & Sons |isbn=978-0-470-12720-9 |language=en}}</ref>
On 25 May 2011 the 'view-source' URI scheme was officially registered with IANA <ref>{{cite web|last=Yevstifeyev|first=M.|title='view-source' URI scheme registration template|url=http://www.iana.org/assignments/uri-schemes/prov/view-source|accessdate=17 July 2011}}</ref> per RFC 4395.
 
On 25 May 2011, the 'view-source' URI scheme was officially registered with IANA <ref>{{cite web|last=Yevstifeyev|first=M.|title='view-source' URI scheme registration template|url=httphttps://www.iana.org/assignments/uri-schemes/prov/view-source|accessdateaccess-date=17 July 2011}}</ref> per RFC 4395.
 
==Browser support==
[[Mozilla Firefox]] and [[Internet Explorer]] both supported the scheme, but support was dropped from Internet Explorer in [[Windows XP]] SP2]] due to security problems.<ref>{{cite web
|url=http://msdn.microsoft.com/en-us/library/aa767742.aspx
|title=view-source Protocol
|publisher=[[Microsoft Developer Network|MSDN]]
|accessdateaccess-date=2009-02-25
}}</ref> Firefox also suffered a similar security issue (by combining view-source and javascript[[JavaScript]] URIs<ref>{{cite web
|url=http://www.milw0rm.com/id.php?id=1007
|accessdateaccess-date=2009-02-25
|archive-url=https://web.archive.org/web/20070814075238/http://www.milw0rm.com/id.php?id=1007
|archive-date=2007-08-14
|title=Mozilla Firefox view-source:javascript url Code Execution Exploit
|publisherwork=[[milw0rm]]
|author=mikx
|date=2005-05-21
|accessdate=2009-02-25
}}</ref>), but still supported it in Firefox 1.5<ref>{{cite web
|url=http://deftone.com/blogzilla/archives/view_source_bug_fixed_and_a_tip.html
|title=View Source Bug Fixed and a Tip
|publisherwork=[[blogzilla]]
|author=jonathan
|date=2005-11-30
|accessdateaccess-date=2009-02-25
}}</ref> after being fixed. In 2009, a new discovered bug was fixed in [[Mozilla Firefox 3|Firefox 3.0.9]].<ref>{{cite web|url=httphttps://www.mozilla.org/security/announce/2009/mfsa2009-17.html|title=MFSA 2009-17: Same-origin violations when Adobe Flash loaded via view-source scheme|last=Fleischer|first=Gregory|date=April 21, 2009|publisherwork=[[Mozilla]]|accessdateaccess-date=2009-04-22}}</ref>
 
{| class="wikitable sortable"
! Browser !! Supported?
|-
|[[Mozilla Firefox]] || {{yes|supported}}<ref>{{cite web|title=View Source - Firefox Developer Tools |work=MDN|url=https://developer.mozilla.org/en-US/docs/Tools/View_source}}</ref>
|-
* Mozilla| [[SeaMonkey]] -|| {{yes|supported}}
|-
*| [[Netscape]] -|| {{yes|supported}}
|-
*| Internet Explorer [[Internet Explorer 4|4]], [[Internet Explorer 5|5]], and [[Internet Explorer 6|6]] -|| {{yes|supported}}
|-
*| Internet Explorer [[Internet Explorer 6|6]], [[Internet Explorer 7|7]], and [[Internet Explorer 8|8]] -|| {{no|not supported}} after Windows XP SP2
|-
*| [[Safari (web browser)|Safari]] 5,3.2.1 6 - not|| {{yes|supported}}
|-
*| [[OperaSafari (web browser)|OperaSafari]] 75, 8,6 9, 10, 11 -|| {{no|not supported}}
|-
| [[Opera (web browser)|Opera]] 7, 8, 9, 10, 11 || {{no|not supported}}
 
|-
 
| [[Opera (web browser)|Opera]] 15 and up || {{yes|supported}}
* Mozilla Firefox - supported
|-
* Mozilla [[SeaMonkey]] - supported
*| [[Google Chrome]] -|| {{yes|supported}}<ref>{{cite web|title=Lifehacker - Google Chrome's Full List of Special about: Pages|work=Lifehacker|date=4 September 2008 |url=http://lifehacker.com/5045164/google-chromes-full-list-of-special-about-pages}}</ref>
* [[Netscape]] - supported
|-
* Internet Explorer [[Internet Explorer 4|4]], [[Internet Explorer 5|5]], and [[Internet Explorer 6|6]] - supported
*| [[Web (web browser)|Web]] -|| supported{{Citation neededyes|date=January 2010supported}}
* Internet Explorer [[Internet Explorer 6|6]], [[Internet Explorer 7|7]], and [[Internet Explorer 8|8]] - not supported after Windows XP SP2
|-
* [[Safari (web browser)|Safari]] 3.2.1 - supported{{Citation needed|date=January 2010}}
*| [[webOS|HP webOS]] -|| supported{{partial|via inthird-browser via a homebrewparty app}} called (Internalz Pro)<ref>{{cite web|url=http://www.precentral.net/internalz-1-3-brings-style-dark-theme-and-more|title=Internalz 1.3 brings style with a dark theme and more|last=Robitaille|first=Jason|publisher=[[PreCentral]]|date=2010-08-28|accessdateaccess-date=2011-02-11|archive-url=https://web.archive.org/web/20110512181830/http://www.precentral.net/internalz-1-3-brings-style-dark-theme-and-more|archive-date=2011-05-12|url-status=dead}}</ref>
* [[Safari (web browser)|Safari]] 5, 6 - not supported
|}
* [[Opera (web browser)|Opera]] 7, 8, 9, 10, 11 - not supported
* [[Google Chrome]] - supported<ref>{{cite web|title=Lifehacker - Google Chrome's Full List of Special about: Pages|url=http://lifehacker.com/5045164/google-chromes-full-list-of-special-about-pages}}</ref>
* [[Web (web browser)|Web]] - supported{{Citation needed|date=January 2010}}
* [[webOS|HP webOS]] - supported in-browser via a homebrew app called Internalz Pro<ref>{{cite web|url=http://www.precentral.net/internalz-1-3-brings-style-dark-theme-and-more|title=Internalz 1.3 brings style with a dark theme and more|last=Robitaille|first=Jason|publisher=[[PreCentral]]|date=2010-08-28|accessdate=2011-02-11}}</ref>
 
==References==
Line 46 ⟶ 70:
{{URI scheme}}
{{web browsers}}
{{Subject bar|portal1=Computer programming|portal2=Internet|d=y}}
 
[[Category:Web browsers]]
[[Category:URI schemes]]
[[Category:2011Internet introductionsproperties established in 2011]]