View-source URI scheme: Difference between revisions

Content deleted Content added
Importing Wikidata short description: "URI scheme on browsers"
m Reverted edit by 2409:40E4:2B:FDD1:FCB1:46FF:FE0D:C82A (talk) to last version by 217.180.35.9
 
(4 intermediate revisions by 4 users not shown)
Line 3:
{{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>https://example.com</nowiki></code>''' should show the source of the page located at <code>[https://example.com https://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>
Line 17:
|publisher=MSDN
|access-date=2009-02-25
}}</ref> Firefox also suffered a similar security issue (by combining view-source and [[JavaScript]] URIs<ref>{{cite web
|url=http://www.milw0rm.com/id.php?id=1007
|access-date=2009-02-25