Ticket #3698 (closed enhancement: fixed)
Selector enhancement
| Reported by: | shazam | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | selector | Version: | 1.2.6 |
| Keywords: | ~= operator regexp | Cc: | shazam |
| Blocking: | Blocked by: |
Description
Enhance ~= operator (which is supported but not documented and works exactly like *= operator) so that it can handle regular expressions.
It works fine, the diff is attached
Attachments
Change History
Changed 5 years ago by shazam
-
attachment
selector.diff
added
comment:2 Changed 5 years ago by shazam
...It works fine as long as you don't use '/' caracter in pattern...
comment:4 Changed 5 years ago by shazam
Do you mean "by design"? I don't think so! Or, please, tell me how to do.
Being able to match attributes values with a regular expression might be very useful in XML parsing.
I think you misunderstood my post.
comment:5 Changed 5 years ago by flesler
- Cc shazam added
I think this was requested in the past at jquery-dev. Can you ask for feedback at jQuery's google group ?
Then we'll see. You can link to this ticket if you will.
comment:7 Changed 4 years ago by shazam
This ticket might now be closed as it targetted jQuery1.2.6.
A new ticket with a new diff is opened for jQuery1.3.1 http://dev.jquery.com/ticket/3951
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

diff based on rev 5962