hatom-parsing: Difference between revisions
Jump to navigation
Jump to search
(→URL handling: Adopted from hcard-parsing) |
(→Finding hAtom feeds/entries: adding basic feed/entry finding) |
||
Line 20: | Line 20: | ||
= Finding hAtom feeds/entries = | = Finding hAtom feeds/entries = | ||
* hAtom feeds are identified with the classname <code>.hfeed</code> | |||
* hAtom entries are identified by the classname <code>.hentry</code> | |||
* if the document does not contain an element with the class name <code>.hfeed</code>, but does contain an element with the classname <code>.hentry</code>, the entire document should be treated as a feed | |||
= Extracting feed elements = | = Extracting feed elements = |
Revision as of 18:05, 30 May 2007
hAtom parsing
Work in progress!
Editor/Author
- ...
Contributors
- ...
URL handling
An hAtom parser may begin with a URL to retrieve.
If the URL lacks a fragment identifier, then the parser should parse the entire retrieved resource for hAtom feeds and hAtom entries.
If the URL has a fragment identifier, then the parser should parse only the node indicated by the fragment identifier and its descendants, looking for hAtom feeds and hAtom entries, starting with the indicated node, which may itself be a hAtom feed/entry.
Finding hAtom feeds/entries
- hAtom feeds are identified with the classname
.hfeed
- hAtom entries are identified by the classname
.hentry
- if the document does not contain an element with the class name
.hfeed
, but does contain an element with the classname.hentry
, the entire document should be treated as a feed
Extracting feed elements
Feed <id>
@@TBD (not defined by hAtom yet)
Feed <title>
@@TBD (not defined by hAtom yet)
Feed <updated>
@@TBD (not defined by hAtom yet)
Feed <link>
@@TBD (not defined by hAtom yet)
Extracting entry elements
@@TBD
Entry <id>
@@TBD
Entry <title>
@@TBD
Entry <updated>
@@TBD
Entry <published>
@@TBD
Entry <link>
@@TBD
Parsing datetimes
@@TBD
Extracting tag links
@@TBD
References
Normative References
Informative References
- ...