I've been showing a website to a customer who insists on using IE and found out, to my surprise, that IE7 does not autodiscover the Atom newsfeed.
The feed is linked to within the HEAD element of a valid HTML 4.01 Strict page with <link rel="alternate" type="application/atom+xml" href="atom.xml" title="Atom 1.0">, the link is pointing to the correct URL, the linked feed is a valid Atom 1.0 XML file served as application/atom+xml and contains the correct <link rel="self">.
Firefox, Opera, Safari and IE8 beta 2 all do correctly find out the feed and lighten up the relevant address bar button - it's just IE7 that stays greyed out. Same IE7 had no trouble in discovering newsfeeds elsewhere and to pass the HTML part of DiveIntoMark's autodiscovery test suite with flying colors.
Changing the HREF to a fully qualified URL made no difference, nor did changing the TYPE to a RSS 2.0 MIME or removing the TITLE attribute.
发布评论
评论(1)
我将你的源代码复制到我的本地计算机上,一旦我将 href 更改为完整的 url,而不是相对的 URL,IE7 的自动发现功能就会正常启动:
需要完整的 URL 似乎是 IE 的一个小故障,因为 关于原子自动发现的 RFC 指出:
Microsoft 自己的 发布者指南还在
href
标记中列出了完整的网址,但没有提及它是强制性的:I copied your source to my local machine, and IE7's auto-discovery kicked in fine once I changed the href to a full url, rather than a relative one:
Needing a full URL seems to be an IE glitch, as the RFC on atom auto-discovery states that:
Microsoft's own publisher's guide also lists the full url in the
href
tag, but makes no mention of it being compulsory: