Installation of a local virtual host with W3C Validator script. (http://monvalidator.org)
The validator return no results. When you validate the form after choosing elements and content types, none of corresponding URL are checked. (0 URL, 0 error, 0 Warning)
After analysis, the URLs tree to check is good. The function w3c_validator_site_validate_path() in w3c_validator_site.module don't return the results.
the function _w3c_validator_validate_uri() on line 215 must return $results['response'] for the test "if ($results['response']->code != 200)" on line 217.
This test must be change to check that "$results['response']" exist or not and then display the result or exit the function.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | w3cValidator.check_.for_.test.6.x-1.2.patch | 650 bytes | Pedro Lozano |
| #1 | w3cValidator.check_.for_.test.6.x-1.2.patch | 585 bytes | nicomar31 |
Comments
Comment #1
nicomar31 commentedCorresponding patch
Comment #2
Pedro Lozano commentedI haven't tested it but the patch is trivially correct, and if it works for you... :-)
I just improved the patch a little, as seen in system.module.
Thanks.
Comment #3
Pedro Lozano commentedCommited.
Comment #4
sdelbosc commentedJust to track the issue...
Comment #5
nicomar31 commentedI've tested the new version of the patch. It works fine for me.
thanks
Comment #6
powery commentedPatch #2 works great. Thanks.