Source code

Revision control

Copy as Markdown

Other Tools

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