Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

W3C validator says 'feed does not validate' 'url must be a full URL'... whats wrong with it?

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!

like image 269
pperrin Avatar asked May 01 '15 10:05

pperrin


People also ask

How do I validate an RSS feed?

To check an RSS feed's validity, you can use an RSS validator, such as the one at http://feedvalidator.org/. To validate your RSS feed, all you have to do is enter the URL of your feed into the text field (Figure 3.35) and click the Validate button.

How do I validate a W3C?

The W3C HTML validatorValidate by URI: Allows you to enter the address of a page already on the internet for validation. Validate by File Upload: Allows you to upload an HTML file for validation. Validate by Direct Input: Allows you to paste the contents of an HTML file into the window for validation.

What is the complete secure URL for utilizing the W3C Markup Validation Service?

Please always directly use https://validator.w3.org/nu/ (the current W3C HTML Checker) instead of https://validator.w3.org/ (the legacy W3C Markup Validator). The HTML Checker is able to check documents at https URLS just fine.


1 Answers

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.

like image 90
unor Avatar answered Sep 20 '22 13:09

unor