Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

W3C Validator

Security covered Under active development 609 sites

This module provides an interface for the W3C Markup Validator, helping to ensure your website is properly coded. It allows you to validate pages automatically when content is published or updated, or to validate all pages at once and view a report. It can also optionally use the HTML Tidy library to validate private or unpublished content.

W3C Validator provides a Drupal interface to use the W3C Markup Validator. Keeping valid pages is one step into maintaining a properly coded site.

This module let's you :
- validate a new page when a new node is published or when a published node is changed.
- validate all page at once and display a validity report.
NOTE: validation is done as an anonymous user.

For testing you could use the official W3C validator API endpoint at http://validator.w3.org/check but this is highly discouraged on medium+ sites and could be considered abuse of service.
For large sites, you should download the w3c validator script and install it on your own server. For Debian based distributions you can get this by installing the w3c_markup_validator package.

To administrate W3C Validator, go to : /admin/config/development/w3c_validator
To validate manually a page, go to : /validator
To check your site and validate it all, go to : /admin/reports/w3c_validator

Important :
- This module must be installed via composer since it has external dependencies. To install, run composer require drupal/w3c_validation from your drupal root.
- If using this module in local environment, you won't be able to use online W3C service since it won't be able to access you website source code. To do so, you must therefore install W3C validator service locally (see above).

---
NOTE :
From version 6.x-1.2 you can alternatively use the HTML Tidy library via its PHP extension. This also allows you to validate private pages, ie: unpublished nodes, private views.

Development sponsored by Drupal Addict.

Drupal 9–11

Ask your assistant about W3C Validator

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jul 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.1.0 Stable 9–11 Oct 8, 2024
2.0.1 Stable 9–10 Jul 22, 2023
2.0.0 Stable 8–10 Jul 22, 2023
2.x-dev Dev 9–11 Jul 22, 2023