tor-browser

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

href-isvalid.html (6557B)


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