Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#5476 closed defect (invalid)

[dojo.query]Query result with children

Reported by: guest Owned by: anonymous
Priority: high Milestone: 1.1
Component: Query Version: 1.0
Keywords: query Cc: [email protected]…; [email protected]…; [email protected]
Blocked By: Blocking:


Hi guys,

I'd tried the magic dojo.query with a bundle of td tags with a specific class , and then I'd tried to add onmouseover handler to the result. But I found the children span tags within the results which haven't got the specific class is also been visited by the onmouseover() method to NodeList?, this make the demo looks very odds when you do a mouse over action on the span area.

I hope my attachments could help me explain the situation more clearly.

Attachments (1)

testQuery.htm (1.2 KB) - added by guest 14 years ago.
query test demo page

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by guest

Attachment: testQuery.htm added

query test demo page

comment:1 Changed 14 years ago by bill

Resolution: invalid
Status: newclosed

This doesn't look like a bug. It's just event bubbling. A mouseover event on the <span> node bubbles up to the <td> node, which then calls the handler you specified on the <td> node, which then sets the class on the <span>. Might help for you to reference event.currentTarget instead of / in addition to but not sure.

comment:2 Changed 12 years ago by bill

Component: GeneralQuery
Note: See TracTickets for help on using tickets.