The current logic is something like: (is not set or is empty) and is a valid URL. This will always fail.

CommentFileSizeAuthor
views_rss-isPermaLink_check.patch1.25 KBGrayside
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maciej.zgadzaj’s picture

Status: Needs review » Closed (works as designed)

No it won't always fail. The current logic (if not set or is empty) applies to <link> element, and is valid URL applies to <guid> element - which essentially means that if <link> element value is not provided, and <guid> value is valid URL, then (and only then) isPermaLink attribute will be set to TRUE.

Grayside’s picture

There are cases where you might want the link and the GUID to be different things. Unless that is a part of the spec, I don't think that's a good rule.

maciej.zgadzaj’s picture

Yes, this is part of the spec.