tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

src-isvalid.html (5940B)


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