src-isvalid.html (6644B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>valid src</title> 4 <iframe src="a:foo.com"></iframe><!-- scheme-private --> 5 <iframe src="foo:/"></iframe><!-- scheme-private-slash --> 6 <iframe src="foo://"></iframe><!-- scheme-private-slash-slash --> 7 <iframe src="foo:/bar.com/"></iframe><!-- scheme-private-path --> 8 <iframe src="foo://///////"></iframe><!-- scheme-private-path-leading-slashes-only --> 9 <iframe src="foo://///////bar.com/"></iframe><!-- scheme-private-path-leading-slashes-chars --> 10 <iframe src="foo:////://///"></iframe><!-- scheme-private-path-leading-slashes-colon-slashes --> 11 <iframe src="c:/foo"></iframe><!-- scheme-private-single-letter --> 12 <iframe src="madeupscheme:/example.com/"></iframe><!-- scheme-private-single-slash --> 13 <iframe src="file:/example.com/"></iframe><!-- scheme-file-single-slash --> 14 <iframe src="ftps:/example.com/"></iframe><!-- scheme-ftps-single-slash --> 15 <iframe src="gopher:/example.com/"></iframe><!-- scheme-gopher-single-slash --> 16 <iframe src="ws:/example.com/"></iframe><!-- scheme-ws-single-slash --> 17 <iframe src="wss:/example.com/"></iframe><!-- scheme-wss-single-slash --> 18 <iframe src="javascript:/example.com/"></iframe><!-- scheme-javascript-single-slash --> 19 <iframe src="mailto:/example.com/"></iframe><!-- scheme-mailto-single-slash --> 20 <iframe src="madeupscheme:example.com/"></iframe><!-- scheme-private-no-slash --> 21 <iframe src="ftps:example.com/"></iframe><!-- scheme-ftps-no-slash --> 22 <iframe src="gopher:example.com/"></iframe><!-- scheme-gopher-no-slash --> 23 <iframe src="wss:example.com/"></iframe><!-- scheme-wss-no-slash --> 24 <iframe src="mailto:example.com/"></iframe><!-- scheme-mailto-no-slash --> 25 <iframe src="data:text/plain,foo"></iframe><!-- scheme-data-no-slash --> 26 <iframe src="http://user:pass@foo:21/bar;par?b#c"></iframe><!-- userinfo --> 27 <iframe src="http://[2001::1]"></iframe><!-- host-ipv6 --> 28 <iframe src="http://[2001::1]:80"></iframe><!-- host-ipv6-port --> 29 <iframe src="http://f:/c"></iframe><!-- port-none-but-colon --> 30 <iframe src="http://f:0/c"></iframe><!-- port-0 --> 31 <iframe src="http://f:00000000000000/c"></iframe><!-- port-00000000000000 --> 32 <iframe src="http://f:00000000000000000000080/c"></iframe><!-- port-00000000000000000000080 --> 33 <iframe src="http://a:b@c:29/d"></iframe><!-- userinfo-host-port-path --> 34 <iframe src="http://foo.com:b@d/"></iframe><!-- userinfo-username-non-alpha --> 35 <iframe src="http://foo/abcd?efgh?ijkl"></iframe><!-- query-contains-question-mark --> 36 <iframe src="http://foo/abcd#foo?bar"></iframe><!-- fragment-contains-question-mark --> 37 <iframe src="http://example.com/foo/%2e"></iframe><!-- path-percent-encoded-dot --> 38 <iframe src="http://example.com/%20foo"></iframe><!-- path-percent-encoded-space --> 39 <iframe src="http://example.com/©zbar"></iframe><!-- path-non-ascii --> 40 <iframe src="http://example.com/foo%41%7a"></iframe><!-- path-percent-encoded-multiple --> 41 <iframe src="http://example.com/foo%91"></iframe><!-- path-percent-encoded-u0091 --> 42 <iframe src="http://example.com/foo%00"></iframe><!-- path-percent-encoded-u0000 --> 43 <iframe src="http://example.com/%3A%3a%3C%3c"></iframe><!-- path-percent-encoded-mixed-case --> 44 <iframe src="http://example.com/你好你好"></iframe><!-- path-unicode-han --> 45 <iframe src="http://example.com//foo"></iframe><!-- path-uFEFF --> 46 <iframe src="http://example.com//foo//bar"></iframe><!-- path-u202E-u202D --> 47 <iframe src="http://💩"></iframe><!-- host-is-pile-of-poo --> 48 <iframe src="http💩//:foo"></iframe><!-- path-contains-pile-of-poo --> 49 <iframe src="http://example.com/foo?💩"></iframe><!-- query-contains-pile-of-poo --> 50 <iframe src="http://example.com/foo#💩"></iframe><!-- fragment-contains-pile-of-poo --> 51 <iframe src="http://192.0x00A80001"></iframe><!-- host-192.0x00A80001 --> 52 <iframe src="http://%25DOMAIN:foobar@foodomain.com"></iframe><!-- userinfo-username-contains-percent-encoded --> 53 <iframe src="http://@www.example.com"></iframe><!-- userinfo-empty --> 54 <iframe src="http://:b@www.example.com"></iframe><!-- userinfo-user-empty --> 55 <iframe src="http://a:@www.example.com"></iframe><!-- userinfo-password-empty --> 56 <iframe src="http://GOOgoo.com"></iframe><!-- host-exotic-whitespace --> 57 <iframe src="http://www.foo。bar.com"></iframe><!-- host-exotic-dot --> 58 <iframe src="http://Go.com"></iframe><!-- host-fullwidth --> 59 <iframe src="http://你好你好"></iframe><!-- host-idn-unicode-han --> 60 <iframe src="http://192.168.0.257/"></iframe><!-- host-IP-address-broken --> 61 <iframe src="//foo/bar"></iframe><!-- scheme-schemeless-relative --> 62 <iframe src="/"></iframe><!-- path-slash-only-relative --> 63 <iframe src="/a/b/c"></iframe><!-- path-simple-relative --> 64 <iframe src="/a%2fc"></iframe><!-- path-percent-encoded-slash-relative --> 65 <iframe src="/a/%2f/c"></iframe><!-- path-percent-encoded-slash-plus-slashes-relative --> 66 <iframe src="?"></iframe><!-- query-empty-no-path-relative --> 67 <iframe src="#"></iframe><!-- fragment-empty-hash-only-no-path-relative --> 68 <iframe src="#/"></iframe><!-- fragment-slash-relative --> 69 <iframe src="#;?"></iframe><!-- fragment-semicolon-question-mark-relative --> 70 <iframe src="#β"></iframe><!-- fragment-non-ascii-relative --> 71 <iframe src="foo.com"></iframe><!-- scheme-none-relative --> 72 <iframe src=":"></iframe><!-- path-colon-relative --> 73 <iframe src=":a"></iframe><!-- path-leading-colon-letter-relative --> 74 <iframe src=":foo.com"></iframe><!-- path-leading-colon-chars-relative --> 75 <iframe src=":/"></iframe><!-- path-leading-colon-slash-relative --> 76 <iframe src=":#"></iframe><!-- path-leading-colon-hash-relative --> 77 <iframe src=":23"></iframe><!-- path-leading-colon-number-relative --> 78 <iframe src="/:23"></iframe><!-- path-slash-colon-number-relative --> 79 <iframe src="::"></iframe><!-- path-leading-colon-colon-relative --> 80 <iframe src="::23"></iframe><!-- path-colon-colon-number-relative --> 81 <iframe src="💩http://foo"></iframe><!-- path-starts-with-pile-of-poo --> 82 <iframe src="/💩"></iframe><!-- path-slash-pile-of-poo --> 83 <iframe src="File://foo/bar.html"></iframe><!-- scheme-file-uppercase --> 84 <iframe src="file://C|/foo/bar"></iframe><!-- scheme-file-slash-slash-c-bar --> 85 <iframe src="file://server/foo/bar"></iframe><!-- scheme-file-host-included --> 86 <iframe src="file:///foo/bar.txt"></iframe><!-- scheme-file-host-empty --> 87 <iframe src="file:"></iframe><!-- scheme-file-scheme-only --> 88 <iframe src="file:/"></iframe><!-- scheme-file-slash-only --> 89 <iframe src="file://"></iframe><!-- scheme-file-slash-slash-only --> 90 <iframe src="file:///"></iframe><!-- scheme-file-slash-slash-slash-only --> 91 <iframe src="file:test"></iframe><!-- scheme-file-no-slash -->