Skip to main content

Bug Tracker

Side navigation

#4965 closed bug (duplicate)

Opened July 24, 2009 09:58AM UTC

Closed October 03, 2009 01:56AM UTC

Whitespace in class attribute causes selector trouble.

Reported by: brendo_ Owned by: john
Priority: minor Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

See the attached testcase is probably the easiest way to understand this bug.

Pretty much, the $('.field-date') finds the correct elements, but then in the each loop, $(this).hasClass('.field-date') fails when there is extra whitespace between the classes.

I think there might be two bugs here, because the original $('.field-date') finds the correct elements regardless of whitespace, but then hasClass chokes on the whitespace.

A pure JS test is provided too, which shows the correct results (two raw:true's)

Attachments (1)
  • testcase.html (1.5 KB) - added by brendo_ July 24, 2009 09:59AM UTC.

    Test Case (jQuery not provided)

Change History (1)

Changed October 03, 2009 01:56AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #4761