Bug Tracker

Opened 7 years ago

Closed 7 years ago

#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:
Blocked by: Blocking:

Description

Wouldn't it be good if

.is(':empty')

works on whitespaced elements, this jsFiddle test explains it all.

http://jsfiddle.net/pbSpJ/

Change History (1)

comment:1 Changed 7 years ago by timmywil

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.