Skip to main content

Bug Tracker

Side navigation

#4800 closed feature (plugin)

Opened June 22, 2009 04:07AM UTC

Closed April 16, 2011 10:14PM UTC

Last modified May 05, 2011 08:50AM UTC

More selector to compare attribute

Reported by: waruichingu Owned by: john
Priority: low Milestone:
Component: selector Version: 1.3.2
Keywords: selector Cc:
Blocked by: Blocking:
Description

Patch for jquery-1.3.2.js

2026,2027d2025
<                 type === "%=" ?
<                 value.indexOf(check) < 0 :
2042,2043d2039
<                 type === ">=" ? parseInt(value, 10) >= parseInt(check, 10) :
<                 type === "<=" ? parseInt(value, 10) <= parseInt(check, 10) :    

1. Not equal

1. greater than

1. lesser than

Attachments (0)
Change History (5)

Changed October 27, 2010 07:21AM UTC by waruichingu comment:1

Changed October 27, 2010 04:43PM UTC by SlexAxton comment:2

keywords: → selector
milestone: 1.41.5
priority: minorlow
status: newopen

This seems like something that wouldn't necessarily be that feasible, since num doesn't have to be an integer. This seems better as a custom addition rather than a built in selector. I'll add it to the feature request list, since it is a valid request though.

The jsfiddle example is a bit useless, since nothing is actually implemented, but I suppose it shows your point.

Changed October 28, 2010 01:59AM UTC by waruichingu comment:3

Yeah, a custom selector seems to be a good choice. Thank you very much.

PS: If not, i have to patch every version upgrade.

Changed April 16, 2011 10:14PM UTC by john comment:4

resolution: → plugin
status: openclosed

Yeah, I'm leaning towards plugin, as well.

Changed May 05, 2011 08:50AM UTC by waruichingu comment:5

I have checked the 1.6 code, it doesn't allow me to have a custom selector. Can you direct me? Thanks.