Bug Tracker

Opened 15 years ago

Closed 15 years ago

#776 closed bug (fixed)

.text() only returns the first element matched

Reported by: anonymous Owned by:
Priority: major Milestone: 1.1a
Component: core Version: 1.1a
Keywords: Cc:
Blocked by: Blocking:

Description

$(SELECTOR).text() returns only the first element matched, rather than a concatenated string of text, as per the docs.

Would also be kinda cool if we could somehow optionally return all of the text into an array of strings, but that might be better as a new ticket.

Change History (2)

comment:1 Changed 15 years ago by himynameizna

Sorry, I mistyped: .text returns only the TEXT of the first element matched, not the element itself :)

comment:2 Changed 15 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN.

Note: See TracTickets for help on using tickets.