url - W3C 验证器说 'feed does not validate' 'url must be a full URL' ... 有什么问题吗?

标签 url rss w3c w3c-validation rfc

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

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

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

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

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
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.

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

最佳答案

问题似乎是它是一个 HTTPS URL 而不是 HTTP URL。

链接的错误文档,foo attribute of bar must be a full URL ,说:

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 spec says about <enclosure> :

The url must be an http url.



如果您更改 https://archive.org/download/…http://archive.org/download/… ,它验证。

关于url - W3C 验证器说 'feed does not validate' 'url must be a full URL' ... 有什么问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29985571/

相关文章:

ios - 将 URL 转换为 UIImage。能够转换但不能附加到 UIImage 数组

php - mysql 数据库中存储 rss feed 的一些问题

c# - XML 解析 : Reading CDATA

javascript - 关于 CSS 媒体查询的问题

java - 从 onPageFinished 方法获取扩展 URL

javascript - Angular - 使用哈希策略时如何获取 URL?

java - 黑莓浏览器问题

iphone - View 加载后立即执行函数,iphone

html - 带有 ID 属性的结束标记

selenium - 使用 Selenium 时 JsonWireProtocol 机制与 W3C Living Document 中新标准的区别