Modify ↓
Ticket #5397 (closed enhancement: invalid)
How to use filtering when selecting nodes
| Reported by: | JeffMatthews | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
FYI, be careful of using any spacing to make code readable in your text editor. The spacing might affect processing.
Here is one that bothered me for about an hour, until I got lucky and just removed the space.
These two statements are not the same.
- $("#myid [value=1][name=2]")
- $("#myid [value=1] [name=2]")
The additional space causes the filter to not work.
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.

Yes, spaces are significant in CSS selectors.