Fix false positives in duplicate link detection. (#1341)

Fixes #1336.
This commit is contained in:
Kirill Danshin 2017-04-08 23:22:12 +03:00 committed by Dmitri Shuralyov
parent fefc91af56
commit 15d266dab0
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ func TestDuplicatedLinks(t *testing.T) {
query := startQuery()
links := make(map[string]bool, 0)
query.Find("body a").Each(func(_ int, s *goquery.Selection) {
query.Find("body li > a:first-child").Each(func(_ int, s *goquery.Selection) {
t.Run(s.Text(), func(t *testing.T) {
href, ok := s.Attr("href")
if !ok {