W3C validator says 'feed does not validate'

2019-03-18 09:26发布

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?

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

** edit **

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!

2条回答
虎瘦雄心在
2楼-- · 2019-03-18 09:31

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

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

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.

The RSS 2.0 spec says about <enclosure>:

The url must be an http url.

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

查看更多
Lonely孤独者°
3楼-- · 2019-03-18 09:42

And if you don't have httpS then your SSL says your page isn't secure. #feedvalidator step up. There are a ton of feedback/complaints about this on the support forum here https://groups.google.com/forum/#!forum/feedvalidator-users

More specifically here: https://github.com/rubys/feedvalidator/issues/16

查看更多
登录 后发表回答