nsIFeedContainer 编辑
toolkit/components/feeds/public/nsIFeedContainer.idl
Scriptable This interface provides standard fields used by both feeds (nsIFeed) and feed entries (nsIFeedEntry) 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedElementBase
Last changed in Gecko 1.8.1 (Firefox 2 / Thunderbird 2 / SeaMonkey 1.1)Method overview
void normalize(); |
Attributes
Attribute | Type | Description |
authors |
| An array of nsIFeedPerson objects describing the authors of the feed or entry. |
categories |
| An array of the categories found in a feed or entry. Note: The returned array will contain nsIFeedCategory objects, except that interface has not been implemented yet. |
contributors |
| An array of nsIFeedPerson objects describing contributors to the feed or entry. |
fields |
| Provides access to all the fields found in the document. Common Atom and RSS fields are normalized, including some namespaced extensions such as "dc:subject" and "content:encoded". Consumers can avoid normalization by checking the feed type and accessing specific fields. Common namespaces are accessed using prefixes, such as |
id | AString | A string that identifies the feed or entry. Not all feeds have these, but all major feed formats have IDs for each entry. |
link |
| A URI containing the primary link for the feed or entry. |
links |
| An array of all links for a feed or entry. |
rights |
| The feed or entry's rights or license text. |
title |
| The feed or entry's title. Keep in mind that some feeds have no title, and some use markup in their titles, so be cautious when decoding this attribute. |
updated | AString | A string containing the date the feed or entry was last updated, in RFC822 form. This string is parsable by JavaScript and mail code. |
Methods
normalize()
Synchronizes a container's fields with its convenience attributes.
void normalize();
Parameters
None.
See also
Interwiki link
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论