Skip to main content

Bug Tracker

Side navigation

#3754 closed bug (fixed)

Opened December 29, 2008 03:07AM UTC

Closed January 04, 2009 03:43PM UTC

Last modified January 04, 2009 10:09PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed January 04, 2009 03:43PM UTC by john comment:1

resolution: → fixed
status: newclosed
version: → 1.2.6

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

Changed January 04, 2009 10:09PM UTC by john comment:2