exploit the implicit iteration as much as possible. It seems to me the nicest model would be something like:
<div class="link-with-tip"> <a href="foo">bar</a> <div class="tip">Arbitrary HTML to display on hover</div> </div>
This model seems to fall down under anything but demonstration purposes: <p>This is a paragraph <a href="">which can't contain a div</a></p> <div>DOM model is now broken since div can't go in p.</div> To which you'd respond: <div class="link-with-tip"> <p>This is a paragraph <a href="">which can't contain a div</a></p> <div>DOM model is now fixed.</div> </div> To which I'd reply: <div class="link-with-tip"> <p>This is a paragraph <a href="">which can't contain a div</a> and here's <a href="">second link</a> and a <span>third</span>.</p> <div>DOM model is now broken.</div> <div>Without IDs, which one is</div> <div>which?</div> </div> -- Morbus Iff ( insert pithy quote here ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus