[uf-dev] Proper use of value
Mike Kaply
microformats at kaply.com
Tue Apr 22 07:53:57 PDT 2008
On Tue, Apr 22, 2008 at 1:09 AM, Toby A Inkster <mail at tobyinkster.co.uk> wrote:
> > Can someone please tell me if Roger Costellos examples for value
> > (Pages 13, 14, and 15 here -
> > http://www.xfront.com/microformats/hCard.html) are correct?
> >
>
> They look OK to me. Thanks for posting the examples though because they've
> helped me fix an annoying bug in Cognition's handling of this. (It has some
> code for specifically avoiding trimming white space from value-excerpted
> parts, but that code wasn't being triggered correctly, and white space was
> being trimmed resulting in fn="JohnSmith". I've fixed it now and will
> include the fix in my next release.)
For the record, other parsers do this differently - they trim all
whitespace (even in values).
What's I'm looking for is the definitive answer as to what the "right
thing" to do is. There are a ton of edge cases that are simply poorly
defined within the microformats spec.
Mike Kaply
More information about the microformats-dev
mailing list