[uf-dev] nested @class="value" properties

Derrick Lyndon Pallas derrick at pallas.us
Wed Jan 31 18:32:50 PST 2007


I asked about this in IRC today and Tantek asked me to send an email to 
the list. The question is: is @class="value" recursive. For instance,

  <div class="property">
      <span class="type">type</span>
      <span class="value">
          <span class="value">foo</span>
          quux
          <span class="value">bar</span>
      </span>
  </div>

In this example, is the value of property "foo quux bar" or just "foo 
bar"? Personally, I would expect it to be "foo bar" because that's what 
I'd expect from the following fragment:

  <div id="ref">
       <span class="value">foo</span>
       quux
       <span class="value">bar</span>
  </div>

  <div class="property">
      <span class="type">type</span>
      <span class="value">
          <object class="include" data="#ref" />
      </span>
  </div>

In my opinion, it's worth explicitly stating (on the wiki) that 
@class=value is recursive.

~D



More information about the microformats-dev mailing list