I started working on a version that will work on any child elements. For
example:
<div id="myList-nav">
<div id="myList">
<p>A item</p>
<div>B item
<p>Some stuff under the B item</p>
</div>
<a href="#">C item</a>
</div>
That would result in nav items for A, B and C, but would not handle a
<dl> case, because <dd> is not nested inside of <dt> (ie: the <dd>'s are
also child elements of the main div).
I'm not sure if the "any tag" change will make it into this rev, still
haven't decided, but I'll keep thinking about a handler for <dl>'s. I
can appreciate the need for it.
Thanks,
Jack
MauiMan2 wrote:
Yes, you've got the right idea.
I have the very rudimentary beginnings of my glossary here:
http://www.usmexfood.com/
And the code for it so far:
<h3>Glossary</h3>
<dl>
<dt>Burrito</dt>
<dd>A flour tortilla stuffed with
beans, meat, cheese and other
fillings and folded and wrapped compactly</dd>
<dt>Habañero</dt>
<dd>A particularly spicy chili
pepper</dd>
</dl>