Side navigation
#9569 closed bug (invalid)
Opened June 13, 2011 07:14AM UTC
Closed June 13, 2011 02:06PM UTC
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']")
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...