Bug Tracker

Opened 9 years ago

Closed 9 years ago

#15233 closed bug (migrated)

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.

Change History (3)

comment:1 Changed 9 years ago by gibson042

Milestone: None1.12/2.2
Owner: set to gibson042
Status: newassigned

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

comment:2 Changed 9 years ago by m_gol

Priority: undecidedlow

comment:3 Changed 9 years ago by m_gol

Resolution: migrated
Status: assignedclosed
Note: See TracTickets for help on using tickets.