Caveat: I do not take part in the jquery development, so these thoughts may be entirely off the actual design decisions.
Anyway, imho your proposal does not seem to offer any advantage:
to process an array of data gleaned from the elements of a jquery collection the user would have to iterate over this array anyway - this can be done using jquery's
each
method in the first place which has the additional benefit of immediate access to the element carrying the attribute:$("my_spiffy_selector").each( function ( idx, e ) { $(e).attr("blarf").whatever(); });
Otoh it would complicate matters (at least the jquery code base), if the getters return type would be polymorphic or if there were different getters.
The arguably most common use case would entail at least an additional
.first()
call.