View-source URI scheme: Difference between revisions

Content deleted Content added
rv vandalism ~ Undid revision 1058149364 by 2001:EE0:4FB3:97B0:5513:25DF:CB62:AC95 (talk)
m Reverted edit by 2409:40E4:2B:FDD1:FCB1:46FF:FE0D:C82A (talk) to last version by 217.180.35.9
 
(35 intermediate revisions by 24 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''' [[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://toolsdatatracker.ietf.org/htmldoc/draft-yevstifeyev-view-source-uri/ IETF|title=The Draft]'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, the [[Uniform Resource Identifier|URI]] '''<code>view-source:<nowiki>httphttps://example.com</nowiki></code>''' should show the source of the page located at <code>[httphttps://example.com httphttps://example.com]</code>.
 
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=https://www.iana.org/assignments/uri-schemes/prov/view-source|access-date=17 July 2011}}</ref> per RFC 4395.
Line 13 ⟶ 17:
|publisher=MSDN
|access-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
|access-date=2009-02-25
Line 29 ⟶ 33:
|date=2005-11-30
|access-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=https://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|work=Mozilla|access-date=2009-04-22}}</ref>
 
{| class="wikitable sortable"
Line 54 ⟶ 58:
| [[Opera (web browser)|Opera]] 15 and up || {{yes|supported}}
|-
| [[Google Chrome]] || {{yes|supported}}<ref>{{cite web|title=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>
|-
| [[Web (web browser)|Web]] || {{yes|supported}}
Line 66 ⟶ 70:
{{URI scheme}}
{{web browsers}}
{{Subject bar|portal1=Computer programming|portal2=Internet|d=y}}
 
[[Category:Web browsers]]
[[Category:URI schemes]]
[[Category:Computer-relatedInternet introductionsproperties established in 2011]]