Reputation: 177
dojo.query("#foo #bar")
which works as expected in FF, Safari, Chrome and IE8, returns an empty list in IE7.
I'm actually searching for a div with id = bar
inside another div with id = foo
.
Did I miss something in my query or is this a known issue in IE7??
Thanks Jeff
Upvotes: 0
Views: 606
Reputation: 2156
Because ID's are unique you shouldn't ever had to query for two at once. So either modify your query and have a single ID, or, if you need multiple elements with the same 'id', use a class.
For the second option, you would then change your query to dojo.query('.bar', dojo.byId('foo'))
, which returns elements with class 'bar' that are a child of the element with id 'foo'.
Upvotes: 1