List Info

Thread:
in hCard parsing




<br> in hCard parsing
user name
2007-01-30 03:51:27
The hCard parsing page:

        <
http://microformats.org/wiki?title=hcard-parsing>

says:

        Any occurrence of a <br /> inside the
element(s) for a value
        must be treated as a carriage-return (n) in the
respective
        location in the value.

I think that, for some hCard properties, line-breaks should
be ignored.
For instance, the correct way to write a UK postal address
would be:

        1 Any Street,
        Edgbaston,
        Birmingham
        B99 1XY

but for the v- and hCard, the "locality" is
"Edgbaston, Birmingham",
which might be marked up as:

        <span class="street-address">1 Any
Street,</span><br>
        <span
class="locality">Edgbaston,<br>
        Birmingham</span><br>
        <span class="postal-code">B99
1XY</span>

I contend that "<br>" should be rendered by
hCard parsers as a single
space character, except in "free text" fields such
as notes.

Would this cause problems anywhere?

-- 
Andy Mabbett
                 <http://www
.pigsonthewing.org.uk/uFsig/>

                        Welcome to the 27-day week!
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )