tor-browser

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

src-isvalid.html (6644B)


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