Modify ↓
Ticket #12157 (closed bug: invalid)
.is(':empty') should be true on characterless and whitespaced
| Reported by: | rudeboiidevil2k7@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Wouldn't it be good if
.is(':empty')
works on whitespaced elements, this jsFiddle test explains it all.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

It may be useful for some, but the place to argue for it is on the w3c, since that is the behavior specified.
http://www.w3.org/TR/css3-selectors/#empty-pseudo