Skip to main content

Bug Tracker

Side navigation

#15233 closed bug (migrated)

Opened September 09, 2014 03:31PM UTC

Closed October 21, 2014 01:00AM UTC

attributeContainsWord selector does not work for attributes with newlines

Reported by: gharlan Owned by: gibson042
Priority: low Milestone: 1.12/2.2
Component: selector Version: 2.1.1
Keywords: Cc:
Blocked by: Blocking:
Description

If an attribute contains newline characters the attributeContainsWord selector (~=) does not work.

http://jsbin.com/fejenanelevu/1/

I would expect that both divs are red.

Attachments (0)
Change History (3)

Changed September 19, 2014 01:37AM UTC by gibson042 comment:1

milestone: None1.12/2.2
owner: → gibson042
status: newassigned

Fixed upstream and will be in the next jQuery release: https://github.com/jquery/sizzle/commit/aca006dd2d3fb3c407ff99bb25153852d73e0f6b

Changed October 06, 2014 09:11PM UTC by m_gol comment:2

priority: undecidedlow

Changed October 21, 2014 01:00AM UTC by m_gol comment:3

resolution: → migrated
status: assignedclosed