Opened 12 years ago
Closed 12 years ago
#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: | ||
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
anonymous is right
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...