representative-h-card-parsing

(Difference between revisions)

Jump to: navigation, search
(disambiguate the case where the page contains only one h-card)
Current revision (18:15, 23 December 2015) (view source)
(Implementations)
 
Line 23: Line 23:
* '''PHP''' [https://github.com/barnabywalters/php-mf-cleaner barnabywalters/mf-cleaner] package implements representative h-card parsing in [https://github.com/barnabywalters/php-mf-cleaner/blob/master/src/BarnabyWalters/Mf2/Functions.php#L211 getRepresentativeHCard()] function
* '''PHP''' [https://github.com/barnabywalters/php-mf-cleaner barnabywalters/mf-cleaner] package implements representative h-card parsing in [https://github.com/barnabywalters/php-mf-cleaner/blob/master/src/BarnabyWalters/Mf2/Functions.php#L211 getRepresentativeHCard()] function
** Example usage: <code>$hcard = BarnabyWalters\Mf2\getRepresentativeHCard($mfs, $url);</code>
** Example usage: <code>$hcard = BarnabyWalters\Mf2\getRepresentativeHCard($mfs, $url);</code>
 +
* '''PHP''' [https://github.com/indieweb/representative-h-card-php indieweb/representative-h-card-php]
* Add yours here!
* Add yours here!
* …
* …

Current revision

Assuming you already have access to a microformats2 parser, the algorithm defined here allows you to determine the representative h-card for a given page.

This algorithm is the microformats2 update to representative-hcard-parsing.

Contents

Algorithm

After parsing the page:

Matching URLs

URLs are to be matched as per the parsing algorithm defined in https://url.spec.whatwg.org:

Implementations

Open source implementations of the representative h-card algorithm.

Back compat

All backcompat for representative h-card parsing should already be handled by the h-card backcompat rules, implemented by a conforming parser.

See Also

representative-h-card-parsing was last modified: Wednesday, December 23rd, 2015

Views