diff --git a/htmltest/check-link_test.go b/htmltest/check-link_test.go index c173fb1..b6cb949 100644 --- a/htmltest/check-link_test.go +++ b/htmltest/check-link_test.go @@ -360,6 +360,12 @@ func TestAnchorHashBrokenIgnore(t *testing.T) { tExpectIssueCount(t, hT2, 0) } +func TestAnchorHashInPre163(t *testing.T) { + // passes for valid self hash + hT := tTestFile("fixtures/links/hash-in-pre-163.html") + tExpectIssueCount(t, hT, 0) +} + func TestAnchorDirectoryRootResolve(t *testing.T) { // properly resolves implicit /index.html in link paths hT := tTestFile("fixtures/links/linkToFolder.html") diff --git a/htmltest/fixtures/links/hash-in-pre-163.html b/htmltest/fixtures/links/hash-in-pre-163.html new file mode 100644 index 0000000..5b5d5fb --- /dev/null +++ b/htmltest/fixtures/links/hash-in-pre-163.html @@ -0,0 +1,7 @@ + + +
1
+1 + +2 +2