Modify ↓
Ticket #9569 (closed bug: invalid)
Problem with space-separated attribute selector
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | selector | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When using the $ selector for a single attribute, like : $("span[myAttribute1='data']"), it works. when attempting a 2 attribute selector, like so: $("span[myAttribute1='data'][myAttribute2='data2']") it also works.
However, when trying the same selector, with a space between the 2 attributes, it does not find the nodes. $("span[myAttribute1='data'] [myAttribute2='data2']")
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.

i think that the space are used to identify the nested elements...
for example:
$("span[myAttribute1='data'].myspan") and $("span[myAttribute1='data'] .myspan") are different...
because:
it shouldn't be an error...i think...