[uf-discuss] Does microformat specify tag types?

David Janes -- BlogMatrix davidjanes at blogmatrix.com
Tue Nov 8 14:36:35 PST 2005


if a microformat says specify "x" in the "class", it's not saying 
anything about the element. Therefore you can safely assume that any 
element will do -- unless explicitly stated otherwise. There are 
microformats that explicitly restrict the element; this will be spelled 
out in the varying specs.

The use of SPAN is a convenient thing to do because in and off itself it 
has no presentation impact on the document.

Regards, etc...

Robert Kieffer wrote:
> Hi folks,
> I'm hoping you can clear something up for me...
> When using the class pattern 
> <http://microformats.org/wiki/class-design-pattern> in a microformat, is 
> the type of the tag defined as part of the format?  Most existing 
> microformats (hcard, hcalendar) use SPAN in their examples, for lack of 
> a more semantic alternative.  But does this mean the those elements must 
> be "SPAN"?
> For example, could the hcalendar summary property, shown as "<span 
> class=summary>" in the example, be rendered as "<blockquote 
> class=summary>" instead... and still be valid hCalendar XHTML?
> My assumption is that this is perfectly valid (I don't see any reason 
> why it wouldn't be), but it's not clearly called out anywhere. The only 
> verbage I've found that addresses this sentence in the various specs:
>     /The basic format of hCalendar is to use iCalendar object/property
>     names in lower-case for class names, and to map the nesting of
>     iCalendar objects directly into nested XHTML./
> ... along with the examples in hcard where various elements are merged 
> together (using multiple class names), thus implicitely changing the 
> node type for the merged elements.
> - rwk
> -- 
> Robert Kieffer  -  robert at broofa.com  -  http://www.broofa.com
> ------------------------------------------------------------------------
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

More information about the microformats-discuss mailing list