aim42 / htmlSanityCheck

Standalone (batch- and command-line) and Gradle-plugin html sanity checker - detects missing images, dead links and cross-references, duplicate link targets (anchors) and the like.
Apache License 2.0
67 stars 42 forks source link

localResource check if HtmlFile #153

Open soukainafir opened 6 years ago

soukainafir commented 6 years ago

The hrefs need to be valid html links and we should check the regex before processing the file. Noticed this when processing pages containing javacript scripts href=javascript:show(id) for example, this gives the following error : groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#. Cannot resolve which method to invoke for [class java.lang.String, null] due to overlapping prototypes between: [class java.lang.String, class java.lang.String] [class java.lang.String, class java.io.File]

rdmueller commented 6 years ago

I have the same problem with file://URIs...

gernotstarke commented 6 years ago

thx for mentioning... Currently I cannot give an estimation for a fix-date.. but I promise to look into it :-)

vogella commented 6 years ago

We are also affected. cc @simonscholz.

Maybe @joschi would be able to help here again?

gernotstarke commented 6 years ago

I'd be most grateful for help... @SimonScholz or @joschi, if you like I can give you commit rights so you can fix and don't need to wait for me to accept the PRs