"This interface to HTML5 document checking is deprecated"

6.8k views Asked by At

While doing a project I was checking it for W3C errors (using html validator plug-in for Firefox), and in the process I found a warning that never showed up to me ever before.

"Warning: This interface to HTML5 document checking is deprecated"

  • So, first thing came up to my mind, "let me Google this" and see what information I could find about this warning, but I didn't get anything.
  • Tried another approach, which was going to the actual W3C Validator and see the outcome.But, I was given the same warning (shown below), but this time it was pointing me to a different link to check again, which I did, but I couldn't understand why I had to check in W3C validator NU and not in W3C validator original as usual.

This interface to HTML5 document checking is deprecated. Use the Nu Html Checker at https://validator.w3.org/nu/ directly instead.

So what is the meaning of this warning and why it shows up?

P.S. - I just noticed this is happening across my current projects and AFAIR since a few days ago.


EDIT - It stopped giving me the warning above, now it shows the following errors:

Error: Online parser error

And

Error: Go to menu: HTML Validator/W3c Online validator to see the error

Going to W3C Validator I can now see it is updated for W3C validator NU

EDIT2 - Since a while ago I've stopped seeing any error in the plugin. It looks the developers updated the plugin. So far so good.

2

There are 2 answers

1
sideshowbarker On BEST ANSWER

Maintainer of the W3C HTML Checker here. I'm the one who added that “Warning: This interface to HTML5 document checking is deprecated” message a few weeks back.

You actually won’t see that message now, because in the mean time I’ve set up a mechanism that causes requests to be automatically redirected from the old legacy W3C Markup Validator at https://validator.w3.org/ to the current W3C HTML Checker at https://validator.w3.org/nu/

If you're curious, here's the change diff:

https://github.com/w3c/markup-validator/commit/1b12fe496bb457950944782f133f547cee3cef56

All that said, if you’re using the obsolete SOAP 1.2 API to the legacy Markup Validator (or using some tool that relies on it), you may now see a message saying:

This interface to HTML5 document checking is obsolete. Use an interface to https://validator.w3.org/nu/ instead.

If you’re seeing that message in output from some tool/library you use, then you need to report it as a bug to the developers of that tool/libary so they can update it to instead use the current API to the https://validator.w3.org/nu/ checker.

8
Emma Ramirez On

All it means is that the old validator on the W3C's site is no longer able to accurately check the current spec of HTML5 that browsers use. Certain elements (like hgroup) that were in the process of being adopted were ultimately dropped, while others were altered or added.

So all it means is that that validator is outdated and thus not the best place to check your HTML5 documents.