<html>
  Index of /

  <a>no href</a>
  <a href='/'>self link</a>
  <a href='.'>self link</a>
  <a href='http://example.com'>external link</a>
</html>

<html>
  Index of /

  <a>no href</a>
  <a href='/'>self link</a>
  <a href='.'>self link</a>
  <a href='?foo'>self link with query</a>
  <a href='#test'>self link with hash</a>
  <a href='http://example.com'>external link</a>
</html>

Add tests for query and hash links in indexof
Add tests for query and hash links in indexof
