Bug Tracker

Modify

Ticket #3754 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

1.3b1: (Sizzle) Selectors containing a dot character in an attribute filter value do not work

Reported by: cbeyls Owned by: john
Priority: critical Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

Let's say we have this link in an HTML document:

<a href="http://www.google.com/">Google</a>

This selector works - returns 1 element:

$("a[href^='http://www']")

This selector does NOT work in 1.3b1 because it contains a dot "." in the attribute filter value - returns no element:

$("a[href^='http://www.google']")

The same thing occurs for all attribute filters: = and *= and $= and =.

There must be a problem with a regular expression in Sizzle.

Change History

comment:1 Changed 5 years ago by john

  • Status changed from new to closed
  • Version set to 1.2.6
  • Resolution set to fixed

This is resolved now (in Sizzle, will merge with jQuery core very soon).

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.