htmlSanityCheck icon indicating copy to clipboard operation
htmlSanityCheck copied to clipboard

False positives: named anchors in same file

Open matthiaskraaz opened this issue 6 years ago • 1 comments

This document:

<html><body>
<a href="#Anchorname">linked text</a>
<a name="Anchorname">a named anchor</a>
</body>
</html>

gives a false positive:

link target "Anchorname" missing

build.gradle:

plugins {
  id 'org.aim42.htmlSanityCheck' version '1.1.0'
}
htmlSanityCheck {
    sourceDir = new File( "$projectDir/test" )
}

matthiaskraaz avatar Apr 03 '19 07:04 matthiaskraaz

We should at first provide a regression test.

ascheman avatar Jan 28 '24 07:01 ascheman