Skip to main content

Bug Tracker

Side navigation

#776 closed bug (fixed)

Opened January 10, 2007 11:14PM UTC

Closed January 11, 2007 04:55AM UTC

.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.

Attachments (0)
Change History (2)

Changed January 10, 2007 11:21PM UTC by himynameizna comment:1

Sorry, I mistyped:

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

Changed January 11, 2007 04:55AM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN.