Source code

Revision control

Copy as Markdown

Other Tools

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