[uf-dev] Case-sensitivity

Tantek Ç elik tantek at cs.stanford.edu
Wed Jan 18 11:02:54 PST 2006


On 1/18/06 10:19 AM, "brian suda" <brian.suda at gmail.com> wrote:

> I have noticed that a few people have been mis-using the TYPE attributes
> for
> a few properties, namely TEL and ADR.
> 
> The problem is that instead of using ABBR they are just marking-up their
> normal english prose. For example:
> 
> <p class="tel">This is my <span class="type">Home</span> Phone number:
> <span class="value">XXX-XXX-XXXX</span></p>
> 
> 
> The problem is that class="type" of "Home" is NOT in the enumerated list
> 'home' is, but 'Home' (capital H home is not).
> 
> I know that the wiki says that the class values are case-specific, but
> are the type-values case-specific as well? or should applications accept
> home, Home, HOME, HoMe, etc as 'home'?

Good point Brian.

I thought I had specified this in hcard-parsing, but perhaps not.

The class names are case-sensitive per HTML4.01 (see "A Touch of Class" for
more on that).

The enumerated *values* are case-INsensitive, and thus yes, applications
should accept home, Home, HOME, HoMe, etc as 'home'.

Thanks,

Tantek



More information about the microformats-dev mailing list