[uf-discuss] Is class="vcard fn" illegal?

Andy Mabbett andy at pigsonthewing.org.uk
Sat Nov 25 12:12:45 PST 2006

In message <F15C4670-805A-413B-8C00-83EF1DFC67C1 at ryancannon.com>, Ryan
Cannon <ryan at ryancannon.com> writes

>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

That seems like a good idea, so long as non-http hrefs (mailto:, tel:,
etc.) are parsed correctly:

        <a href="mailto:ryan at example.com" class="vcard">
        Ryan Cannon

would be OK, but what about:

        <a href="mailto:ryan at example.com" class="vcard">
        ryan at example.com


How would existing parsers treat those examples? Would they simply
ignore them?

Andy Mabbett
                Say "NO!" to compulsory ID Cards:  <http://www.no2id.net/>

                Free Our Data:  <http://www.freeourdata.org.uk>

More information about the microformats-discuss mailing list