: Is it 'ok' to have IFrame tags in RSS feeds? I ran my RSS feed through http://www.feedvalidator.org/ but it says: This feed is valid, but interoperability with the widest range of feed
I ran my RSS feed through www.feedvalidator.org/ but it says:
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
line 83, column 0: content:encoded should not contain iframe tag (4 occurrences) [help]
I click on help and it sends me to www.feedvalidator.org/docs/warning/SecurityRisk.html . I don't see the IFrame tag on the list and cannot find out what I would replace it with if I took it out.
Is it harmless enough to leave as is or do I have to take it out?
I cannot seem to find any information to answer my question anywhere else.
More posts by @Kevin317
1 Comments
Sorted by latest first Latest Oldest Best
Is it 'ok' to have IFrame tags in RSS feeds?
Well, as the error states, "interoperability with the widest range of feed readers could be improved" ...if the iframe tag was removed.
This is understandable since the main purpose of the iframe tag is to import external content from another site - this could literally be anything. Why would you want/need to do this in an RSS feed? So, from a security point of view, RSS clients might block it. What is this iframe doing in the RSS feed? Any "content" should be embedded directly in the RSS feed, not dynamically inserted from another site - if that is what you are doing.
Is it harmless enough to leave as is or do I have to take it out?
It might be harmless for your site, but as stated, some RSS feed readers may simply strip it out - so users won't see the content.
what I would replace it with if I took it out.
Whatever content the iframe is importing should be embedded directly in the RSS feed.
UPDATE (from comments):
This RSS feed is being creating by a WordPress blog page and on some of the blog posts we have YouTube videos.
There's not much you can do about embedding YouTube videos. To be honest, most(?) users will probably see it OK (Feedly certainly supports iframed YouTube videos) - but there maybe some users that won't. That is really all the "warning" you are seeing is about - making your content accessible to the largest possible audience. For these (few) users they should be able to follow a link to view the full post/video if they wish.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.