[development] jquery 1.0 release imminent

Jonathan Chaffer jchaffer at structureinteractive.com
Thu Aug 24 13:28:00 UTC 2006


On Aug 24, 2006, at 9:06 , Morbus Iff wrote:

>> 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>

I wouldn't respond that way, I'd respond "s/div/span/g". The  
span.link-with-tip should include only the anchor and tip. I will  
make the concession that if the tip has particularly complex HTML  
then this method becomes cumbersome/intractable.



More information about the development mailing list