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