Bug Tracker

Modify

Ticket #12157 (closed bug: invalid)

Opened 10 months ago

Last modified 10 months ago

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

 http://jsfiddle.net/pbSpJ/

Change History

comment:1 Changed 10 months ago by timmywil

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.