Source code

Revision control

Copy as Markdown

Other Tools

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