[uf-new] Closing several hAudio issues

Scott Reynen scott at makedatamakesense.com
Mon Oct 8 22:13:29 PDT 2007

On Oct 8, 2007, at 9:33 PM, Manu Sporny wrote:

>  <div class="haudio">
>   <div class="track">
>     <span class="audio-title">Nagasaki Nightmare</span>
>     <abbr class="duration" title="P268T">4:46</abbr>
>   </div>
>   and
>   <span class="track">Bloody Revolution</span>
>   taken from <span class="album-title">Best Before 1984</span>
>   By <span class="contributor">Crass</span>
>  </div>
> I have to admit, though, that the above mark-up just doesn't sit well
> with me. We have to assume that properties inside of TRACK are of type
> hAudio and can use any of it's properties. In other words, we are
> assuming the type of the contents of TRACK is an hAudio based on the
> parent container, which is hAudio.

Not only based on the parent container, but also based on the  
contained properties, because a track with no audio-title isn't  
hAudio.  So someone looking at an element with class="track" would  
need to look both at the parent elements and at the contents of the  
element to know what exactly "track" means.  I think it's simpler for  
track to always mean the same thing, and use the hAudio class to  
clearly indicate whether or not it's actually hAudio.  Similarly,  
hCard has an "agent" property, which can itself be another hCard, and  
we mark this with class="agent hcard".

Scott Reynen

More information about the microformats-new mailing list