HTML-Proofer 4 has been fundamentally rewritten to address many problems, provide better expected defaults, and make it easier for future updates.
The biggest change is that the HTML parsing check has been removed. HTML parsers like Nokogumbo/Nokogiri, and indeed, many browsers, are fairly generous when it comes to accepting malformed HTML. This feature detected more false issues than actual ones.
You can also set your own custom reporter, to format results as you see fit. See the README for more info on how to do this.
Other changes include:
- Many of the configuration options have been renamed to be consistent. For example,
url_ignorehas becomeignore_urls, andurl_swapbecameswap_urls alt_ignorewas removed; useignore_missing_altto ignore missingaltattributes, andignore_empty_altto ignorealtattributes that are empty (eg.,<img alt>or<img alt="">)check_faviconandcheck_opengraphhave been removed, as haschecks_to_ignore. Pass in checks using thechecksconfiguration option. See the README for more info.check_img_httpwas removed. All URLs are expected to be HTTPS; setenforce_httpstofalseif you prefer keeping HTTP images aroundexternal_onlywas removedfile_ignorewas renamed toignore_fileshttp_status_ignorewas renamed toignore_status_codesinternal_domainswas removed; useswap_urlsto prepend any necessary domain names- Attributes can now be swapped with the
swap_attributesoption typhoeus_configandhydra_confighave been renamed to justtyphoeusandhydra- Configuring the cache can now be down through the
cacheconfig option, rather thantimeframeandstorage_dir - Parallel file processing is on by default
- Assuming extensions (
.html) is enabled by default. Jekyll and other static sites use this. - The cache is much more performant