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_ignore
has becomeignore_urls
, andurl_swap
becameswap_urls
alt_ignore
was removed; useignore_missing_alt
to ignore missingalt
attributes, andignore_empty_alt
to ignorealt
attributes that are empty (eg.,<img alt>
or<img alt="">
)check_favicon
andcheck_opengraph
have been removed, as haschecks_to_ignore
. Pass in checks using thechecks
configuration option. See the README for more info.check_img_http
was removed. All URLs are expected to be HTTPS; setenforce_https
tofalse
if you prefer keeping HTTP images aroundexternal_only
was removedfile_ignore
was renamed toignore_files
http_status_ignore
was renamed toignore_status_codes
internal_domains
was removed; useswap_urls
to prepend any necessary domain names- Attributes can now be swapped with the
swap_attributes
option typhoeus_config
andhydra_config
have been renamed to justtyphoeus
andhydra
- Configuring the cache can now be down through the
cache
config option, rather thantimeframe
andstorage_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