A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "URL schemes"

From WHATWG Wiki
Jump to: navigation, search
m (Annevk moved page Registry-URL-schemes to URL schemes: This page is useless. Lets use it define about/javascript for now, until they have a home.)
(define about URLs)
Line 1: Line 1:
* [https://github.com/josephholsten/about-uri-scheme/raw/master/draft-holsten-about-uri-scheme-07.txt about:]
+
Licensing: this page is under CC0, not the MIT License.
 +
 
 +
== about: URLs ==
 +
 
 +
'''about: URLs''' server as identifier, potentially with an associated resource. The identifier is given in the URL's scheme data.
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Identifier
 +
! Resource
 +
! Notes
 +
|-
 +
| "blank"
 +
| A resource whose Content-Type is text/html;charset=utf-8 and entity body is the empty string.
 +
|
 +
|-
 +
| "invalid"
 +
| -
 +
| Used to represent a network error.
 +
|-
 +
| "legacy-compat"
 +
| -
 +
| Used in HTML for XSLT serializers.
 +
|-
 +
| "unicorn"
 +
| A resource whose Content-Type is image/svg+xml and entity body is the contents of [http://html5.org/temp/unicorn.svg unicorn.svg].
 +
| Unicorn!
 +
|}
 +
 
 +
To '''obtain a resource from an about: URL''', run these steps:
 +
 
 +
* If URL's scheme data is not the literal string "about" or "invalid", return a network error. (URL's query is simply not taken into account and can be anything.)
 +
* Return the resource corresponding to the identifier as listed in the table above, with HTTP status code 200 and HTTP status text "OK".
 +
 
 +
 
 +
== Others ==
 +
 
 
* [http://tools.ietf.org/html/draft-hoehrmann-javascript-scheme javascript:]
 
* [http://tools.ietf.org/html/draft-hoehrmann-javascript-scheme javascript:]
 
* [http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol ws: & wss:]
 
* [http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol ws: & wss:]
* Many more. See [http://en.wikipedia.org/wiki/URI_scheme Wikipedia]
+
* See [http://en.wikipedia.org/wiki/URI_scheme Wikipedia]
 +
* See [http://www.iana.org/assignments/uri-schemes.html IANA]
  
 
[[Category:Registries]]
 
[[Category:Registries]]

Revision as of 12:59, 28 November 2012

Licensing: this page is under CC0, not the MIT License.

about: URLs

about: URLs server as identifier, potentially with an associated resource. The identifier is given in the URL's scheme data.

Identifier Resource Notes
"blank" A resource whose Content-Type is text/html;charset=utf-8 and entity body is the empty string.
"invalid" - Used to represent a network error.
"legacy-compat" - Used in HTML for XSLT serializers.
"unicorn" A resource whose Content-Type is image/svg+xml and entity body is the contents of unicorn.svg. Unicorn!

To obtain a resource from an about: URL, run these steps:

  • If URL's scheme data is not the literal string "about" or "invalid", return a network error. (URL's query is simply not taken into account and can be anything.)
  • Return the resource corresponding to the identifier as listed in the table above, with HTTP status code 200 and HTTP status text "OK".


Others