Christof Donat wrote:
I also think that text() is problematic as well. It should better return an Array of strings. If I need what text currently does I can do $('.whatever').text().join(''). I even could do $('.whatever').text().join(' - oh my god - '), which is not possible with the current text() implementation. How about $('.whatever').text().sort(...), or whatever.

I'd like:

$('.whatever').text(); // => ["foo", "bar", "baz"]

$('.whatever').text(','); // => "foo,bar,baz"



--Klaus

Reply via email to