Microformats *do* seek to change behaviour (was: XFN usage stats and Re: [uf-discuss] rel="muse" implies romantic relationship?)

Ben Ward lists at ben-ward.co.uk
Wed Dec 13 04:48:14 PST 2006


On 13 Dec 2006, at 11:53, Ciaran McNulty wrote:
> so my pages don't validate correctly if I add <address>

Actually, it's more severe than just not validating. Nesting block  
level elements within ADDRESS triggers error-handling in browsers,  
such that the DOM does not reflect your mark-up. Mark-up such as:

 > ADDRESS
--> DIV
----> UL
----> P

Will make a DOM of:

 > ADDRESS
 > DIV
--> UL
--> P

Where DIV is a sibling of ADDRESS, not a child.

This affects parsing, styling and anything you like,  another reason  
ADDRESS is not required by any microformat.

Ben


More information about the microformats-discuss mailing list