Revision as of 11:03, 4 January 2008 by AndyMabbett (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)

Jump to: navigation, search


Implied hCard Brainstorming

These are ideas for solutions to implied-hcards. See hcard-implied-examples for use cases.

Initial ideas

The rule could be similar to:

If a an element with class=vcard does not have any hCard class names, imply the entire content as an fn field, and attempt to apply the implied "n" optimization.

Optionally, if the root element has @href, imply a class="url".

For example:

<a class="vcard" href="http://ryancannon.com/">Ryan Cannon</a>


FN:Ryan Cannon

All this is possible because it requires an hCard without hCard markup inside.

This is fairly powerful for a few reasons:

Additionally, the @href could map to different properties based on protocol:

--Ryan Cannon

Links to vCards

Parsers should ignore any links to the .vcf file extension:

<a class="vcard" href="http://example.com/example.vcf">Download my vcard</a>

since users, unaware of hCard, may apply class="vcard" to such links.

Andy Mabbett 13:33, 8 Dec 2006 (PST)

See also

hcard-implied-brainstorming was last modified: Wednesday, December 31st, 1969