View-source URI方案
view-source URI方案是部分网页浏览器采用的一种特殊URL,功效是显示指定资源的源代码。[1]
举例来说,显示URI为 http://www.example.com(页面存档备份,存于互联网档案馆) 的页面源代码只需使用:view-source:http://www.example.com
2011年5月25日,“view-source”URI方案在IANA[2]按RFC 4395正式注册。
浏览器支持
Mozilla Firefox和Internet Explorer两者支持此方案,不过Internet Explorer自Windows XP SP2开始因安全原因停止支持。[3]Firefox也遇到了类似的安全问题(结合view-source和javascript URI[4]),但在问题修复后于Firefox 1.5[5]中继续支持。
浏览器 | 是否支持 |
---|---|
Mozilla Firefox截止至46 | 支持 |
Mozilla Firefox自47开始 | 不支持[6] |
Mozilla SeaMonkey | 支持 |
Netscape | 支持 |
Internet Explorer 4、5、6 | 支持 |
Internet Explorer 6、7、8 | 不支持,自Windows XP SP2起 |
Safari 3.2.1 | 支持[來源請求] |
Safari 5, 6 | 不支持 |
Opera 7, 8, 9, 10, 11 | 不支持 |
Opera及更新版本 | 支持 |
Google Chrome | 支持[7] |
Web | 支持[來源請求] |
HP webOS | 支持,在名为Internalz Pro的自产浏览器内[8] |
参考资料
- ^ IETF Draft
- ^ Yevstifeyev, M. 'view-source' URI scheme registration template. [17 July 2011]. (原始内容存档于2022-05-13).
- ^ view-source Protocol. MSDN. [2009-02-25]. (原始内容存档于2017-09-01).
- ^ mikx. Mozilla Firefox view-source:javascript url Code Execution Exploit. milw0rm. 2005-05-21 [2009-02-25]. (原始内容存档于2007-08-14).
- ^ jonathan. View Source Bug Fixed and a Tip. blogzilla. 2005-11-30 [2009-02-25]. (原始内容存档于2021-04-13).
- ^ Firefox 47 for developers. [2016-06-28]. (原始内容存档于2018-07-07).
- ^ Lifehacker - Google Chrome's Full List of Special about: Pages. [2016-06-28]. (原始内容存档于2013-06-27).
- ^ Robitaille, Jason. Internalz 1.3 brings style with a dark theme and more. PreCentral. 2010-08-28 [2011-02-11]. (原始内容存档于2011-05-12).
- 查
- 论
- 编
- aaa(英语:AAA protocol)
- aaas(英语:AAA protocol)
- about
- acap(英语:Application Configuration Access Protocol)
- cap
- cid
- crid(英语:Content Reference Identifier)
- data(英语:data URI scheme)
- dav
- dict
- dns
- fax
- file(英语:file URI scheme)
- ftp
- geo(英语:Geo URI)
- go
- gopher
- h323
- http
- https
- iax(英语:Inter-Asterisk eXchange)
- im
- imap
- info(英语:Info URI scheme)
- ldap
- mailto(英语:mailto)
- mid
- news
- nfs
- nntp
- pop
- rsync
- pres(英语:Presence information)
- rtsp
- sip(英语:SIP address)
- S-HTTP
- sips(英语:SIP address)
- snmp
- tag(英语:Tag URI)
- tel
- telnet
- tftp
- urn
- view-source
- wais(英语:Wide area information server)
- ws
- wss
- xmpp
- afp
- aim
- apt
- bolo(英语:Bolo (1987 video game))
- bzr(英语:Bazaar (software))
- callto
- coffee
- cvs
- daap(英语:Digital Audio Access Protocol)
- dsnp(英语:Distributed Social Networking Protocol)
- ed2k
- feed(英语:feed URI scheme)
- fish(英语:Files transferred over shell protocol)
- gg(英语:Gadu-Gadu)
- git
- gizmoproject(英语:Gizmo5)
- irc
- ircs
- itms
- javascript
- ldaps
- magnet
- mms
- msnim
- origin
- secondlife
- skype
- spotify
- ssh
- svn
- sftp
- smb
- sms
- steam
- webcal(英语:webcal)
- winamp
- wyciwyg(英语:WYCIWYG)
- xfire(英语:xfire)
- ymsgr
- tencent://
- weixin://
- thunder://
- alipays://
- ss://
网络协议列表(OSI模型)(英语:List of network protocols (OSI model))
|