W3C 验证器说“提要无法验证"“url 必须是完整的 URL"……它有什么问题? [英] W3C validator says 'feed does not validate' 'url must be a full URL'... whats wrong with it?

查看:68
本文介绍了W3C 验证器说“提要无法验证"“url 必须是完整的 URL"……它有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

验证我的提要,它有一个带有

Validating my feed, it has an enclosure with a URL of

https://archive.org/download/NigelFarageAPersonalMessageToNorthernIrelandVoters./Nigel%20Farage,%20a%20personal%20message%20to%20Northern%20Ireland%20voters..mp3

我知道这有点令人费解……但它有什么问题?在目录名中止?文件名中的双点?逗号?都是吗?

I know it is a bit convoluted... but what is wrong with it? The stop in the directory name? the double dot in the file name? the comma? all of em?

我已经查看了 URL 上的 RFC,但无法弄清楚(!).

I have looked at the RFC on URL's but cant make it out(!).

This feed does not validate.
line 441, column 2: url must be a full URL: https://archive.org/download/NigelFarageAPersonalMessageToNorthernIrelandVoters./Nigel%20Farage,%20a%20personal%20message%20to%20Northern%20Ireland%20voters..mp3 (4 occurrences) [help]
  <enclosure type="audio/mpeg" url="https://archive.org/download/NigelFarage ...
  ^

** 编辑 **

一个有用的(即使不正确)答案被添加(和删除...)显示了来自 w3c URL 验证器的结果 - https://validator.w3.org/checklink

A useful (even if incorrect) answer was added (and removed...) showing the result from the w3c URL validator - https://validator.w3.org/checklink

This Link Checker looks for issues in links, anchors and referenced objects in a Web page, CSS style sheet, or recursively on a whole Web site. For best results, it is recommended to first ensure that the documents checked use Valid (X)HTML Markup and CSS. The Link Checker is part of the W3C's validators and Quality Web tools.

如果你发现这个问题,你可能会发现链接检查器是一个有用的资源!

If you find this question, you may find the link checker a useful resource!

推荐答案

问题似乎是它是 HTTPS URL 而不是 HTTP URL.

The problem seems to be that it’s a HTTPS URL instead of a HTTP URL.

链接的错误文档,bar 的 foo 属性必须是完整的 URL,说:

The linked error documentation, foo attribute of bar must be a full URL, says:

如果这是指向网页的链接,则必须在开头包含http://",然后紧跟其后使用有效的域名.

If this is a link to a web page, you must include the "http://" at the beginning and immediately follow it with a valid domain name.

RSS 2.0 规范说明了 :

网址必须是 http 网址.

The url must be an http url.

如果您将 https://archive.org/download/... 更改为 http://archive.org/download/...,它会验证.

If you change https://archive.org/download/… to http://archive.org/download/…, it validates.

这篇关于W3C 验证器说“提要无法验证"“url 必须是完整的 URL"……它有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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