Skip to main content

Bug Tracker

Side navigation

#12157 closed bug (invalid)

Opened July 28, 2012 07:42PM UTC

Closed July 28, 2012 07:58PM UTC

.is(':empty') should be true on characterless and whitespaced

Reported by: rudeboiidevil2k7@hotmail.co.uk 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/

Attachments (0)
Change History (1)

Changed July 28, 2012 07:58PM UTC by timmywil comment:1

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