You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hash not exist error(unexpected), as well as without trailing hash(expected) is printed
Expected behavior
(Hash is properly tested, and) Only without trailing hash error is printed.
> bundle exec htmlproofer ./test
Running 3 checks (Links, Images, Scripts) in ["./test"] on *.html files...
Process.fork is not supported by this Ruby
Ran on 2 files!
For the Links check, the following failures were found:
* In ./test/index.html (line 4):
internally linking to a directory foo/bar#hash without trailing slash
HTML-Proofer found 1 failure!
Actual behavior
> bundle exec htmlproofer ./test
Running 3 checks (Links, Images, Scripts) in ["./test"] on *.html files...
Process.fork is not supported by this Ruby
Ran on 2 files!
For the Links check, the following failures were found:
* In ./test/index.html (line 4):
internally linking to a directory foo/bar#hash without trailing slash
For the Links > Internal check, the following failures were found:
* In ./test/index.html (line 4):
internally linking to foo/bar#hash; the file exists, but the hash 'hash' does not
HTML-Proofer found 2 failures!
Versions
Operating System: Windows 10 Home 21H2
Ruby: ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
html-proofer: 4.0.0.rc3
The text was updated successfully, but these errors were encountered:
Amazing issue report, thank you so much. I will look at this within the next day or so, I just wanted to say how much I appreciate the thoroughness here.
Summary
When the hash
foo/bar/index.html#hash
exists, linking tofoo/bar#hash
(withoutindex.html
and trailing slash) results inSteps to reproduce
Hash not exist
error(unexpected), as well aswithout trailing hash
(expected) is printedExpected behavior
(Hash is properly tested, and) Only
without trailing hash
error is printed.Actual behavior
Versions
Operating System:
Windows 10 Home 21H2
Ruby:
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
html-proofer:
4.0.0.rc3
The text was updated successfully, but these errors were encountered: