Opened 12 years ago

Closed 12 years ago

Last modified 10 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: justicejiang@…; freemanlong@…; marscheng@…
Blocked By: Blocking:

Description

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 12 years ago.
query test demo page

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by guest

Attachment: testQuery.htm added

query test demo page

comment:1 Changed 12 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 event.target but not sure.

comment:2 Changed 10 years ago by bill

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