Closed
Bug 279202
Opened 20 years ago
Closed 20 years ago
Live Bookmarks: Valide RSS 1.0 Feed fails when empty xmlns attributes exist
Categories
(Firefox :: Bookmarks & History, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: asevers, Assigned: vladimir+bm)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 The following RSS 1.0 feed is valid but will not load into Firefox Live Bookmarks. When I remove the empty xmlns attributes in the channel and item elements, it works. RSS 1.0 Feed ------------------ <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns="http://purl.org/rss/1.0/" > <channel xmlns="" rdf:about="http://localhost:8080/Home?action=getOrgHome&orgID=1&position=1"> <title>SA Department news feed</title> <link>http://localhost:8080/Home?action=getOrgHome&orgID=1&position=1</link> <description>The news feed for SA Department</description> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <sy:updateBase>2005-01-20T19:02:33-05:00</sy:updateBase> <items> <rdf:Seq> <rdf:li rdf:resource="http://localhost:8080/Home?action=viewOrgNewsItem&orgID=1&position=3&itemID=3"/> </rdf:Seq> </items> </channel> <item xmlns="" rdf:about="http://localhost:8080/Home?action=viewOrgNewsItem&orgID=1&position=3&itemID=3"> <title>news item 1</title> <link>http://localhost:8080/Home?action=viewOrgNewsItem&orgID=1&position=3&itemID=3</link> <description>jskljs dalkdsa</description> <dc:creator>James Gosling</dc:creator> <dc:date>2005-01-19</dc:date> <dc:subject>news item 1</dc:subject> </item> </rdf:RDF> Reproducible: Always Steps to Reproduce: 1. Save the above feed as file on a web server 2. Make a new Live Bookmark pointing to that feed Actual Results: The Live Bookmark I created did not load the feed items even though the feed is valid. Expected Results: Loaded the feed correctly.
Comment 1•20 years ago
|
||
While you are correct that that feed is currently feedvalidator.org-valid, it isn't valid against any of the RSS specs, and I'm filing a bug against the feedvalidator hoping that soon it won't validate there, either. If your root element is rdf:RDF, then you are either publishing RSS 1.0 or 0.90 (or 1.1 which we don't currently support). So, we look for a channel element in the RSS 1.0 namespace, and if we don't find one we look for a channel element in the RSS 0.90 namespace, and if we don't find one then as far as we're concerned, the feed is empty. You don't have a channel element in either namespace, since you reset the default namespace to the empty namespace - you have something that could be approximately an RSS 0.91-2.0 channel element if it didn't have that invalid-for-them items element. I don't know why you are including that xmlns="" on your channel and item, but that is what it means: "for this element, and all its children until it is redefined, the namespace for elements without a prefix is ""." Since we have absolutely no idea about the intended semantics of either a channel or an item in no namespace inside an rdf:RDF element, all we can do is see it as a completely empty feed.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I've made a fix to the feedvalidator in cvs. The fix should go online later today.
Comment 3•18 years ago
|
||
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•