“此HTML5文档检查接口已被弃用” [英] "This interface to HTML5 document checking is deprecated"

查看:146
本文介绍了“此HTML5文档检查接口已被弃用”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行项目时,我正在检查W3C错误(使用 html validator plug-in for Firefox),并且在这个过程中,我发现了一个警告,从来没有出现过。



< blockquote>

警告:此HTML5文档检查接口已弃用





  • 因此,我首先想到的是,让我看看Google这个,看看我能找到关于此警告的信息,但我没有得到任何东西。
  • 尝试了另一种方法,即实际使用 W3C Validator ,然后查看结果。但是,我收到了同样的警告(如下所示),但这次它指向我另一个指向再次检查的链接,我这样做了,但我不明白为什么我必须检查 < a href =https://validator.w3.org/nu/ =nofollow> W3C验证器NU ,而不是 W3C validator original 照常。



此HTML5文档检查接口已弃用。在 https://validator.w3.org上使用Nu
Html Checker / nu /

那么这个警告的含义是什么以及它出现的原因是什么?



PS 。 - 我刚刚注意到这种情况发生在几天前我目前的项目和AFAIR上。






编辑 - 它停止给我上面的警告,现在它显示以下错误:


错误:在线解析器错误





错误:转到菜单:HTML Validator / W3c在线验证器查看错误

转至 W3C验证器 我现在可以看到它已针对 W3C验证程序NU 进行更新



EDIT2 - 由于前一段时间我停止在插件中看到任何错误。看起来开发人员更新了插件。到目前为止这样好。

解决方案

W3C HTML Checker的维护者在这里。我是那个在几个星期前添加了警告:HTML5文档检查的这个接口已被弃用的消息。



现在您实际上不会看到该消息,因为与此同时,我设置了一个机制,使得请求可以自动从旧版W3C标记验证器重定向到 https://validator.w3.org/ 发送到当前的W3C HTML Checker,网址为 https:// validator .w3.org / nu /



如果您有兴趣,请更改diff:

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

所有这些都说明了,如果您将旧版的SOAP 1.2 API用于遗留的Markup Validator(或者使用某种依赖于它的工具),现在可以看到一条消息说:


HTML5文档检查的这个接口已经过时。改为使用界面 https://validator.w3.org/nu/


如果您在使用某个工具/库的输出中看到该消息,则需要将其作为错误报告给该开发人员工具/库,以便他们可以更新它,而不是使用当前API访问 https://validator.w3.org/ nu / 检查器。

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.

解决方案

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.

这篇关于“此HTML5文档检查接口已被弃用”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆