Source code

Revision control

Copy as Markdown

Other Tools

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