Modify ↓
Ticket #1348 (closed bug: fixed)
Error with [@foo$=bar] selector
| Reported by: | sidebog7 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.4 |
| Component: | core | Version: | 1.1.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
If the selector you attempt to use scans for attributes that don't exist (e.g. $('div[@test$=end]') and there exists dividers without a test attribute) jquery throws a z has no properties error. This appears to come from the following lines
| type == "~=") && z.indexOf(m[5]) >= 0) not ) |
tmp.push( a );
Where = checks z (&& z &&) whereas $= (and *= and ~=) assumes it is valid.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in SVN.