Yehuda Katz (ph) 718.877.1325
On Wed, Nov 30, 2011 at 12:57 PM, Bjoern Hoehrmann <derhoe...@gmx.net>wrote: > * Yehuda Katz wrote: > >Most people would accomplish that using jQuery. Something like: > > > >var previous = $(current).closest("tr").prev() > > > >I'm not exactly sure what `current` is in this case. What edge-cases are > >you worried about when you say that the JavaScript is "quite involved"? > > It is unlikely that your code is equivalent to the code I provided, Out of curiosity, I'd like to see the DOM in question, the starting element and the element you were trying to select. I think "how people do it in the real world" is actually relevant. > and > sure enough, you can point out in all discussions about convenience APIs > that people could use a library. I don't see how that is relevant here. > -- > Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de > Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de > 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ >