W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: XPath and Selectors are identical, and shouldn't be co-developed

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 30 Nov 2011 21:57:19 +0100
To: Yehuda Katz <wycats@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, public-webapps <public-webapps@w3.org>
Message-ID: <i65dd7hi09j4d91cvdp676bv57ti2gvei6@hive.bjoern.hoehrmann.de>
* 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, 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:bjoern@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/ 
Received on Wednesday, 30 November 2011 20:57:52 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC