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="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💩//:foo"></video><!-- path-contains-pile-of-poo -->
<video src="http://%25DOMAIN:foobar@foodomain.com"></video><!-- userinfo-username-contains-percent-encoded -->
<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="/💩"></video><!-- path-slash-pile-of-poo -->
<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:test"></video><!-- scheme-file-no-slash -->