grunt-html-validation icon indicating copy to clipboard operation
grunt-html-validation copied to clipboard

Validation service changed

Open lawlesscreation opened this issue 10 years ago • 11 comments

Looks like the W3C are throwing a new warning out when using their service:

1=> "This interface to HTML5 document checking is deprecated. Use the Nu Html Checker at https://validator.w3.org/nu/ directly instead." Line no: undefined
No of errors: 1

Might be a good idea to update the plugin to use https://validator.w3.org/nu/

lawlesscreation avatar Jun 08 '15 07:06 lawlesscreation

:+1:

witrin avatar Jun 08 '15 11:06 witrin

:+1:

danielmohacsi avatar Jun 08 '15 13:06 danielmohacsi

Looks like the W3C are throwing a new warning out when using their service:

1=> "This interface to HTML5 document checking is deprecated. Use the Nu Html Checker at https://validator.w3.org/nu/ directly instead." Line no: undefined

Yeah, I just pushed that warning to the checker's XML-format output facet a few hours ago.

Might be a good idea to update the plugin to use https://validator.w3.org/nu/

Yup. If there's any problem with the warning that's creating issues for users I could revert it temporarily. But it's there for a reason.

sideshowbarker avatar Jun 08 '15 13:06 sideshowbarker

It is a problem. It's driving me crazy for half a day. Getting errors (with a loud beep) for no particular reason every time I change a few lines is not helping productivity. Tumbs up for any, even temporary solution, ASAP pleas!!!

retan avatar Jun 08 '15 19:06 retan

This error is keeping my project from building. I tried changing the 'serverUrl' option to https://validator.w3.org/nu/ but then I get a network error. Am I supposed to use this url to remove the error, or is there something else I need to do? heeelp :/

embpdaniel avatar Jun 08 '15 20:06 embpdaniel

It's not a long term solution, but you can add the error to relaxerrors:

relaxerror: [
            'This interface to HTML5 document checking is deprecated.'
        ]

Like I say, not a long term solution.

lawlesscreation avatar Jun 09 '15 08:06 lawlesscreation

@lawlesscreation Thank you, this will do the trick for now. It works :)

embpdaniel avatar Jun 09 '15 15:06 embpdaniel

@lawlesscreation Thank you.

retan avatar Jun 09 '15 17:06 retan

I've switched to grunt-html. With this plugin there is no need to be online and it uses the new validator.

witrin avatar Jun 22 '15 10:06 witrin

I've switched to grunt-html. With this plugin there is no need to be online and it uses the new validator.

Aha. Actually I had misread the name of the repo this issue tracker is for. I had thought this actually was the grunt-html repo, which I already knew used the standalone vnu.jar release of the checker. So I had been wondering why emitting the new warning message was causing problems for the grunt-html. Now I understand that this issue is in a tracker for different repo, grunt-html-validator.

So I think the solution here for everybody is to for everybody who wants HTML checker integration with grunt to just use the grunt-html tool, which as far as I can is a superior solution to grunt-html-validator in pretty much every way. For one thing, given that is repo hasn't an substantive updates in a year, and there are no comments here in this issue from the grunt-html-validator maintainer @praveenvijayan.

sideshowbarker avatar Jun 22 '15 11:06 sideshowbarker

I tried the relaxerror option or using a different URL but in any combination I get a network error.

I suspect a timeout? large files? any idea?

validation: {
      options: {
        reportpath: false,
        reset: true,
        serverURL: 'https://validator.w3.org/nu/',
        relaxerror: [
          'This interface to HTML5 document checking is deprecated.'
        ]
      },
      files: {
        src: ["build/**/*.html", "!build/**/ajax-*"]
      }
    }

markusfalk avatar Aug 24 '15 13:08 markusfalk