Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset=utf-8>
<title>valid cite</title>
<ins cite="a:foo.com"></ins><!-- scheme-private -->
<ins cite="foo:/"></ins><!-- scheme-private-slash -->
<ins cite="foo://"></ins><!-- scheme-private-slash-slash -->
<ins cite="foo:/bar.com/"></ins><!-- scheme-private-path -->
<ins cite="foo://///////"></ins><!-- scheme-private-path-leading-slashes-only -->
<ins cite="foo://///////bar.com/"></ins><!-- scheme-private-path-leading-slashes-chars -->
<ins cite="foo:////://///"></ins><!-- scheme-private-path-leading-slashes-colon-slashes -->
<ins cite="c:/foo"></ins><!-- scheme-private-single-letter -->
<ins cite="madeupscheme:/example.com/"></ins><!-- scheme-private-single-slash -->
<ins cite="file:/example.com/"></ins><!-- scheme-file-single-slash -->
<ins cite="ftps:/example.com/"></ins><!-- scheme-ftps-single-slash -->
<ins cite="gopher:/example.com/"></ins><!-- scheme-gopher-single-slash -->
<ins cite="ws:/example.com/"></ins><!-- scheme-ws-single-slash -->
<ins cite="wss:/example.com/"></ins><!-- scheme-wss-single-slash -->
<ins cite="javascript:/example.com/"></ins><!-- scheme-javascript-single-slash -->
<ins cite="mailto:/example.com/"></ins><!-- scheme-mailto-single-slash -->
<ins cite="madeupscheme:example.com/"></ins><!-- scheme-private-no-slash -->
<ins cite="ftps:example.com/"></ins><!-- scheme-ftps-no-slash -->
<ins cite="gopher:example.com/"></ins><!-- scheme-gopher-no-slash -->
<ins cite="wss:example.com/"></ins><!-- scheme-wss-no-slash -->
<ins cite="mailto:example.com/"></ins><!-- scheme-mailto-no-slash -->
<ins cite="data:text/plain,foo"></ins><!-- scheme-data-no-slash -->
<ins cite="http://user:pass@foo:21/bar;par?b#c"></ins><!-- userinfo -->
<ins cite="http://[2001::1]"></ins><!-- host-ipv6 -->
<ins cite="http://[2001::1]:80"></ins><!-- host-ipv6-port -->
<ins cite="http://f:/c"></ins><!-- port-none-but-colon -->
<ins cite="http://f:0/c"></ins><!-- port-0 -->
<ins cite="http://f:00000000000000/c"></ins><!-- port-00000000000000 -->
<ins cite="http://f:00000000000000000000080/c"></ins><!-- port-00000000000000000000080 -->
<ins cite="http://a:b@c:29/d"></ins><!-- userinfo-host-port-path -->
<ins cite="http://foo.com:b@d/"></ins><!-- userinfo-username-non-alpha -->
<ins cite="http://foo/abcd?efgh?ijkl"></ins><!-- query-contains-question-mark -->
<ins cite="http://foo/abcd#foo?bar"></ins><!-- fragment-contains-question-mark -->
<ins cite="http://example.com/foo/%2e"></ins><!-- path-percent-encoded-dot -->
<ins cite="http://example.com/%20foo"></ins><!-- path-percent-encoded-space -->
<ins cite="http://example.com/©zbar"></ins><!-- path-non-ascii -->
<ins cite="http://example.com/foo%41%7a"></ins><!-- path-percent-encoded-multiple -->
<ins cite="http://example.com/foo%91"></ins><!-- path-percent-encoded-u0091 -->
<ins cite="http://example.com/foo%00"></ins><!-- path-percent-encoded-u0000 -->
<ins cite="http://example.com/%3A%3a%3C%3c"></ins><!-- path-percent-encoded-mixed-case -->
<ins cite="http://example.com/你好你好"></ins><!-- path-unicode-han -->
<ins cite="http://example.com//foo"></ins><!-- path-uFEFF -->
<ins cite="http://example.com/‮/foo/‭/bar"></ins><!-- path-u202E-u202D -->
<ins cite="http://💩"></ins><!-- host-is-pile-of-poo -->
<ins cite="http💩//:foo"></ins><!-- path-contains-pile-of-poo -->
<ins cite="http://example.com/foo?💩"></ins><!-- query-contains-pile-of-poo -->
<ins cite="http://example.com/foo#💩"></ins><!-- fragment-contains-pile-of-poo -->
<ins cite="http://192.0x00A80001"></ins><!-- host-192.0x00A80001 -->
<ins cite="http://%25DOMAIN:foobar@foodomain.com"></ins><!-- userinfo-username-contains-percent-encoded -->
<ins cite="http://@www.example.com"></ins><!-- userinfo-empty -->
<ins cite="http://:b@www.example.com"></ins><!-- userinfo-user-empty -->
<ins cite="http://a:@www.example.com"></ins><!-- userinfo-password-empty -->
<ins cite="http://GOO​⁠goo.com"></ins><!-- host-exotic-whitespace -->
<ins cite="http://www.foo。bar.com"></ins><!-- host-exotic-dot -->
<ins cite="http://Go.com"></ins><!-- host-fullwidth -->
<ins cite="http://你好你好"></ins><!-- host-idn-unicode-han -->
<ins cite="http://192.168.0.257/"></ins><!-- host-IP-address-broken -->
<ins cite="//foo/bar"></ins><!-- scheme-schemeless-relative -->
<ins cite="/"></ins><!-- path-slash-only-relative -->
<ins cite="/a/b/c"></ins><!-- path-simple-relative -->
<ins cite="/a%2fc"></ins><!-- path-percent-encoded-slash-relative -->
<ins cite="/a/%2f/c"></ins><!-- path-percent-encoded-slash-plus-slashes-relative -->
<ins cite="?"></ins><!-- query-empty-no-path-relative -->
<ins cite="#"></ins><!-- fragment-empty-hash-only-no-path-relative -->
<ins cite="#/"></ins><!-- fragment-slash-relative -->
<ins cite="#;?"></ins><!-- fragment-semicolon-question-mark-relative -->
<ins cite=""></ins><!-- fragment-non-ascii-relative -->
<ins cite="foo.com"></ins><!-- scheme-none-relative -->
<ins cite=":"></ins><!-- path-colon-relative -->
<ins cite=":a"></ins><!-- path-leading-colon-letter-relative -->
<ins cite=":foo.com"></ins><!-- path-leading-colon-chars-relative -->
<ins cite=":/"></ins><!-- path-leading-colon-slash-relative -->
<ins cite=":#"></ins><!-- path-leading-colon-hash-relative -->
<ins cite=":23"></ins><!-- path-leading-colon-number-relative -->
<ins cite="/:23"></ins><!-- path-slash-colon-number-relative -->
<ins cite="::"></ins><!-- path-leading-colon-colon-relative -->
<ins cite="::23"></ins><!-- path-colon-colon-number-relative -->
<ins cite="💩http://foo"></ins><!-- path-starts-with-pile-of-poo -->
<ins cite="/💩"></ins><!-- path-slash-pile-of-poo -->
<ins cite="File://foo/bar.html"></ins><!-- scheme-file-uppercase -->
<ins cite="file://C|/foo/bar"></ins><!-- scheme-file-slash-slash-c-bar -->
<ins cite="file://server/foo/bar"></ins><!-- scheme-file-host-included -->
<ins cite="file:///foo/bar.txt"></ins><!-- scheme-file-host-empty -->
<ins cite="file:"></ins><!-- scheme-file-scheme-only -->
<ins cite="file:/"></ins><!-- scheme-file-slash-only -->
<ins cite="file://"></ins><!-- scheme-file-slash-slash-only -->
<ins cite="file:///"></ins><!-- scheme-file-slash-slash-slash-only -->
<ins cite="file:test"></ins><!-- scheme-file-no-slash -->