Skip to main content

Bug Tracker

Side navigation

#6493 closed bug (duplicate)

Opened April 27, 2010 03:55PM UTC

Closed November 19, 2010 10:09PM UTC

Last modified November 19, 2010 10:09PM UTC

Attribute Starts With Selector and Attribute Contains Selector does not work with escaped meta-characters in find()

Reported by: rockitbaby Owned by:
Priority: undecided Milestone:
Component: selector Version: 1.4.2
Keywords: find selector Cc:
Blocked by: Blocking:
Description

The Attribute Starts With Selector [name^=value] and Attribute Contains Selector [name*=value] does not return any elements when used in the find() function and the value contains escaped meta-characters.

$('a[href^=\\\\#]').size() != $('body').find('a[href^=\\\\#]').size();

Test file is attached.

Attachments (1)
Change History (4)

Changed May 25, 2010 05:31PM UTC by nathank comment:1

I have found the same problem. I need a fix for this ASAP. Thanks.

Changed November 12, 2010 02:40AM UTC by snover comment:2

milestone: 1.4.3

Resetting milestone to future.

Changed November 19, 2010 10:09PM UTC by snover comment:3

description: The Attribute Starts With Selector [name^=value] and Attribute Contains Selector [name*=value] does not return any elements when used in the find() function and the value contains escaped meta-characters. \ \ $('a[href^=\\\\#]').size() != $('body').find('a[href^=\\\\#]').size(); \ \ Test file is attached.The Attribute Starts With Selector [name^=value] and Attribute Contains Selector [name*=value] does not return any elements when used in the find() function and the value contains escaped meta-characters. \ \ `$('a[href^=\\\\#]').size() != $('body').find('a[href^=\\\\#]').size();` \ \ Test file is attached.
priority: → undecided
resolution: → duplicate
status: newclosed

Changed November 19, 2010 10:09PM UTC by snover comment:4

Duplicate of #6093.